/**
 * Admin CSS - Saveurs d'Ivoire
 * Interface d'administration moderne et responsive
 */

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    /* Couleurs modernes avec dégradés pour fond blanc */
    --admin-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --admin-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --admin-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --admin-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --admin-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --admin-danger: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);

    /* Couleurs solides */
    --admin-primary-solid: #667eea;
    --admin-secondary-solid: #f093fb;
    --admin-accent-solid: #4facfe;
    --admin-success-solid: #43e97b;
    --admin-warning-solid: #fa709a;
    --admin-danger-solid: #ff6b6b;

    /* Couleurs de base pour fond blanc */
    --admin-bg: #ffffff;
    --admin-light: #f8fafc;
    --admin-dark: #1a202c;
    --admin-gray: #718096;
    --admin-white: #ffffff;
    --admin-text: #2d3748;

    /* Nouveaux effets pour fond blanc */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.05);

    /* Layout moderne */
    --sidebar-width: 280px;
    --header-height: 70px;

    /* Spacing harmonieux */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Bordures et ombres pour fond blanc */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow-xl: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);

    /* Transitions fluides */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* Reset et base moderne pour fond blanc */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important;
}

/* Sidebar moderne pour fond blanc */
.admin-sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: none;
}

.admin-sidebar,
.sidebar-brand,
.sidebar-brand .spinner,
.sidebar-brand h2 {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0 !important;
    }
}

.sidebar-brand {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.sidebar-brand h2 {
    color: var(--admin-text);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.sidebar-brand h2 span {
    font-family: 'Great Vibes', cursive !important;
    font-size: 2rem !important;
    letter-spacing: 1px !important;
    background: var(--admin-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand .spinner {
    position: relative;
    width: 64px;
    height: 64px;
    transform: perspective(206px) rotateX(45deg);
}

.sidebar-brand .outer {
    box-sizing: border-box;
    animation: spin 3s linear infinite;
    height: 100%;
}

.sidebar-brand .inner {
    position: absolute;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.sidebar-brand .tl {
    top: 0;
    left: 0;
    border-top: 4px solid #4facfe;
    border-left: 5px solid #4facfe;
    animation: spin 1s ease-in-out infinite;
}

.sidebar-brand .tr {
    top: 0;
    right: 0;
    border-top: 4px solid #00f2fe;
    border-right: 5px solid #00f2fe;
    animation: spin 1s ease-in-out infinite;
}

.sidebar-brand .br {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #43e97b;
    border-right: 5px solid #43e97b;
    animation: spin 1s ease-in-out infinite;
}

.sidebar-brand .bl {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #38f9d7;
    border-left: 5px solid #38f9d7;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sidebar-nav {
    list-style: none;
    padding: var(--spacing-md) 0;
}

.sidebar-nav li {
    margin: var(--spacing-xs) var(--spacing-sm);
}

.sidebar-divider {
    height: 1px;
    background: var(--card-border);
    margin: var(--spacing-md) var(--spacing-lg);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--admin-text);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--admin-accent);
    transform: scaleY(0);
    transition: var(--transition);
    border-radius: 0 4px 4px 0;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--admin-primary-solid);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    transform: scaleY(1);
}

.sidebar-nav i {
    width: 24px;
    margin-right: var(--spacing-md);
    font-size: 1.1rem;
    text-align: center;
}

/* Main content moderne pour fond blanc */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--admin-light);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

.admin-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 0 var(--spacing-xl);
    height: var(--header-height);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-header h1 {
    color: var(--admin-text);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--admin-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header .d-flex {
    color: var(--admin-text);
    font-weight: 500;
}

.admin-content {
    padding: var(--spacing-xl);
    background: var(--admin-light);
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Page header moderne */
.page-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    color: var(--admin-gray);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Cards modernes pour fond blanc */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.card-header-responsive {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--admin-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.card-title-text {
    margin-right: var(--spacing-xs);
}

.card-title .badge {
    margin-left: var(--spacing-xs);
}

.card-search {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

@media (max-width: 768px) {
    .card-header {
        padding: var(--spacing-md);
    }

    .card-header-responsive {
        flex-direction: column;
        align-items: stretch;
    }

    .card-title {
        font-size: 1.1rem;
        justify-content: space-between;
        width: 100%;
    }

    .card-title .badge {
        margin-left: auto;
    }

    .card-search {
        max-width: 100%;
    }

    .card-search .form-control {
        width: 100%;
    }
}

.card-body {
    padding: var(--spacing-xl);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Stats cards révolutionnaires */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.stat-card:hover::before {
    height: 6px;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card.success::before {
    background: var(--admin-success);
}

.stat-card.warning::before {
    background: var(--admin-warning);
}

.stat-card.danger::before {
    background: var(--admin-danger);
}

.stat-card.info::before {
    background: var(--admin-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.stat-label {
    color: var(--admin-gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.stat-icon {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--admin-primary-solid);
    backdrop-filter: blur(10px);
}

/* Tableaux modernes pour fond blanc */
.table-responsive {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-lg);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    margin: var(--spacing-lg) 0;
    max-width: 100%;
}

.admin-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    background: transparent;
    table-layout: auto;
}

.admin-table th {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    color: var(--admin-text);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: left;
    border-bottom: 2px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.admin-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--card-border);
    color: var(--admin-text);
    font-weight: 500;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition);
    cursor: pointer;
}

.admin-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: var(--card-shadow);
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.admin-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.admin-table img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Table links et small text */
.admin-table a {
    color: var(--admin-accent-solid);
    text-decoration: none;
    transition: var(--transition);
}

.admin-table a:hover {
    color: var(--admin-primary-solid);
    text-decoration: underline;
}

.admin-table small {
    color: var(--admin-gray);
    font-size: 0.85rem;
}

.admin-table strong {
    color: var(--admin-text);
    font-weight: 600;
}

/* Sortable columns */
.admin-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.admin-table th.sortable:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
}

/* Top Produits Grid */
.top-produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.top-produits-grid .d-flex {
    padding: var(--spacing-md);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.top-produits-grid .d-flex:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--admin-accent-solid);
}

.top-produits-grid img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .top-produits-grid {
        grid-template-columns: 1fr;
    }
}

/* Empty state styling */
.text-center {
    text-align: center;
}

.text-center i.fa-3x {
    font-size: 3rem;
}

.text-center h4 {
    color: var(--admin-text);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.text-center p {
    color: var(--admin-gray);
    font-size: 0.95rem;
}

/* Table responsive adaptations */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        border-radius: 0;
    }

    .admin-table {
        min-width: 100%;
        font-size: 0.9rem;
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: block;
    }

    .admin-table tbody tr {
        display: block;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius-lg);
        padding: 0;
        box-shadow: var(--card-shadow);
        margin-bottom: var(--spacing-md);
        overflow: hidden;
    }

    .admin-table tbody td:first-child {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        background: var(--admin-light);
        overflow: hidden;
    }

    .admin-table tbody td:first-child img,
    .admin-table tbody td:first-child>div {
        width: 100% !important;
        height: 250px !important;
        max-width: 100%;
        border-radius: 0 !important;
        object-fit: cover;
        display: block;
    }

    .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: transparent !important;
    }

    .admin-table tbody td:last-child {
        border-bottom: none;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--admin-text);
        font-size: 0.85rem;
        min-width: 90px;
    }

    .admin-table tbody td:first-child::before {
        display: none;
    }

    .admin-table tbody td:last-child .btn,
    .admin-table tbody td:last-child form {
        width: 100%;
    }

    .admin-table tbody td:last-child .btn {
        justify-content: center;
        margin-right: 0;
        margin-bottom: var(--spacing-xs);
    }
}

@media (max-width: 480px) {

    /* Affichage en cartes optimisé pour très petits écrans */
    .table-responsive {
        margin: 0;
        border: none;
        background: transparent;
        padding: 0;
        overflow: visible;
    }

    /* Cacher le tableau et afficher en cartes */
    .admin-table {
        display: block;
        min-width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: block;
    }

    .admin-table tbody tr {
        display: block;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius-lg);
        padding: 0;
        box-shadow: var(--card-shadow);
        margin-bottom: var(--spacing-lg);
        overflow: hidden;
    }

    .admin-table tbody tr:hover {
        transform: none;
        box-shadow: var(--card-shadow-hover);
    }

    /* Image en pleine largeur en haut */
    .admin-table tbody td:first-child {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        background: var(--admin-light);
        overflow: hidden;
    }

    .admin-table tbody td:first-child img,
    .admin-table tbody td:first-child>div {
        width: 100% !important;
        height: 250px !important;
        max-width: 100%;
        border-radius: 0 !important;
        object-fit: cover;
        display: block;
    }

    /* Toutes les autres cellules */
    .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: transparent !important;
        min-height: auto;
    }

    .admin-table tbody td:last-child {
        border-bottom: none;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--admin-text);
        font-size: 0.85rem;
        min-width: 90px;
        flex-shrink: 0;
        padding-top: 2px;
    }

    .admin-table tbody td:first-child::before {
        display: none;
    }

    /* Contenu des cellules à droite */
    .admin-table tbody td>* {
        text-align: right;
        flex: 1;
    }

    /* Cellule avec nom et description */
    .admin-table tbody td:nth-child(2) {
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-md);
        background: rgba(102, 126, 234, 0.03) !important;
    }

    .admin-table tbody td:nth-child(2)::before {
        margin-bottom: var(--spacing-xs);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--admin-gray);
    }

    .admin-table tbody td:nth-child(2) strong {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
        display: block;
        text-align: left;
    }

    .admin-table tbody td:nth-child(2) small {
        text-align: left;
        display: block;
        line-height: 1.4;
    }

    /* Actions en bas - boutons empilés */
    .admin-table tbody td:last-child {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        border-top: 2px solid var(--card-border);
        background: rgba(248, 250, 252, 0.5) !important;
    }

    .admin-table tbody td:last-child::before {
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xs);
        font-size: 0.9rem;
    }

    .admin-table tbody td:last-child .btn {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }

    .admin-table tbody td:last-child form {
        width: 100%;
        display: block;
    }

    .admin-table tbody td:last-child .btn i {
        margin-right: var(--spacing-sm);
    }

    /* Prix en gras et plus grand */
    .admin-table tbody td:nth-child(3) {
        background: rgba(67, 233, 123, 0.05) !important;
    }

    .admin-table tbody td:nth-child(3) strong {
        font-size: 1.2rem;
        color: var(--admin-success-solid);
    }
}

/* Boutons modernes pour fond blanc */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

/* Boutons dans les tableaux - compacts */
.admin-table .btn {
    padding: 0.5rem;
    margin-right: 0.35rem;
    margin-bottom: 0;
    font-size: 1rem;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: none;
    border: none;
    background: transparent;
}

.admin-table .btn-sm {
    padding: 0.4rem;
    font-size: 0.95rem;
    min-width: 32px;
    height: 32px;
}

.admin-table .btn {
    cursor: pointer;
}

.admin-table .btn:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.admin-table .btn-warning {
    color: #f39c12;
    background: transparent;
}

.admin-table .btn-info {
    color: #3498db;
    background: transparent;
}

.admin-table .btn-danger {
    color: #e74c3c;
    background: transparent;
}

.admin-table .btn-success {
    color: var(--admin-success-solid);
    background: transparent;
}

.admin-table .btn-secondary {
    color: var(--admin-gray);
    background: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    margin-right: var(--spacing-xs);
    font-size: 1rem;
}

/* Icônes seules dans les tableaux */
.admin-table .btn i {
    margin-right: 0;
    font-size: 0.9rem;
}

/* Actions column alignment */
.admin-table td:last-child {
    white-space: nowrap;
    max-width: 150px;
    min-width: 120px;
}

.admin-table td:last-child .btn,
.admin-table td:last-child form {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 2px;
}

.admin-table td:last-child .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Cacher texte des boutons sur desktop */
.btn-text {
    display: none;
}

/* Filters wrapper responsive */
.filters-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.filters-wrapper .form-control,
.filters-wrapper .form-select {
    min-width: 150px;
    flex: 1;
}

.filters-wrapper .btn {
    padding: 0.75rem 1.5rem;
    min-height: 42px;
}

.btn-filter-text {
    display: inline;
    margin-left: var(--spacing-xs);
}

@media (max-width: 1366px) {
    .filters-wrapper {
        width: 100%;
        gap: var(--spacing-sm);
    }

    .filters-wrapper .form-control,
    .filters-wrapper .form-select {
        min-width: 120px;
        flex: 1 1 calc(50% - var(--spacing-sm));
    }

    .filters-wrapper .btn {
        flex: 1 1 calc(50% - var(--spacing-sm));
        min-height: 42px;
    }
}

@media (max-width: 768px) {
    .filters-wrapper {
        width: 100%;
        flex-direction: column;
    }

    .filters-wrapper .form-control,
    .filters-wrapper .form-select,
    .filters-wrapper .btn {
        width: 100%;
        min-height: 48px;
    }

    .btn-filter-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .btn-text {
        display: inline;
        margin-left: var(--spacing-xs);
    }

    .btn-filter-text {
        display: inline;
    }
}

.btn-primary {
    background: var(--admin-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #5dbcfe 0%, #1ef4fe 100%);
}

.btn-success {
    background: var(--admin-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #5ef97f 0%, #4ffad9 100%);
}

.btn-warning {
    background: var(--admin-warning);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #fc7da8 0%, #fee952 100%);
}

.btn-danger {
    background: var(--admin-danger);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ff7d7d 0%, #ffb13e 100%);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--admin-text);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Button responsive */
.btn-group {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-right: var(--spacing-xs);
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .btn-group {
        justify-content: flex-start;
    }

    /* Action buttons in tables */
    .admin-table .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        margin: 0.1rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
        margin-bottom: var(--spacing-xs);
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        margin-right: 0;
    }

    /* Form buttons */
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .form-actions .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Formulaires modernes */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--admin-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    font-size: 1rem;
    color: var(--admin-text);
    box-shadow: var(--shadow-sm);
}

.form-control::placeholder {
    color: var(--admin-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--admin-accent-solid);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.15), var(--shadow-md);
    background: var(--admin-white);
}

.form-select {
    background: var(--card-bg);
    color: var(--admin-text);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.form-select option {
    background: var(--admin-white);
    color: var(--admin-text);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--admin-text);
}

.form-check-input {
    margin-right: var(--spacing-sm);
    accent-color: var(--admin-accent-solid);
}

/* Form responsive */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-control {
        padding: 0.6rem;
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .form-control {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: var(--spacing-sm);
    }
}

/* Badges modernes pour fond blanc */
.badge {
    display: inline;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    color: var(--admin-success-solid);
}

.badge-warning {
    color: #f77f00;
}

.badge-danger {
    color: var(--admin-danger-solid);
}

.badge-info {
    color: var(--admin-accent-solid);
}

.badge-secondary {
    color: var(--admin-gray);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px !important;
    min-width: 40px;
    max-width: 40px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #10b981;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(18px);
}

.toggle-switch input:disabled+.toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-label {
    font-size: 0.875rem;
    color: var(--admin-text);
    vertical-align: middle;
    font-weight: 500;
}

/* Couleurs de statut pour les statistiques */
.stat-card.attente .stat-label {
    color: #f39c12 !important;
    font-weight: 600;
}

.stat-card.attente .stat-number {
    color: #f39c12 !important;
}

.stat-card.preparation .stat-label {
    color: #3498db !important;
    font-weight: 600;
}

.stat-card.preparation .stat-number {
    color: #3498db !important;
}

.stat-card.expediee .stat-label {
    color: #9b59b6 !important;
    font-weight: 600;
}

.stat-card.expediee .stat-number {
    color: #9b59b6 !important;
}

.stat-card.livree .stat-label {
    color: #27ae60 !important;
    font-weight: 600;
}

.stat-card.livree .stat-number {
    color: #27ae60 !important;
}

.stat-card.prete .stat-label {
    color: #16a085 !important;
    font-weight: 600;
}

.stat-card.prete .stat-number {
    color: #16a085 !important;
}

.stat-card.annulee .stat-label {
    color: #e74c3c !important;
    font-weight: 600;
}

.stat-card.annulee .stat-number {
    color: #e74c3c !important;
}

/* Couleurs de statut dans le tableau */
.status-text {
    font-weight: 600;
    font-size: 0.875rem;
}

.status-en_attente {
    color: #f39c12 !important;
}

.status-en_preparation {
    color: #3498db !important;
}

.status-confirmee {
    color: #27ae60 !important;
}

.status-expediee {
    color: #9b59b6 !important;
}

.status-livree {
    color: #27ae60 !important;
}

.status-prete {
    color: #16a085 !important;
}

.status-annulee {
    color: #e74c3c !important;
}

/* Cellule de statut */
.admin-table td[data-label="Statut"] {
    white-space: nowrap;
}

/* Loading state for toggle */
.toggle-switch input:disabled+.toggle-slider {
    opacity: 0.6;
    cursor: wait;
}

.toggle-switch.loading .toggle-slider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive toggle pour petits écrans */
@media (max-width: 768px) {
    .toggle-switch {
        width: 38px !important;
        min-width: 38px;
        max-width: 38px;
        height: 20px;
        margin-right: 6px;
    }

    .toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 2px;
        bottom: 3px;
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(20px);
    }

    .status-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .toggle-switch {
        width: 34px !important;
        min-width: 34px;
        max-width: 34px;
        height: 18px;
        margin-right: 5px;
    }

    .toggle-slider:before {
        height: 12px;
        width: 12px;
        left: 2px;
        bottom: 3px;
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(18px);
    }

    .status-label {
        font-size: 0.75rem;
    }
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-title {
    color: var(--admin-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--admin-dark);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }

    .d-md-none {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: var(--spacing-md);
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.3rem;
    }
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    margin: var(--spacing-lg) 0;
}

/* Responsive tablettes et petits écrans */
@media (max-width: 1366px) {
    .admin-content {
        padding: var(--spacing-md);
    }

    .page-header {
        padding: var(--spacing-md);
    }

    .page-title {
        font-size: 2rem;
    }

    .card-body {
        padding: var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .table-responsive {
        overflow: hidden !important;
        border-radius: var(--border-radius-md);
        max-width: 100% !important;
    }

    .admin-table {
        font-size: 0.85rem;
        min-width: 100%;
        max-width: 100%;
        table-layout: fixed;
        width: 100% !important;
    }

    .admin-table th,
    .admin-table td {
        padding: var(--spacing-sm);
        overflow: hidden;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-table th:last-child,
    .admin-table td:last-child {
        width: 150px;
        min-width: 150px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-content {
        padding: var(--spacing-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }

    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: var(--sidebar-width);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .admin-main {
        margin-left: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .admin-header {
        padding: 0 var(--spacing-md);
        width: 100% !important;
        max-width: 100% !important;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--admin-dark);
        cursor: pointer;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .admin-content {
        padding: var(--spacing-md);
        overflow-x: hidden;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-header {
        margin-bottom: var(--spacing-lg);
    }

    /* Cards responsive */
    .card-header {
        padding: var(--spacing-md);
    }

    .card-body {
        padding: var(--spacing-md);
    }

    /* Stats cards mobile */
    .stat-card {
        padding: var(--spacing-md);
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 0 var(--spacing-sm);
        height: 50px;
    }

    .admin-content {
        padding: var(--spacing-sm);
        overflow-x: hidden;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .card-header,
    .card-body {
        padding: var(--spacing-sm);
    }

    .stat-card {
        padding: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

/* Classes utilitaires */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.d-md-none {
    display: none;
}

.me-3 {
    margin-right: var(--spacing-md);
}

.gap-2 {
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .d-md-none {
        display: block;
    }
}

/* Header improvements */
.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Burger Menu Moderne */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
    transition: var(--transition);
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--admin-text);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: center;
}

.burger-menu:hover span {
    background: var(--admin-primary-solid);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Boutons modernes account-actions */
.account-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-modern {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Mot de passe : Dégradé violet */
.btn-password {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Déconnexion : Orange */
.btn-logout {
    background: linear-gradient(135deg, #F77F00 0%, #e05e00 100%);
    box-shadow: 0 4px 15px rgba(247, 127, 0, 0.4);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 127, 0, 0.5);
}

.btn-modern:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .admin-header {
        padding: 0 var(--spacing-sm) !important;
    }

    .account-actions {
        gap: 10px;
    }

    .btn-modern {
        width: 57px;
        height: 23px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .btn-modern span {
        display: none;
    }

    .btn-modern i {
        font-size: 1rem;
        margin: 0;
    }

    /* Formulaire produit en colonne sur mobile */
    form>div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Réorganiser l'ordre : image en haut, infos en bas */
    form>div[style*="grid-template-columns: 2fr 1fr"]>div:first-child {
        order: 2;
    }

    form>div[style*="grid-template-columns: 2fr 1fr"]>div:last-child {
        order: 1;
    }

    /* Image prend toute la largeur */
    #imagePreview {
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
    }
}

/* ========================================
   MODE PAYSAGE UNIQUEMENT - Boutons compacts
   ======================================== */
@media (max-width: 1280px) and (orientation: landscape) {
    .btn-modern {
        padding: 1px 6px !important;
        border-radius: 6px !important;
    }
}

/* Error states */
.error {
    border-color: var(--admin-danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.fade-out {
    animation: fadeOut 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.slide-out {
    animation: slideOut 0.3s ease;
}

/* Notifications/Alertes pour fond blanc */
.alert {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.alert i {
    font-size: 1.2rem;
}

.alert::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    color: #22863a;
    border-color: rgba(67, 233, 123, 0.3);
}

.alert-success::before {
    background: var(--admin-success);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.1);
    color: #c62828;
    border-color: rgba(255, 107, 107, 0.3);
}

.alert-danger::before {
    background: var(--admin-danger);
}

.alert-warning {
    background: rgba(250, 112, 154, 0.1);
    color: #c62828;
    border-color: rgba(250, 112, 154, 0.3);
}

.alert-warning::before {
    background: var(--admin-warning);
}

.alert-info {
    background: rgba(79, 172, 254, 0.1);
    color: #0366d6;
    border-color: rgba(79, 172, 254, 0.3);
}

.alert-info::before {
    background: var(--admin-accent);
}

/* Overlay responsive */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}