* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f7fb;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
}

.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 4px 0 0 0;
    font-weight: 300;
    letter-spacing: 1px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid #e9edf2;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
}

.control-group label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

select, input[type="text"], .flatpickr-input {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #d1d9e6;
    background: white;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: 0.2s;
    min-width: 130px;
}

select:focus, input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #3b82f6;
}

.btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.separator {
    width: 1px;
    height: 30px;
    background: #d1d9e6;
}

.chart-wrapper {
    position: relative;
    height: 500px;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9edf2;
    padding: 16px 12px 8px 12px;
    flex: 1;
}

.info-box {
    margin-top: 18px;
    padding: 14px 20px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    border: 1px solid #e2e8f0;
}

.info-box .label {
    font-weight: 400;
    color: #475569;
}

.info-box span:not(.label) {
    font-weight: 500;
    color: #0f172a;
}

.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 18px;
}

.footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px solid #e9edf2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-text {
    margin: 0;
    font-size: 14px;
    color: white;
    font-weight: 400;
}

.author-name {
    font-weight: 600;
    color: white;
    /*background: linear-gradient(135deg, #3b82f6, #8b5cf6);*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-year {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 300;
}

@media (max-width: 700px) {
    .container {
        padding: 16px;
        min-height: auto;
    }
    
    .header {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .company-slogan {
        font-size: 12px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .control-group {
        flex-wrap: wrap;
    }
    
    .separator {
        display: none;
    }
    
    .chart-wrapper {
        height: 350px;
        padding: 8px 6px 4px 6px;
    }
    
    .info-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.flatpickr-calendar {
    font-size: 14px;
}

.flatpickr-day.selected {
    background: #3b82f6;
    border-color: #3b82f6;
}

.flatpickr-day:hover {
    background: #e2e8f0;
}