:root {
    --primary-color: #00bbf9;
    --secondary-color: #00f5d4;
    --accent-color: #f15bb5;
    --highlight-color: #fee440;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f4f9ff, #d8e9ff);
}

.main-title {
    font-size: 3.8em;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.main-title .highlight { color: var(--highlight-color); }
.main-title .plus {
    font-family: 'Pacifico', cursive;
    color: var(--accent-color);
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 5px;
}

.input-container {
    background-color: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.input-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.input-group { margin-bottom: 20px; }
label {
    display: inline-block;
    width: 120px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
}

input[type="number"], select {
    width: 180px;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="number"]:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(241, 91, 181, 0.5);
}

button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 15px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-transform: uppercase;
    font-size: 1.1em;
}

tr:nth-child(even) { background-color: #f8f9fa; }
tr:hover { background-color: #e8f4fd; }

#chartContainer {
    width: 100%;
    height: 500px;
    margin-top: 30px;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.remark {
    background: linear-gradient(45deg, var(--highlight-color), #ffeea9);
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.remark:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.remark h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.remark ul {
    color: #34495e;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0;
    padding-left: 20px;
}

.coverage-period {
    font-size: 1.3em;
    font-weight: bold;
    color: #1c2841;
    background-color: var(--secondary-color);
    padding: 10px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-control {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.chart-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.chart-control input { margin-right: 8px; cursor: pointer; }
.chart-control label {
    cursor: pointer;
    font-weight: normal;
    width: auto;
}

.chart-control.health-happy-1m { background-color: rgba(255, 99, 132, 0.2); border-color: rgb(255, 79, 112); }
.chart-control.health-happy-5m { background-color: rgba(54, 162, 235, 0.2); border-color: rgb(34, 142, 215); }
.chart-control.health-happy-15m { background-color: rgba(255, 206, 86, 0.2); border-color: rgb(235, 186, 66); }
.chart-control.health-happy-25m { background-color: rgba(75, 192, 192, 0.2); border-color: rgb(55, 172, 172); }
.chart-control.infinite-care-60-mb-excl-us { background-color: rgba(153, 102, 255, 0.2); border-color: rgb(133, 82, 235); }
.chart-control.infinite-care-120-mb-excl-us { background-color: rgba(255, 159, 64, 0.2); border-color: rgb(235, 139, 44); }
.chart-control.infinite-care-60-mb-worldwide { background-color: rgba(199, 199, 199, 0.2); border-color: rgb(179, 179, 179); }
.chart-control.infinite-care-120-mb-worldwide { background-color: rgba(83, 102, 255, 0.2); border-color: rgb(63, 82, 235); }
.chart-control.axa-ihealthy-ultra-100m { background-color: rgba(241, 196, 15, 0.2); border-color: rgb(221, 176, 0); }
.chart-control.mtl-elite-health-plus-20m { background-color: rgba(255, 105, 180, 0.2); border-color: rgb(255, 105, 180); }
.chart-control.mtl-elite-health-plus-40m { background-color: rgba(255, 20, 147, 0.2); border-color: rgb(255, 20, 147); }
.chart-control.mtl-elite-health-plus-75m { background-color: rgba(219, 112, 147, 0.2); border-color: rgb(219, 112, 147); }
.chart-control.mtl-elite-health-plus-100m { background-color: rgba(255, 182, 193, 0.2); border-color: rgb(255, 182, 193); }

.warnings { margin-bottom: 20px; }
.warning {
    color: #e74c3c;
    background-color: #ffeaea;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body { padding: 15px; }
    .input-container { padding: 20px; }
    .main-title {
        font-size: 2.5em;
        padding: 15px 30px;
    }
}