* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    margin-bottom: 24px;
}

header {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    flex: 1;
    min-width: 250px;
}

.select-wrapper {
    position: relative;
}

label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

select {
    padding: 10px 36px 10px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select:hover {
    border-color: #667eea;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718096;
    font-size: 14px;
    margin: 0 0 24px 0;
    padding: 0 16px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

@media screen and (max-width: 768px) {
    .info {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 16px;
    }
}

.info strong {
    color: #2d3748;
}

.info a {
    color: #667eea;
}

#chart {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.footer, .footer a {
    text-align: center;
    color: white;
    font-size: 14px;
    margin-top: 32px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    .card {
        padding: 24px 20px;
    }

    h1 {
        font-size: 22px;
    }

    header {
        flex-direction: column;
        align-items: stretch;
    }

    #chart {
        height: 400px;
    }
}