/* === ATM FEES WORLDWIDE - Mobile First, Travel Style === */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #ff6f3c;
    --accent-dark: #e55a2b;
    --success: #27ae60;
    --success-light: #e8f8f0;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg: #f5f7fa;
    --bg-warm: #fff9f5;
    --card-bg: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --border: #dfe6e9;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* === HEADER === */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, #6c5ce7 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* === LANGUAGE DROPDOWN === */
.lang-dropdown {
    position: relative;
    margin-left: 0.5rem;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.lang-dropdown-btn:hover {
    background: rgba(255,255,255,0.22);
}

.lang-dropdown-btn .fi {
    font-size: 1rem;
    border-radius: 2px;
}

.lang-chevron {
    transition: transform 0.2s;
    opacity: 0.7;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
    border: 1px solid var(--border);
}

.lang-dropdown.open .lang-dropdown-menu {
    display: block;
    animation: langDropIn 0.15s ease-out;
}

@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s;
}

.lang-dropdown-item:hover {
    background: var(--bg);
}

.lang-dropdown-item.active {
    background: var(--bg);
    font-weight: 600;
    color: var(--primary);
}

.lang-dropdown-item .fi {
    font-size: 1.1rem;
    border-radius: 2px;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #6c5ce7 50%, var(--accent) 100%);
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* === SEARCH === */
.search-section {
    max-width: 600px;
    margin: -1.5rem auto 1.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.search-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
    background: transparent;
    color: var(--text);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* === CONTENEUR === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* === SECTIONS === */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === GRILLE DE PAYS === */
.countries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.country-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.country-card:hover {
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent);
    transform: translateY(-2px);
}

.country-flag {
    font-size: 2rem;
    line-height: 1;
}

.country-info { flex: 1; }

.country-name {
    font-weight: 600;
    font-size: 1rem;
}

.country-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.country-badge {
    background: var(--bg);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* === TABLEAU DES FRAIS === */
.fees-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fees-table thead {
    background: var(--text);
    color: white;
}

.fees-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.fees-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.fees-table tbody tr:hover {
    background: var(--bg-warm);
}

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

.fee-free {
    color: var(--success);
    font-weight: 700;
    background: var(--success-light);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.fee-amount {
    font-weight: 600;
    color: var(--danger);
}

.eur-equivalent {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.15rem;
}

.bank-name-cell {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.partnership-badge {
    background: #e8f4fd;
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

/* === BANK TAGS === */
.bank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.bank-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: default;
    position: relative;
}

.bank-tag[data-tooltip] {
    cursor: help;
}

.bank-tag[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
    background: white;
    color: var(--text);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    line-height: 1.5;
}

.bank-tag[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 4px);
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: white;
    z-index: 101;
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.06));
}

.suggest-btn-row {
    display: flex;
    gap: 0.5rem;
}

.suggest-btn-row a {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.suggest-btn-row a:hover { opacity: 1; }

/* === PAGE PAYS === */
.country-header {
    background: var(--card-bg);
    color: var(--text);
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.country-header-flag {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.country-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.country-header .currency-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.country-stats {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.country-stat {
    text-align: center;
    padding: 0.6rem 1.2rem;
    flex: 1;
    cursor: default;
    border-right: 1px solid var(--border);
}

.country-stat:last-child {
    border-right: none;
}

.country-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.country-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.country-stat.free .country-stat-value { color: var(--success); }
.country-stat.paid .country-stat-value { color: var(--accent); }

.info-box {
    background: #e8f4fd;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text);
}

.info-box strong { color: var(--primary); }

/* === CARDS MOBILE - Affichage alternatif au tableau === */
.bank-cards {
    display: none;
}

.bank-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--border);
}

.bank-card.is-free { border-left-color: var(--success); }
.bank-card.has-fee { border-left-color: var(--accent); }

.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bank-card-name {
    font-weight: 700;
    font-size: 1rem;
}

.bank-card-fee {
    font-weight: 700;
    font-size: 1.1rem;
}

.bank-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.bank-card-detail label {
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.bank-card-notes {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-style: italic;
}

/* === FORMULAIRE DE SUGGESTION === */
.suggest-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.input-locked {
    background: var(--bg) !important;
    color: var(--text-light) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.form-group label .required { color: var(--danger); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover { background: var(--accent-dark); }

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover { background: #219a52; }

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover { background: #c0392b; }

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

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

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* === MESSAGES === */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: #1e8449;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fde8e8;
    color: #c0392b;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: #e8f4fd;
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* === FOOTER === */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    font-size: 0.85rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* === BACK-OFFICE ADMIN === */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--text);
    color: white;
    padding: 1rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 0.5rem 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav a .badge {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: auto;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--bg);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:hover { background: var(--bg-warm); }

.admin-table .actions {
    white-space: nowrap;
}

/* Admin card stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.stat-card.accent .stat-card-value { color: var(--accent); }
.stat-card.success .stat-card-value { color: var(--success); }
.stat-card.warning .stat-card-value { color: var(--warning); }

/* Suggestion card admin */
.suggestion-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--warning);
}

.suggestion-card .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggestion-card .content {
    margin: 0.5rem 0;
}

.suggestion-card .actions-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #6c5ce7 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.login-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .sep { margin: 0 0.2rem; }

/* === RESPONSIVE === */

/* Tablettes */
@media (min-width: 600px) {
    .countries-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
}

/* Desktop */
@media (min-width: 900px) {
    .countries-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero { padding: 3.5rem 1rem; }
    .hero h1 { font-size: 2.5rem; }

    .search-section { margin-top: -2rem; }

    .country-header { padding: 2.5rem 1rem 2rem; }
    .country-header h1 { font-size: 1.8rem; }
    .country-stat { padding: 0.5rem 0.8rem; }
}

/* Mobile spécifique */
@media (max-width: 768px) {
    .fees-table-wrapper { display: none; }
    .bank-cards { display: block; }

    /* Header responsive with lang dropdown */
    .header-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .lang-dropdown {
        margin-left: auto;
    }
    .lang-dropdown-label {
        display: none;
    }

    /* Admin responsive */
    .admin-sidebar {
        position: fixed;
        left: -240px;
        transition: left 0.3s;
        z-index: 200;
    }

    .admin-sidebar.open { left: 0; }

    .admin-main { margin-left: 0; }

    .admin-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 199;
    }

    .admin-overlay.open { display: block; }

    .mobile-menu-btn {
        display: inline-flex;
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.5rem;
        border-radius: var(--radius-sm);
        font-size: 1.2rem;
        cursor: pointer;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 0.5rem; }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
    .admin-overlay { display: none !important; }
}

/* === FLAG ICONS === */
.fi {
    font-size: 1.3em;
    line-height: 1;
    vertical-align: middle;
    border-radius: 2px;
}

.flag-big {
    font-size: 3rem;
}

.flag-emoji {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.flag-emoji.flag-big {
    font-size: 3rem;
}

.country-flag .fi {
    font-size: 2rem;
}

.country-header-flag .fi {
    font-size: 3rem;
}

/* Admin filter buttons flags */
.btn .fi {
    font-size: 1em;
    vertical-align: middle;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.country-card, .bank-card, .stat-card {
    animation: fadeIn 0.3s ease-out;
}

/* === UTILITAIRES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-results-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.no-results p { font-size: 1rem; }

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.status-pending { background: #ffeaa7; color: #846e00; }
.status-approved { background: var(--success-light); color: var(--success); }
.status-rejected { background: #fde8e8; color: var(--danger); }

/* === INLINE EDIT ADMIN === */
.inline-add-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.inline-add-form h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-add-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.inline-add-toggle:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.inline-edit-row td {
    padding: 0 !important;
    border-bottom: 2px solid var(--primary) !important;
}

.inline-edit-form {
    background: var(--bg);
    padding: 1.25rem;
    border-top: 2px solid var(--primary);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 800px; }
}

.inline-edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.inline-edit-form .form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.inline-edit-form .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-table tbody tr.editing-row {
    background: #e8f4fd;
}

.admin-table tbody tr.editing-row td {
    border-bottom-color: var(--primary);
}

/* Toggle switch */
.toggle-view {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.toggle-view button {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.toggle-view button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
