/**
 * Madrassatou Salahuddine - Styles Principaux
 * Esthétique: Géométrie islamique + Calligraphie moderne
 * Palette: Vert émeraude, Or antique, Crème papyrus
 */

/* ============================================
   IMPORTS & FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Scheherazade+New:wght@400;700&family=Noto+Kufi+Arabic:wght@400;600;700&family=Crimson+Pro:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Couleurs principales */
    --emerald-deep: #0d4a3a;
    --emerald: #1a7a5c;
    --emerald-light: #2d9b73;
    --gold-antique: #c9a227;
    --gold-light: #e8c547;
    --gold-pale: #f5e6b3;

    /* Neutres */
    --papyrus: #f8f4e8;
    --papyrus-dark: #e8e0cc;
    --ink-dark: #1a1a18;
    --ink: #2d2b26;
    --ink-light: #5c5a52;

    /* Accents */
    --burgundy: #6b1a3a;
    --turquoise: #1a8a9a;
    --terracotta: #c4624a;

    /* États */
    --success: #2d8a4e;
    --warning: #d4a012;
    --danger: #c44a4a;
    --info: #3a7ca5;

    /* Typographie */
    --font-arabic: 'Amiri', 'Scheherazade New', serif;
    --font-kufi: 'Noto Kufi Arabic', sans-serif;
    --font-display: 'Crimson Pro', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Rayons */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(26, 26, 24, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 26, 24, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 26, 24, 0.16);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--papyrus);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Pattern de fond géométrique islamique */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23c9a227' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--emerald-deep);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.5em;
    direction: rtl;
    line-height: 2;
    color: var(--emerald-deep);
}

.kufi-text {
    font-family: var(--font-kufi);
    direction: rtl;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-antique);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(201, 162, 39, 0.15);
}

.sidebar-logo {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.sidebar-logo h1 {
    font-family: var(--font-kufi);
    color: var(--gold-antique);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    direction: rtl;
    line-height: 1.5;
}

.sidebar-logo .subtitle {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.sidebar-logo .subtitle-small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-top: 4px;
}

.sidebar-logo .islamic-star {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    position: relative;
}

.sidebar-logo .islamic-star::before,
.sidebar-logo .islamic-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold-antique);
}

.sidebar-logo .islamic-star::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-logo .islamic-star::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.nav-section {
    margin-bottom: var(--space-md);
}

.nav-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-xs);
    padding-left: var(--space-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.7rem var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: var(--gold-antique);
    background: rgba(201, 162, 39, 0.15);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
}

.nav-item.active i {
    opacity: 1;
    color: var(--gold-antique);
}

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-antique);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.user-details h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-details span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: capitalize;
}

.main-content {
    flex: 1;
    margin-left: 270px;
    padding: var(--space-xl);
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--papyrus-dark);
}

.page-header h1 {
    margin-bottom: var(--space-xs);
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: var(--ink-light);
}

.page-header .breadcrumb a {
    color: var(--emerald);
}

.header-actions {
    display: flex;
    gap: var(--space-md);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--papyrus-dark);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-deep);
}

.card-body {
    position: relative;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), transparent);
    border-radius: 0 var(--radius-lg) 0 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.emerald {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    border-left: 4px solid var(--gold-antique);
    color: white;
}

.stat-card.emerald .stat-value,
.stat-card.emerald .stat-label {
    color: white;
}

.stat-card.emerald .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card.gold {
    border-left: 4px solid var(--gold-antique);
}

.stat-card.burgundy {
    border-left: 4px solid var(--burgundy);
}

.stat-card.turquoise {
    border-left: 4px solid var(--turquoise);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
}

.stat-card.emerald .stat-icon {
    background: rgba(26, 122, 92, 0.1);
    color: var(--emerald);
}

.stat-card.gold .stat-icon {
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-antique);
}

.stat-card.burgundy .stat-icon {
    background: rgba(107, 26, 58, 0.1);
    color: var(--burgundy);
}

.stat-card.turquoise .stat-icon {
    background: rgba(26, 138, 154, 0.1);
    color: var(--turquoise);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--ink-dark);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--ink-light);
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 122, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 122, 92, 0.4);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-antique) 0%, #a88620 100%);
    color: white;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.35);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--emerald);
    color: var(--emerald);
}

.btn-outline:hover {
    background: var(--emerald);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #a33a3a 100%);
    color: white;
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--papyrus-dark);
    border-radius: var(--radius-md);
    background: white;
    color: var(--ink);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(26, 122, 92, 0.1);
}

.form-control::placeholder {
    color: var(--ink-light);
    opacity: 0.6;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5a52' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-2xl);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
}

.table th {
    background: var(--emerald-deep);
    color: var(--gold-pale);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.table tbody tr {
    border-bottom: 1px solid var(--papyrus-dark);
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--papyrus);
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: rgba(45, 138, 78, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(212, 160, 18, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(196, 74, 74, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(58, 124, 165, 0.1);
    color: var(--info);
}

.badge-gold {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-antique);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

/* ============================================
   PROGRESS
   ============================================ */
.progress {
    height: 8px;
    background: var(--papyrus-dark);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-light) 100%);
    border-radius: 10px;
    transition: width var(--transition-slow);
}

.progress-bar.gold {
    background: linear-gradient(90deg, var(--gold-antique) 0%, var(--gold-light) 100%);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.alert-success {
    background: rgba(45, 138, 78, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(212, 160, 18, 0.1);
    border-left: 4px solid var(--warning);
    color: #8a6c0f;
}

.alert-danger {
    background: rgba(196, 74, 74, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(58, 124, 165, 0.1);
    border-left: 4px solid var(--info);
    color: var(--info);
}

/* ============================================
   QURAN PROGRESS WIDGET
   ============================================ */
.quran-progress {
    background: linear-gradient(135deg, var(--emerald-deep) 0%, #0a3a2e 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.quran-progress::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.quran-progress .arabic-verse {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    text-align: center;
    color: var(--gold-antique);
    margin-bottom: var(--space-lg);
    direction: rtl;
    line-height: 2;
}

.surah-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.surah-item {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.surah-item:hover {
    background: rgba(201, 162, 39, 0.3);
}

.surah-item.memorized {
    background: var(--gold-antique);
    color: var(--emerald-deep);
}

.surah-item.in-progress {
    background: rgba(201, 162, 39, 0.4);
    border: 1px dashed var(--gold-antique);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald-deep) 0%, #0a3a2e 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L100 50L50 100L0 50z' fill='none' stroke='%23c9a227' stroke-width='0.5' opacity='0.1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23c9a227' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
    animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-antique), var(--gold-light), var(--gold-antique));
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-header .islamic-ornament {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    position: relative;
}

.login-header .islamic-ornament::before,
.login-header .islamic-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 3px solid var(--emerald);
    transform: translate(-50%, -50%) rotate(45deg);
}

.login-header .islamic-ornament::after {
    width: 45px;
    height: 45px;
    border-color: var(--gold-antique);
    transform: translate(-50%, -50%) rotate(0deg);
}

.login-header h1 {
    font-family: var(--font-kufi);
    color: var(--emerald-deep);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    direction: rtl;
}

.login-header .subtitle {
    color: var(--ink-light);
    font-size: 0.95rem;
}

.login-form .form-group {
    position: relative;
}

.login-form .form-control {
    padding-left: 50px;
}

.login-form .input-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-light);
}

.login-form .btn-primary {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1.05rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

.slide-in {
    animation: slideIn 0.4s ease forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 200;
    width: 46px;
    height: 46px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--gold-antique);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #222;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        width: 270px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: var(--space-lg);
        padding-top: 80px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.25rem;
        --space-2xl: 1.5rem;
    }

    html {
        font-size: 15px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .main-content {
        padding: var(--space-md);
        padding-top: 70px;
        min-height: 100vh;
    }

    /* Page header mobile */
    .page-header {
        flex-direction: column;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-lg);
        text-align: center !important;
        align-items: center !important;
    }

    .page-header > div,
    .page-header > div:first-child {
        width: 100%;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-header h1 {
        font-size: 1.4rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--emerald-deep);
        position: relative;
        padding-top: 2.5rem;
        text-align: center !important;
        width: 100%;
        display: block;
    }

    .page-header h1::before {
        content: 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        font-family: var(--font-arabic);
        font-size: 1.1rem;
        color: var(--gold-antique);
        text-transform: none;
        letter-spacing: 0;
        white-space: nowrap;
        font-weight: normal;
        text-align: center;
    }

    .page-header .breadcrumb {
        display: none;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .header-actions .btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    /* Grids mobile */
    .grid-4, .grid-3, .grid-2, .grid-5 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }

    /* Cards mobile */
    .card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
        margin: 0 calc(-1 * var(--space-xs));
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        text-align: center;
    }

    .card-title {
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .card:hover {
        transform: none;
    }

    /* Stat cards mobile - 2 par ligne */
    .grid-4.mb-2, .grid-3.mb-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .stat-card:hover {
        transform: none;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Tables mobile - scrollable avec indicateur */
    .table-container {
        margin: 0 calc(-1 * var(--space-md));
        padding: 0;
        border-radius: 0;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
    }

    .table {
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .table th:first-child,
    .table th:last-child {
        border-radius: 0;
    }

    /* Formulaires mobile */
    .form-group {
        margin-bottom: var(--space-md);
    }

    .form-control {
        padding: var(--space-md);
        font-size: 16px; /* Empêche le zoom iOS */
    }

    .form-select {
        padding-right: var(--space-xl);
    }

    /* Boutons mobile */
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .btn-sm {
        padding: var(--space-sm) var(--space-md);
        width: auto;
    }

    .flex-between {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .flex-between .btn {
        width: 100%;
    }

    /* Badges mobile */
    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* Flex containers mobile */
    .flex {
        flex-wrap: wrap;
    }

    .flex[style*="gap"] {
        gap: var(--space-sm) !important;
    }

    /* Actions dans les tableaux */
    td .flex {
        flex-wrap: nowrap;
    }

    /* Modals mobile */
    .card[style*="position: fixed"],
    #modal-refus .card {
        width: calc(100% - var(--space-lg)) !important;
        max-width: none !important;
        margin: var(--space-md) !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Login page mobile */
    .login-container {
        padding: var(--space-md);
    }

    .login-card {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .login-header h1 {
        font-size: 1.3rem;
    }

    .login-header .islamic-ornament {
        width: 60px;
        height: 60px;
    }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .main-content {
        padding: var(--space-sm);
        padding-top: 65px;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        top: var(--space-sm);
        left: var(--space-sm);
    }

    .page-header h1 {
        font-size: 1.15rem;
        padding-top: 2.2rem;
    }

    .page-header h1::before {
        font-size: 0.95rem;
    }

    /* Stat cards 2x2 sur très petits écrans */
    .grid-4.mb-2, .grid-3.mb-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .stat-card {
        padding: var(--space-sm);
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    /* Cards très compact */
    .card {
        padding: var(--space-sm);
        margin: 0 calc(-1 * var(--space-sm));
        border-radius: var(--radius-sm);
    }

    .card-header {
        padding-bottom: var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    /* Tables encore plus compactes */
    .table th,
    .table td {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    /* Formulaires compacts */
    .grid.grid-2, .grid.grid-3 {
        grid-template-columns: 1fr;
    }

    /* Boutons plus petits */
    .header-actions .btn {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-md);
    }

    /* Sidebar plus étroite sur petit écran */
    .sidebar {
        width: 260px;
    }

    .sidebar-logo h1 {
        font-size: 1.1rem;
    }

    .nav-item {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding-top: 60px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .grid-4.mb-2, .grid-3.mb-2 {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-card {
        padding: var(--space-sm);
    }

    .login-page {
        padding: var(--space-md);
    }

    .login-card {
        padding: var(--space-md);
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Augmenter les zones tactiles */
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }

    .nav-item {
        min-height: 48px;
    }

    .form-control, .form-select {
        min-height: 48px;
    }

    /* Désactiver les effets hover sur tactile */
    .card:hover,
    .stat-card:hover,
    .btn:hover {
        transform: none;
    }

    /* Active states pour tactile */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .nav-item:active {
        background: rgba(201, 162, 39, 0.25);
    }

    .stat-card:active {
        opacity: 0.9;
    }

    /* Scroll smooth pour liste */
    .table-container,
    .sidebar-nav {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--ink-light); }
.text-gold { color: var(--gold-antique); }
.text-emerald { color: var(--emerald); }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-md); }
.p-2 { padding: var(--space-lg); }
.p-3 { padding: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Mobile-specific utilities */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    .text-center-mobile { text-align: center !important; }
    .full-width-mobile { width: 100% !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .main-content {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
        padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
    }

    .sidebar {
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
    }
}

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Alert close button */
.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    margin-left: auto;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* Additional badge colors */
.badge-secondary {
    background: rgba(92, 90, 82, 0.1);
    color: var(--ink-light);
}

.badge-emerald {
    background: rgba(26, 122, 92, 0.1);
    color: var(--emerald);
}

.badge-turquoise {
    background: rgba(26, 138, 154, 0.1);
    color: var(--turquoise);
}

/* Grid with 5 columns */
.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Column spans */
.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

/* Text colors */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-turquoise { color: var(--turquoise); }
.text-burgundy { color: var(--burgundy); }

/* Background colors for inline styles */
.bg-secondary { background: var(--papyrus); }

/* Border colors */
.border-light { border-color: var(--papyrus-dark); }

/* ============================================
   QUICK ACTIONS & NOTIFICATION CENTER
   ============================================ */
.quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) 0;
}

.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-bell {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
    animation: slideUpNotif 0.2s ease;
}

@keyframes slideUpNotif {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Flèche pointant vers le bouton */
.notification-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 2px solid var(--emerald);
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
}

.notification-header strong {
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.notification-header strong::before {
    content: '\f0f3';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold-antique);
}

.btn-link {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
    background: white;
}

/* État de chargement */
.notification-list p.text-center {
    padding: var(--space-xl) var(--space-lg);
    color: var(--ink-light);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.notification-list p.text-center::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--emerald);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notification-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-bottom: 1px solid var(--papyrus-dark);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--papyrus);
}

.notification-item.unread {
    background: rgba(26, 122, 92, 0.05);
    border-left: 3px solid var(--emerald);
}

.notification-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item .notif-icon.info {
    background: rgba(58, 124, 165, 0.15);
    color: var(--info);
}

.notification-item .notif-icon.succes {
    background: rgba(45, 138, 78, 0.15);
    color: var(--success);
}

.notification-item .notif-icon.attention {
    background: rgba(212, 160, 18, 0.15);
    color: var(--warning);
}

.notification-item .notif-icon.urgent {
    background: rgba(196, 74, 74, 0.15);
    color: var(--danger);
}

.notification-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 2px;
}

.notification-item .notif-message {
    font-size: 0.8rem;
    color: var(--ink-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item .notif-time {
    font-size: 0.7rem;
    color: var(--ink-light);
    margin-top: 4px;
}

.notification-empty {
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    color: var(--ink-light);
    background: linear-gradient(180deg, var(--papyrus) 0%, white 100%);
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--emerald);
    opacity: 0.4;
    display: block;
}

.notification-empty p {
    font-size: 0.9rem;
    color: var(--ink-light);
    margin: 0;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        bottom: auto;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - var(--space-lg));
        max-height: 60vh;
    }

    .notification-dropdown.show {
        transform: translateX(-50%);
    }

    .notification-dropdown::after {
        display: none;
    }

    .quick-actions {
        flex-wrap: wrap;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    background: #1a1a1a;
    color: white;
    margin-left: 270px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    padding: var(--space-lg) var(--space-xl);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer-title-ar {
    font-family: var(--font-kufi);
    color: var(--gold-antique);
    font-size: 1rem;
    direction: rtl;
}

.footer-title-fr {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.footer-location {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-antique);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-user i {
    color: var(--gold-antique);
    font-size: 0.75rem;
}

.footer-user .separator {
    opacity: 0.3;
}

/* Footer responsive */
@media (max-width: 1024px) {
    .app-footer {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: var(--space-md);
    }

    .footer-top {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .footer-links {
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .footer-user {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE TABLES AMÉLIORÉ
   ============================================ */
/* Mode carte pour mobile */
@media (max-width: 768px) {
    .table-responsive-cards .table {
        display: block;
        min-width: auto;
    }

    .table-responsive-cards .table thead {
        display: none;
    }

    .table-responsive-cards .table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .table-responsive-cards .table tbody tr {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: var(--radius-md);
        padding: var(--space-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--papyrus-dark);
    }

    .table-responsive-cards .table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--papyrus-dark);
    }

    .table-responsive-cards .table tbody tr td:last-child {
        border-bottom: none;
    }

    .table-responsive-cards .table tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--emerald-deep);
        font-size: 0.85rem;
    }

    /* Style spécial pour colonnes actions */
    .table-responsive-cards .table tbody tr td:last-child {
        justify-content: center;
        padding-top: var(--space-md);
    }

    .table-responsive-cards .table tbody tr td:last-child::before {
        display: none;
    }
}

/* Table scrollable améliorée */
.table-scroll-hint {
    position: relative;
}

.table-scroll-hint::before {
    content: '← Glissez pour voir plus →';
    display: none;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--ink-light);
    background: var(--papyrus);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .table-scroll-hint::before {
        display: block;
    }
}
