/* ========================================
   Style personnalisé pour Boiséa Admin
   ======================================== */

:root {
    --primary-color: #6f4e37;
    --secondary-color: #a0826d;
    --light-brown: #d4c5b9;
    --dark: #2c2c2c;
}

/* ========================================
   General Styles
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #2c3e50 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: white !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.nav-link {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link .badge {
    margin-left: 0.5rem;
}

/* ========================================
   Cards
   ======================================== */

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.card-header.bg-primary,
.card-header.bg-info,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-warning {
    border-bottom: none;
}

.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a3f2e;
    border-color: #5a3f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 78, 55, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* ========================================
   Tables & DataTables
   ======================================== */

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(111, 78, 55, 0.02);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* ========================================
   Forms
   ======================================== */

.form-control,
.form-select {
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 78, 55, 0.25);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* ========================================
   Alerts
   ======================================== */

.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ========================================
   Badges
   ======================================== */

.badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   Images
   ======================================== */

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .container-fluid {
        padding: 0.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.25rem 0.35rem;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.25rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .d-grid.gap-2.d-md-flex {
        display: flex !important;
        flex-direction: column;
    }

    .d-grid.gap-2.d-md-flex .btn {
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    .btn,
    .pagination {
        display: none;
    }

    .container-fluid {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
