/* ==========================================================================
   DASHBOARD - CSS GLOBAL CENTRALISÉ
   ========================================================================== */
:root {
    --red: var(--blue);
    --red-d: var(--blue-darker);
    --red-light: var(--blue);
    --red-lighter: var(--blue);
    --ink: var(--black);
    --ink-2: var(--black);
    --ink-3: var(--black);
    --muted: var(--black);
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,.12);
}
/* ==========================================================================
   BASE STYLES
   ========================================================================== */
body {
    margin: 0;
    background: #f5f6f0;
    font-family: var(--font-primary);
    min-height: 100vh;
}
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 64px);
}
/* ==========================================================================
   HEADERS
   ========================================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--ink);
    margin: 0;
}
/* Header actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.dashboard-header {
    margin-bottom: 2rem;
}
.dashboard-header h1 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--ink);
    margin: 0 0 0.5rem 0;
}
.dashboard-header p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0;
}
/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}
.btn-primary {
    background: var(--blue);
    color: white;
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 159, 151, .3);
}
.btn-secondary {
    background: white;
    color: var(--blue);
    border: 1px solid var(--red);
}
.btn-secondary:hover {
    background: var(--red-lighter);
}
.btn-sm {
    padding: .5rem 1rem;
    font-size: 0.9rem;
}
.btn-success {
    background: var(--success);
    color: white;
}
.btn-warning {
    background: var(--warning);
    color: white;
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: var(--danger);
}
/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    overflow: hidden;
}
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--black);
}
.card-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 700;
}
.welcome-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}
.welcome-card h2 {
    font-family: var(--font-primary);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 1rem 0;
}
.welcome-card p {
    color: var(--muted);
    line-height: 1.6;
}
/* ==========================================================================
   SEARCH SECTIONS
   ========================================================================== */
.dashboard-search-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    margin-bottom: 1.5rem;
}
.dashboard-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.dashboard-search-form input {
    flex: 1;
    min-width: 250px;
    padding: .8rem 1rem;
    border: 1px solid var(--black);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.dashboard-search-form input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(168, 159, 151, .1);
}
/* ==========================================================================
   TABLES
   ========================================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--white);
    color: var(--ink-2);
}
.table tr:hover {
    background: var(--white);
}
.table tbody tr:hover {
    background: var(--red-lighter);
}
/* Exception pour les empty states - pas de hover */
.table tbody tr.empty-state-row:hover {
    background: transparent !important;
}
/* Table container avec overflow */
.table-container, #productsContent, #usersContent {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Table avec overflow et styles complets */
.products-table, .users-table {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    overflow: hidden;
}
/* Table headers avec gradient rouge */
.table-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-d) 100%);
    color: white;
    padding: 1rem;
    border-bottom: none;
}
.table-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 700;
}
/* Styles th et td complets */
.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--white);
}
.table th {
    background: var(--gray-light);
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
/* Checkbox columns */
.table th:first-child,
.table td:first-child {
    width: 40px;
    text-align: center;
}
/* ==========================================================================
   SORTABLE HEADERS & FILTERS
   ========================================================================== */
/* En-têtes de tableau triables */
.sortable-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.sortable-header:hover {
    background: rgba(168, 159, 151, 0.1);
    color: var(--red);
}
.sortable-header.active {
    background: rgba(168, 159, 151, 0.15);
    color: var(--red);
    font-weight: 700;
}
.sort-icon {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}
.sortable-header:hover .sort-icon {
    opacity: 1;
}
.sortable-header.active .sort-icon {
    opacity: 1;
    color: var(--red);
}
/* Filtres actifs */
.active-filters {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.filters-label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
}
.filter-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--red);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}
.filter-badge button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-size: 1.2rem;
    line-height: 1;
}
.filter-badge button:hover {
    opacity: 1;
}
/* Checkbox styles */
.product-checkbox, #selectAllProducts, .user-checkbox, #selectAllUsers {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--red);
}
/* Compteur sélection */
#selectedCount {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}
/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}
/* ==========================================================================
   BADGES & STATUS
   ========================================================================== */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}
.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.status-error {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.role-admin {
    background: linear-gradient(135deg, var(--red), var(--red-d));
    color: white;
}
.role-user {
    background: rgba(159, 179, 200, 0.2);
    color: var(--muted);
}
/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    margin-bottom: 1.5rem;
}
.pagination-info {
    color: var(--ink-2);
    font-weight: 500;
}
/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
}
.modal-header h3 {
    margin: 0;
    color: var(--ink);
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close:hover {
    color: var(--ink);
}
.modal-body {
    padding: 0;
}
.modal-body p {
    margin: 0 0 1.5rem 0;
    color: var(--muted);
}
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0;
    border: none;
}
/* Modal avec .show class pour compatibilité */
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state h3 {
    color: var(--ink);
    margin: 0 0 0.5rem 0;
}
/* ==========================================================================
   LOADING STATES
   ========================================================================== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}
.loading i {
    font-size: 2rem;
}
/* ==========================================================================
   BULK ACTIONS
   ========================================================================== */
.bulk-actions-bar {
    background: linear-gradient(135deg, var(--white), var(--white));
    border: 1px solid var(--black);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
    display: none;
}
.bulk-actions-bar.active {
    display: block;
}
.bulk-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.bulk-actions-info {
    color: var(--ink);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
}
/* ==========================================================================
   STATS GRID
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.stat-icon.red {
    background: rgba(168, 159, 151, 0.1);
    color: var(--red);
}
.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}
.stat-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--blue-dark);
}
.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}
.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ink);
    margin: 0;
}
.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}
/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.loading-skeleton {
    background: linear-gradient(90deg, var(--white) 25%, var(--black) 50%, var(--white) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.align-center { align-items: center !important; }
.w-100 { width: 100% !important; }
/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.form-group label {
    font-weight: 600;
    color: var(--ink-2);
    font-size: 16px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--black);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(168, 159, 151, .1);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--black);
}
/* Headers de formulaires */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.form-header h1 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--ink);
    margin: 0;
}
/* Cards de formulaire */
.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    margin-bottom: 2rem;
}
/* Bouton outline */
.btn-outline {
    background: var(--blue);
    color: var(--white);
    border: 2px solid var(--red);
}
.btn-outline:hover {
    background: var(--blue-dark);
    color: white;
}
/* Messages d'état */
.error-message {
    background: var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.success-message {
    background: var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
/* Checkbox groups */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
}
/* ==========================================================================
   IMAGES SECTION
   ========================================================================== */
.images-section {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.images-section h3,
.images-section h4 {
    color: var(--ink);
    margin: 0 0 1rem 0;
}
.images-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid var(--black);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.main-image-section {
    margin-bottom: 2rem;
}
.image-upload-area {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.current-image {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed var(--black);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.current-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.current-image img:hover {
    transform: scale(1.05);
}
.current-image .no-image {
    text-align: center;
    color: var(--muted);
}
.current-image .no-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.additional-image {
    position: relative;
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}
.additional-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.additional-image img:hover {
    transform: scale(1.05);
}
.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-remove-image:hover {
    background: var(--danger);
    transform: scale(1.1);
}
.additional-image .btn-remove-image {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
}
/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.image-modal.active {
    display: flex;
}
.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}
.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}
.image-modal-close:hover {
    background: rgba(255,255,255,0.3);
}
/* ==========================================================================
   PROFILE SECTION
   ========================================================================== */
.profile-header {
    margin-bottom: 2rem;
}
.profile-header h1 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--ink);
    margin: 0 0 0.5rem 0;
}
.profile-header p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
}
.profile-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.profile-card h2 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--white);
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-d));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto 2rem;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--white);
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.info-value {
    color: var(--ink);
    font-weight: 500;
}
.badge-admin {
    background: linear-gradient(135deg, var(--red), var(--red-d));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
/* Form styles spécifiques au profil */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--black);
    border-radius: 8px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(168, 159, 151, 0.1);
}
/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}
.alert.show {
    display: block;
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
/* ==========================================================================
   RESPONSIVE DESIGN - TOUTES LES MEDIA QUERIES À LA FIN
   ========================================================================== */
/* Desktop adjustments */
@media (min-width: 769px) {
    .main-content {
        margin-left: 250px;
        transition: margin-left 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .main-content.full {
        margin-left: 0;
    }
    .main-content > * {
        width: 100%;
        max-width: 1600px;
    }
}
/* Responsive pour tablettes */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* Mobile responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        padding: 1rem !important;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.5rem;
    }
    .page-header h1 {
        font-size: 1.8rem !important;
        text-align: center;
        margin-bottom: 0;
    }
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
    }
    .dashboard-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    .dashboard-header h1 {
        font-size: 1.4rem !important;
        text-align: center;
        word-wrap: break-word;
        line-height: 1.3;
    }
    .dashboard-header h1 i {
        font-size: 1.2rem;
        display: inline-block;
        margin-right: 0.5rem;
    }
    .dashboard-header p {
        font-size: 0.9rem !important;
        text-align: center;
        padding: 0 1rem;
        line-height: 1.4;
    }
    /* Search form responsive */
    .dashboard-search-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .dashboard-search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    .dashboard-search-form input {
        min-width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    .dashboard-search-form button {
        width: 100%;
        padding: 1rem;
        justify-content: center;
        font-size: 1rem;
    }
    /* Table responsive complet */
    .products-table, .users-table {
        margin-bottom: 1rem;
    }
    .table-header {
        padding: 1rem;
    }
    .table-header h3 {
        font-size: 1.1rem;
    }
    .table-container, #productsContent, #usersContent {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        min-width: 800px;
    }
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    .table th:first-child,
    .table td:first-child {
        min-width: 40px;
        width: 40px;
    }
    .action-buttons {
        flex-direction: column;
    }
    /* Pagination responsive */
    .pagination {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .pagination .btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }
    .pagination-info {
        text-align: center;
        font-size: 0.9rem;
        order: -1;
    }
    /* Bulk actions responsive */
    .bulk-actions-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .bulk-actions-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    .bulk-actions-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .welcome-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .card-body, .card-header {
        padding: 1rem;
    }
    .modal {
        padding: 1rem;
    }
    .modal-content {
        max-width: 100%;
    }
    .modal-actions {
        flex-direction: column;
    }
    /* Form responsive */
    .form-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .form-header h1 {
        font-size: 1.8rem !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    /* Images responsive */
    .image-upload-area {
        flex-direction: column;
        align-items: center;
    }
    .current-image {
        width: 150px;
        height: 150px;
    }
    /* Profile responsive */
    .profile-header {
        margin-bottom: 1.5rem;
    }
    .profile-header h1 {
        font-size: 1.8rem !important;
    }
    .profile-grid {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    .profile-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .info-row {
        padding: 0.75rem 0;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .info-label {
        font-weight: 700;
    }
    .info-value {
        font-size: 0.9rem;
    }
    .form-input {
        padding: 0.6rem 0.8rem;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    /* Boutons spécifiques pour les cards et forms */
    .card .btn,
    .form-card .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        justify-content: center;
    }
}