:root {
    color-scheme: dark;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2d2d2d;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary: #6c5ce7;
    --primary-hover: #5849c4;
    --accent-green: #00b894;
    --accent-yellow: #fdcb6e;
    --accent-red: #d63031;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    max-width: 1200px;
    width: 100%;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .app-container {
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 16px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .status-header h2 {
        font-size: 1.2rem;
    }

    .status-icon {
        font-size: 3rem;
    }

    .status-text h3 {
        font-size: 1.5rem;
    }

    .scores-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    font-weight: 600;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #363636;
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -7px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.range-value {
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    margin-top: 5px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

.disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Status Card */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.status-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.date-badge {
    background-color: var(--bg-input);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-display {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.status-text h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Score Bars */
.scores-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-item .label {
    width: 120px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-bar-bg {
    flex-grow: 1;
    height: 10px;
    background-color: var(--bg-input);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    transition: width 1s ease-in-out, background-color 0.3s;
}

.score-item .value {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Tips List */
#tipsList {
    list-style: none;
    padding-left: 0;
}

#tipsList li {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary);
    font-size: 0.95rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}