/* Custom overrides for a more modern, premium look */

body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f4f7f6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
}

/* Premium Gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
}

/* Glassmorphism Card for Login */
.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.1) !important;
    border-radius: 20px !important;
}

/* Modern inputs */
.form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    border-color: #4F46E5;
}

/* Input group styling */
.input-group-alternative {
    box-shadow: none !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s;
}
.input-group-alternative:focus-within {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    border-color: #4F46E5;
}
.input-group-alternative .form-control {
    border: none;
    box-shadow: none !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

/* Dashboard Tweaks */
.navbar-vertical.navbar-expand-md {
    background-color: #ffffff;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
    border-right: none;
}
.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 16px 16px 0 0 !important;
}

/* Table styling for dashboard */
.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.table td {
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Reduce vertical space in the sidebar menu */
.navbar-vertical .navbar-nav .nav-link {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Page header: fixes Argon's duplicate .opacity-8 rule (was rendering at 90% instead
   of the intended 80%, hiding the background photo) and matches the header gradient
   to the indigo/purple used elsewhere (buttons, login) instead of the stock navy. */
.header .mask.bg-gradient-default {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
}
.header .opacity-8 {
    opacity: .8 !important;
}
/* .container-fluid has d-flex, which turns its .row child into a flex item
   with no explicit width — it shrinks to its content's min-content instead
   of filling the container, collapsing the title to one word per line. */
.header .container-fluid.d-flex > .row {
    width: 100%;
}

/* Cartes-tableaux des listes : largeur de lecture confortable sur grands écrans */
.col-table-liste {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

