/**
 * SL Gamification Frontend CSS
 * File: public/css/frontend.css
 *
 * Styling for all frontend gamification components
 * Based on the Frontend folder designs
 */

/* Tailwind Custom Configuration */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Material+Symbols+Outlined&display=swap');

:root {
    --primary: #e0c353;
    --navy: #1d2655;
    --background-light: #f7f8fb;
    --background-dark: #111831;
    --foreground-light: #ffffff;
    --foreground-dark: #1c2345;
    --text-light: #0f1633;
    --text-dark: #eef1f8;
    --text-muted-light: #6b7287;
    --text-muted-dark: #aab1c8;
    --border-light: #e6e8f1;
    --border-dark: #2c345e;
    --card-shadow: 0 12px 32px rgba(12, 20, 54, 0.08);
}

/* Base Styles */
body {
    font-family: 'Lexend', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
}

/* Layout shells */
.sl-page {
    background: linear-gradient(135deg, #f7f8fb 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 32px 16px;
    color: var(--text-light);
}

.sl-page-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sl-surface {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.sl-surface-subtle {
    background: #f8f9fd;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
}

.sl-heading {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-light);
    margin: 2px 0;
}

.sl-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    color: var(--text-muted-light);
    margin-bottom: 6px;
}

.sl-body {
    color: var(--text-muted-light);
    font-size: 14px;
    margin-top: 6px;
}

/* Color Scheme */
.bg-background-light {
    background-color: var(--background-light);
}

.bg-background-dark {
    background-color: var(--background-dark);
}

.bg-foreground-light {
    background-color: var(--foreground-light);
}

.bg-foreground-dark {
    background-color: var(--foreground-dark);
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.text-text-light {
    color: var(--text-light);
}

.text-text-dark {
    color: var(--text-dark);
}

.text-text-muted-light {
    color: var(--text-muted-light);
}

.text-text-muted-dark {
    color: var(--text-muted-dark);
}

.border-border-light {
    border-color: var(--border-light);
}

.border-border-dark {
    border-color: var(--border-dark);
}

/* Widget */
.sl-widget-card {
    overflow: hidden;
    padding: 18px;
}

.sl-widget-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(224,195,83,0.12), rgba(29,38,85,0.08));
    pointer-events: none;
    border-radius: 18px;
}

.sl-widget-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 2fr 0.9fr;
    gap: 16px;
    align-items: center;
    z-index: 1;
}

.sl-widget-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sl-avatar-frame {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f2f9;
    border: 2px solid rgba(29,38,85,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sl-avatar-frame.lg { width: 72px; height: 72px; }
.sl-avatar-frame.sm { width: 40px; height: 40px; border-width: 1px; }

.sl-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sl-widget-text { display: flex; flex-direction: column; gap: 4px; }
.sl-widget-eyebrow { font-size: 12px; color: var(--text-muted-light); }
.sl-widget-title { font-size: 20px; font-weight: 800; color: var(--text-light); margin: 0; }
.sl-widget-link { font-size: 13px; color: #1d2655; font-weight: 600; text-decoration: underline; }

.sl-widget-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.sl-stat-tile {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sl-stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted-light); }
.sl-stat-value { font-size: 22px; font-weight: 800; color: var(--navy); }

.sl-progress { display: flex; align-items: center; gap: 8px; }
.sl-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e9ecf6;
    overflow: hidden;
}
.sl-progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #e0c353, #f5dd70);
    border-radius: 999px;
}
.sl-progress-text { font-size: 12px; font-weight: 700; color: var(--navy); }

.sl-cta-button {
    justify-self: end;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--primary);
    color: var(--navy);
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(224,195,83,0.25);
}

.sl-cta-button:hover { opacity: 0.95; transform: translateY(-1px); }
.sl-widget-card .sl-cta-button { width: 100%; height: 100%; }

/* Summary section */
.sl-summary-card {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 18px;
    align-items: center;
}

.sl-summary-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sl-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

/* Grid layout */
.sl-grid-two {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 16px;
}

.sl-card-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sl-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sl-block-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sl-list { display: flex; flex-direction: column; gap: 10px; }
.sl-list.stacked { gap: 0; }

.sl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.sl-row.slim { padding: 8px 0; }
.sl-row:last-child { border-bottom: none; }

.sl-row-left { display: flex; align-items: center; gap: 10px; }
.sl-row-title { font-weight: 700; color: var(--text-light); }
.sl-row-sub { font-size: 12px; color: var(--text-muted-light); }
.sl-empty { font-size: 13px; color: var(--text-muted-light); }

/* Table */
.sl-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.sl-table-head, .sl-table-row {
    display: grid;
    grid-template-columns: 1.4fr 0.5fr 0.7fr;
    padding: 12px 14px;
    align-items: center;
}

.sl-table-head {
    background: #f3f5fb;
    color: var(--text-muted-light);
    font-weight: 700;
}

.sl-table-row {
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
}

.sl-table-row.highlight { background: rgba(224,195,83,0.12); }
.sl-table-compact .sl-table-head, .sl-table-compact .sl-table-row { grid-template-columns: 1fr 0.3fr; }

/* Dashboard hero */
.sl-hero {
    background: linear-gradient(135deg, rgba(29,38,85,0.95), rgba(29,38,85,0.85));
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.sl-hero .sl-stat {
    background: var(--foreground-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.sl-btn-primary {
    background: var(--primary);
    color: var(--navy);
    border-radius: 10px;
    font-weight: 700;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sl-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.sl-card {
    background: var(--foreground-light);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.sl-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-achievement {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.sl-achievement:last-child {
    border-bottom: none;
}

.sl-activity {
    display: grid;
    grid-template-columns: 1.4fr 0.4fr 0.6fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.sl-activity:last-child {
    border-bottom: none;
}

.sl-points-positive {
    color: #0c9a5b;
    font-weight: 700;
}

.sl-points-negative {
    color: #cc2a2a;
    font-weight: 700;
}

.sl-lb-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 12px;
    background: var(--foreground-light);
    border: 1px solid var(--border-light);
}

.sl-lb-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-muted-light);
    cursor: pointer;
}

.sl-lb-tab.active {
    background: var(--primary);
    color: var(--navy);
}

.sl-lb-row {
    display: grid;
    grid-template-columns: 0.6fr 2fr 1fr;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.sl-lb-row.highlight {
    background: rgba(224,195,83,0.15);
    border-left: 3px solid var(--primary);
}

.sl-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(29,38,85,0.12);
}

/* Gamification Widget Styles */
.sl-gamification-widget {
    transition: all 0.3s ease;
}

.sl-gamification-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* My Progress Page Styles */
.sl-my-progress {
    min-height: 100vh;
    background-color: var(--background-light);
    color: var(--text-light);
    font-family: 'Lexend', sans-serif;
    display: flex;
}

.sl-side-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sl-nav-item {
    transition: all 0.2s ease;
}

.sl-nav-item:hover {
    background-color: var(--background-light);
    transform: translateX(4px);
}

.dark .sl-nav-item:hover {
    background-color: var(--background-dark);
}

/* Scoped layout & typography utilities for My Progress (subset of Tailwind semantics) */
.sl-my-progress .relative { position: relative; }
.sl-my-progress .flex { display: flex; }
.sl-my-progress .flex-col { flex-direction: column; }
.sl-my-progress .items-center { align-items: center; }
.sl-my-progress .justify-between { justify-content: space-between; }
.sl-my-progress .flex-1 { flex: 1 1 0%; }
.sl-my-progress .h-auto { height: auto; }
.sl-my-progress .h-full { height: 100%; }
.sl-my-progress .min-h-screen { min-height: 100vh; }
.sl-my-progress .min-h-\[700px\] { min-height: 700px; }
.sl-my-progress .w-full { width: 100%; }
.sl-my-progress .w-24 { width: 6rem; }
.sl-my-progress .h-24 { height: 6rem; }
.sl-my-progress .size-10 { width: 2.5rem; height: 2.5rem; }

.sl-my-progress .grid { display: grid; }
.sl-my-progress .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sl-my-progress .col-span-1 { grid-column: span 1 / span 1; }

@media (min-width: 1280px) {
    .sl-my-progress .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sl-my-progress .xl\:col-span-3 { grid-column: span 3 / span 3; }
    .sl-my-progress .xl\:col-span-2 { grid-column: span 2 / span 2; }
}

.sl-my-progress .max-w-7xl { max-width: 80rem; }
.sl-my-progress .mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing utilities */
.sl-my-progress .p-2 { padding: 0.5rem; }
.sl-my-progress .p-4 { padding: 1rem; }
.sl-my-progress .p-6 { padding: 1.5rem; }
.sl-my-progress .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.sl-my-progress .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.sl-my-progress .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.sl-my-progress .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.sl-my-progress .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.sl-my-progress .pt-4 { padding-top: 1rem; }
.sl-my-progress .mt-6 { margin-top: 1.5rem; }
.sl-my-progress .mb-4 { margin-bottom: 1rem; }
.sl-my-progress .mb-8 { margin-bottom: 2rem; }
.sl-my-progress .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Gap utilities */
.sl-my-progress .gap-1 { gap: 0.25rem; }
.sl-my-progress .gap-2 { gap: 0.5rem; }
.sl-my-progress .gap-3 { gap: 0.75rem; }
.sl-my-progress .gap-4 { gap: 1rem; }
.sl-my-progress .gap-6 { gap: 1.5rem; }

/* Borders and rounding */
.sl-my-progress .border { border-width: 1px; border-style: solid; }
.sl-my-progress .border-t { border-top-width: 1px; border-style: solid; }
.sl-my-progress .rounded-lg { border-radius: 0.5rem; }
.sl-my-progress .rounded-xl { border-radius: 0.75rem; }
.sl-my-progress .rounded-full { border-radius: 9999px; }

/* Text utilities */
.sl-my-progress .text-xs { font-size: 0.75rem; line-height: 1rem; }
.sl-my-progress .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.sl-my-progress .text-base { font-size: 1rem; line-height: 1.5rem; }
.sl-my-progress .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.sl-my-progress .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.sl-my-progress .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.sl-my-progress .font-normal { font-weight: 400; }
.sl-my-progress .font-medium { font-weight: 500; }
.sl-my-progress .font-semibold { font-weight: 600; }
.sl-my-progress .font-bold { font-weight: 700; }
.sl-my-progress .font-black { font-weight: 900; }
.sl-my-progress .leading-tight { line-height: 1.25; }
.sl-my-progress .tracking-tighter { letter-spacing: -0.05em; }
.sl-my-progress .tracking-tight { letter-spacing: -0.025em; }

/* Misc utilities used in the layout */
.sl-my-progress .bg-center { background-position: center; }
.sl-my-progress .bg-cover { background-size: cover; }
.sl-my-progress .bg-no-repeat { background-repeat: no-repeat; }
.sl-my-progress .aspect-square { aspect-ratio: 1 / 1; }
.sl-my-progress .cursor-pointer { cursor: pointer; }
.sl-my-progress .text-center { text-align: center; }
.sl-my-progress .flow-root { overflow: auto; }
.sl-my-progress .space-x-4 > :not(:last-child) { margin-right: 1rem; }

/* Divider helper for Recent Activity list */
.sl-my-progress .divide-y > li + li {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: var(--border-light);
}

.dark .sl-my-progress .divide-y > li + li {
    border-top-color: var(--border-dark);
}

/* Soft primary background accents for icons */
.sl-my-progress .bg-primary\/20 {
    background-color: rgba(255, 152, 0, 0.12);
}

.sl-my-progress .dark\:bg-primary\/30 {
    background-color: rgba(255, 152, 0, 0.18);
}

/* Progress Bar Animation */
.sl-progress-bar {
    position: relative;
    overflow: hidden;
}

.sl-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Achievement Cards */
.sl-achievement-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.sl-achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sl-achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.sl-achievement-card.locked:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Activity Feed */
.sl-activity-item {
    transition: all 0.2s ease;
}

.sl-activity-item:hover {
    background-color: var(--background-light);
}

.dark .sl-activity-item:hover {
    background-color: var(--background-dark);
}

/* Leaderboard Styles */
.sl-leaderboard {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--foreground-light) 100%);
}

.dark .sl-leaderboard {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--foreground-dark) 100%);
}

.sl-leaderboard-row {
    transition: all 0.2s ease;
}

.sl-leaderboard-row:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.02);
}

.sl-leaderboard-row.current-user {
    background-color: var(--primary);
    color: var(--text-light);
    font-weight: bold;
}

.sl-leaderboard-row.current-user:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(19, 236, 91, 0.3);
}

/* Rank Badges */
.sl-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    background: #eef1f8;
    color: var(--text-light);
}

.sl-rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}

.sl-rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #fff;
}

.sl-rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

/* Pagination */
.sl-pagination-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.sl-pagination-btn:hover:not(.active) {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
}

.sl-pagination-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
}

/* How Points Work Page */
.sl-how-points-work {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--foreground-light) 100%);
}

.dark .sl-how-points-work {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--foreground-dark) 100%);
}

.sl-rules-tabs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sl-rules-tab {
    transition: all 0.3s ease;
}

.sl-rules-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sl-rules-tab input:checked + * {
    background: var(--foreground-light);
    color: var(--text-light);
}

.dark .sl-rules-tab input:checked + * {
    background: var(--foreground-dark);
    color: var(--text-dark);
}

/* Rule Cards */
.sl-rule-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sl-rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sl-rule-card:hover::before {
    left: 100%;
}

.sl-rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sl-rule-card.positive:hover {
    border-color: var(--primary);
}

.sl-rule-card.negative:hover {
    border-color: #dc2626;
}

.sl-rule-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sl-rule-icon.positive { background: rgba(29,38,85,0.08); color: var(--navy); }
.sl-rule-icon.negative { background: rgba(204,42,42,0.08); color: #cc2a2a; }

.sl-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sl-tabset {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: #f1f3fa;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin: 8px 0 4px 0;
}

.sl-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-muted-light);
    cursor: pointer;
}

.sl-tab.active {
    background: var(--primary);
    color: var(--navy);
    box-shadow: 0 8px 18px rgba(224,195,83,0.25);
}

.sl-reset { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted-light); font-weight: 600; }

.sl-cta-row { margin-top: 16px; display: flex; justify-content: center; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Utility Classes */
.sl-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.sl-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.sl-pulse {
    animation: pulse 2s infinite;
}

.sl-bounce {
    animation: bounce 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sl-side-nav {
        display: none;
    }

    .sl-widget-grid {
        grid-template-columns: 1fr;
    }

    .sl-summary-card {
        grid-template-columns: 1fr;
    }

    .sl-grid-two {
        grid-template-columns: 1fr;
    }

    .sl-page {
        padding: 18px 14px;
    }
}

/* Loading States */
.sl-loading {
    position: relative;
    overflow: hidden;
}

.sl-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Interactive Elements */
.sl-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sl-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.sl-btn:hover::before {
    width: 100%;
    height: 100%;
}

.sl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sl-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Notice Styles */
.sl-notice {
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    text-align: center;
    margin: 1rem 0;
}

.dark .sl-notice {
    background-color: var(--background-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* Print Styles */
@media print {
    .sl-side-nav,
    .sl-pagination-btn,
    .sl-btn {
        display: none;
    }

    .sl-gamification-widget,
    .sl-leaderboard,
    .sl-how-points-work {
        break-inside: avoid;
    }
}
