/* ==========================================================================
   Dashboard Specific Styles
   ========================================================================== */
:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #333;
    --text-muted: #777;
    --primary-blue: #0067f6;
    --border-light: #e0e0e0;
}

body {
    background-color: var(--bg-color);
    font-family: system-ui, -apple-system, sans-serif;
}

/* --- Layout & Header --- */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 20px;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* --- Course Cards Grid --- */
.section-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* --- Individual Card Styling --- */
.course-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.active-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 103, 246, 0.15);
    border-color: var(--primary-blue);
}

.disabled-card {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Card Content --- */
.course-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.course-info h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.course-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

/* --- Progress Bar --- */
.progress-bar-bg {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* --- Buttons --- */
.continue-btn {
    margin-top: auto; /* Pushes button to the bottom */
    padding: 12px;
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
}

.active-card .continue-btn:hover {
    background-color: #0056b3;
}

.disabled-card .continue-btn {
    background-color: #ccc;
    color: #666;
}
/* --- Reset Button --- */
.reset-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background-color: #fff0f0;
    color: #d9534f; /* Danger Red */
    border-color: #d9534f;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.overview-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accent-card {
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.overview-label {
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.overview-card strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.overview-card p,
.overview-card small {
    color: var(--text-muted);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.badge-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.badge-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.badge-card h3 {
    margin-bottom: 6px;
    color: var(--text-main);
}

.badge-card p,
.empty-state {
    color: var(--text-muted);
}
