body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1400px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 32px;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 18px;
}

.customization-panel {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.customization-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    font-size: 20px;
}

.date-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.date-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.date-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 150px;
}

.date-display {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 150px;
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 500;
}

.apply-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.apply-button:hover {
    background-color: #2980b9;
}

.years-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.year-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.year-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #34495e;
    font-size: 18px;
    text-align: center;
}

.weeks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(13, 1fr);
    gap: 4px;
}

.week {
    width: 25px;
    height: 25px;
    border: 1px solid #bdc3c7;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    position: relative;
}

.week:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.week.filled {
    background-color: #3498db;
    border-color: #2980b9;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 16px;
    color: #7f8c8d;
    margin-top: 5px;
}

.financial-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.financial-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
    font-size: 24px;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
}

.slider-value {
    font-weight: bold;
    color: #27ae60;
    font-size: 22px;
}

.slider-wrapper {
    position: relative;
    height: 40px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 14px;
    z-index: 3;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-bar {
    height: 12px;
    border-radius: 6px;
    background: #ecf0f1;
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    z-index: 2;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    background-color: #27ae60;
    width: 0%;
    transition: width 0.3s ease;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 16px;
    color: #7f8c8d;
}

.slider-customization {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.slider-custom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.slider-custom-row label {
    font-weight: 500;
    color: #34495e;
    min-width: 140px;
}

.amount-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 120px;
    text-align: right;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.tooltip.show {
    opacity: 1;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.error {
    background-color: #e74c3c !important;
}

@media (max-width: 1024px) {
    .years-container {
        justify-content: center;
    }
    
    .year-column {
        width: calc(50% - 10px);
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .date-input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider-custom-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-custom-row label {
        min-width: auto;
    }
    
    .year-column {
        width: 100%;
        max-width: 300px;
    }
    
    .week {
        width: 20px;
        height: 20px;
    }
}
