
/* =========================================================
   DPA FLEET - APPLICATION CSS
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 78px;
    --navbar-height: 70px;

    --primary-color: #1f4e79;
    --primary-dark: #173a5c;
    --primary-light: #eaf2f8;
    --primary-soft: #f3f7fb;

    --body-bg: #f5f7fa;
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --sidebar-active: #243b53;

    --white: #ffffff;

    --border-color: #e5e7eb;

    --text-color: #374151;
    --text-dark: #111827;
    --muted-color: #6b7280;
    --muted-light: #9ca3af;

    --success: #198754;
    --success-light: #e9f7ef;

    --warning: #f59e0b;
    --warning-light: #fff7e6;

    --danger: #dc3545;
    --danger-light: #fdecec;

    --info: #0ea5e9;
    --info-light: #eaf7fd;

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--body-bg);
    color: var(--text-color);

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    overflow-x: hidden;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: var(--sidebar-width);
    height: 100vh;

    background: var(--sidebar-bg);

    color: #fff;

    z-index: 1100;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    box-shadow:
        4px 0 20px rgba(0, 0, 0, 0.08);

    transition:
        width 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   SIDEBAR SCROLL
   ========================================================= */

.sidebar-content {
    flex: 1;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 12px 10px 20px;
}

.sidebar-content::-webkit-scrollbar {
    width: 5px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.15)
        transparent;
}


/* =========================================================
   SIDEBAR BRAND
   ========================================================= */

.sidebar-brand {
    height: var(--navbar-height);

    padding: 0 18px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    flex-shrink: 0;
}

.sidebar-brand-link {
    width: 100%;

    display: flex;
    align-items: center;

    color: #fff;

    white-space: nowrap;
}

.sidebar-brand-link:hover {
    color: #fff;
}

.sidebar-logo {
    width: 40px;
    min-width: 40px;

    height: 40px;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #2f6fa5,
            #1f4e79
        );

    color: #fff;

    font-size: 20px;

    box-shadow:
        0 5px 15px rgba(31, 78, 121, 0.35);
}

.sidebar-brand-text {
    margin-left: 11px;

    display: flex;
    flex-direction: column;

    min-width: 0;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.sidebar-brand-title {
    font-size: 17px;
    font-weight: 700;

    line-height: 1.2;

    color: #fff;
}

.sidebar-brand-subtitle {
    margin-top: 3px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    color: rgba(255, 255, 255, 0.48);
}


/* =========================================================
   SIDEBAR SECTIONS
   ========================================================= */

.sidebar-section {
    margin-bottom: 18px;
}

.sidebar-section-title {
    padding:
        12px 12px 7px;

    color:
        rgba(255, 255, 255, 0.38);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.9px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-nav {
    list-style: none;

    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin-bottom: 3px;
}

.sidebar-link {
    position: relative;

    min-height: 43px;

    display: flex;
    align-items: center;

    padding:
        8px 11px;

    gap: 11px;

    border-radius: 9px;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 13.5px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.sidebar-link:hover {
    background:
        rgba(255, 255, 255, 0.07);

    color: #fff;

    transform: translateX(2px);
}

.sidebar-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.25),
            rgba(59, 130, 246, 0.10)
        );

    color: #fff;

    box-shadow:
        inset 0 0 0 1px
        rgba(96, 165, 250, 0.08);
}

.sidebar-link.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 8px;
    bottom: 8px;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: #60a5fa;
}


/* =========================================================
   SIDEBAR ICON
   ========================================================= */

.sidebar-icon {
    width: 35px;
    min-width: 35px;

    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 17px;

    color:
        rgba(255, 255, 255, 0.62);

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.sidebar-link:hover .sidebar-icon {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.06);
}

.sidebar-link.active .sidebar-icon {
    color: #93c5fd;

    background:
        rgba(96, 165, 250, 0.12);
}

.sidebar-link-text {
    overflow: hidden;

    text-overflow: ellipsis;
}

.sidebar-badge {
    margin-left: auto;

    min-width: 22px;

    padding: 3px 6px;

    border-radius: 20px;

    text-align: center;

    font-size: 10px;
    font-weight: 700;
}

.sidebar-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.sidebar-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.sidebar-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}


/* =========================================================
   SIDEBAR USER
   ========================================================= */

.sidebar-user {
    margin: 10px;

    padding: 11px;

    min-height: 64px;

    display: flex;
    align-items: center;

    gap: 10px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 11px;

    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 36px;
    min-width: 36px;

    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #fff;

    font-size: 16px;
}

.sidebar-user-info {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 10px;
}

.sidebar-user-menu {
    border: 0;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.45);

    padding: 5px;

    border-radius: 6px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-user-menu:hover {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.08);
}


/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.main-wrapper {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    transition:
        margin-left 0.25s ease;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-custom {
    position: sticky;

    top: 0;

    height: var(--navbar-height);

    background: rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid
        var(--border-color);

    z-index: 1000;

    display: flex;
    align-items: center;

    padding:
        0 25px;

    backdrop-filter: blur(8px);
}

.navbar-left {
    display: flex;
    align-items: center;

    gap: 15px;

    min-width: 0;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;

    border: 1px solid var(--border-color);

    border-radius: 9px;

    background: #fff;

    color: var(--text-color);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-light);

    border-color:
        rgba(31, 78, 121, 0.2);

    color: var(--primary-color);
}

.navbar-title {
    min-width: 0;
}

.navbar-title-main {
    display: block;

    color: var(--text-dark);

    font-size: 14px;
    font-weight: 700;
}

.navbar-title-sub {
    display: block;

    margin-top: 1px;

    color: var(--muted-color);

    font-size: 11px;
}


/* =========================================================
   NAVBAR RIGHT
   ========================================================= */

.navbar-right {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 10px;
}

.navbar-icon-button {
    position: relative;

    width: 40px;
    height: 40px;

    border: 1px solid transparent;

    border-radius: 9px;

    background: transparent;

    color: var(--muted-color);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.navbar-icon-button:hover {
    background: var(--primary-light);

    color: var(--primary-color);
}

.notification-badge {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 8px;
    height: 8px;

    background: var(--danger);

    border: 2px solid #fff;

    border-radius: 50%;
}


/* =========================================================
   USER NAVBAR
   ========================================================= */

.navbar-user {
    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        5px 8px;

    border-radius: 9px;

    transition:
        background 0.2s ease;
}

.navbar-user:hover {
    background: var(--primary-soft);
}

.navbar-user-avatar {
    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary-color);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}

.navbar-user-info {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.navbar-user-name {
    font-size: 12px;
    font-weight: 600;

    color: var(--text-dark);
}

.navbar-user-role {
    margin-top: 2px;

    font-size: 10px;

    color: var(--muted-color);
}


/* =========================================================
   CONTENT
   ========================================================= */

.content-wrapper {
    min-height:
        calc(100vh - var(--navbar-height));

    padding: 25px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    margin-bottom: 25px;
}

.page-title {
    margin: 0 0 5px;

    color: var(--text-dark);

    font-size: 25px;
    font-weight: 700;

    line-height: 1.25;
}

.page-subtitle {
    margin: 0;

    color: var(--muted-color);

    font-size: 13px;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stat-card {
    height: 100%;

    padding: 20px;

    background: #fff;

    border:
        1px solid
        var(--border-color);

    border-radius: 13px;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.stat-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 21px;
}

.stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.stat-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.stat-label {
    margin-bottom: 5px;

    color: var(--muted-color);

    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    color: var(--text-dark);

    font-size: 25px;
    font-weight: 700;
}


/* =========================================================
   GENERAL CARDS
   ========================================================= */

.dashboard-card {
    background: #fff;

    border:
        1px solid
        var(--border-color);

    border-radius: 13px;

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}

.dashboard-card-header {
    min-height: 60px;

    padding:
        15px 20px;

    border-bottom:
        1px solid
        var(--border-color);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-title {
    margin: 0;

    color: var(--text-dark);

    font-size: 14px;
    font-weight: 700;
}

.dashboard-card-body {
    padding: 20px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-responsive {
    border-radius: 10px;
}

.table {
    margin-bottom: 0;

    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;

    color: var(--muted-color);

    border-bottom:
        1px solid
        var(--border-color);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.3px;

    white-space: nowrap;
}

.table tbody td {
    color: var(--text-color);

    border-color:
        var(--border-color);

    font-size: 13px;
}

.table tbody tr:hover {
    background: #f9fafb;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge-soft-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.badge-soft-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-soft-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-soft-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-soft-info {
    background: var(--info-light);
    color: #0369a1;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-label {
    color: var(--text-dark);

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 6px;
}

.form-control,
.form-select {
    min-height: 42px;

    border:
        1px solid
        var(--border-color);

    border-radius: 8px;

    font-size: 13px;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color:
        rgba(31, 78, 121, 0.55);

    box-shadow:
        0 0 0 3px
        rgba(31, 78, 121, 0.08);
}


/* =========================================================
   BUTTONS
   ========================================================= */

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

    border-color: var(--primary-color);

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;
}

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

    border-color: var(--primary-dark);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #ffffff;

    border-top: 1px solid var(--border-color);

    padding: 22px 25px;

    min-height: 78px;

    display: flex;
    align-items: center;

    color: var(--muted-color);

    font-size: 14px;
}


/* =========================================================
   FOOTER CONTENT
   ========================================================= */

.footer-content {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.footer-copyright {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    font-size: 14px;
}

.footer-year {
    color: #6b7280;
}

.footer-brand {
    color: var(--primary-color);

    font-size: 15px;

    font-weight: 700;
}

.footer-rights {
    color: #6b7280;
}


/* =========================================================
   SIGNATURE
   ========================================================= */

.footer-signature {
    display: flex;

    align-items: center;

    gap: 9px;
}

.footer-developed {
    color: #9ca3af;

    font-size: 13px;

    font-weight: 500;
}


/* =========================================================
   AFRICA SOFT
   ========================================================= */

.footer-company {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--primary-color);

    font-size: 17px;

    font-weight: 800;

    text-decoration: none;

    letter-spacing: 0.2px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-company:hover {
    color: var(--primary-dark);

    transform: translateY(-1px);
}


/* =========================================================
   AFRICA SOFT ICON
   ========================================================= */

.footer-company-icon {
    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary-color);

    font-size: 16px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.footer-company:hover .footer-company-icon {
    background: var(--primary-color);

    color: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .footer {
        padding: 20px 15px;
    }

    .footer-content {
        flex-direction: column;

        justify-content: center;

        text-align: center;

        gap: 13px;
    }

    .footer-copyright {
        justify-content: center;

        font-size: 13px;
    }

    .footer-brand {
        font-size: 14px;
    }

    .footer-signature {
        justify-content: center;
    }

    .footer-company {
        font-size: 17px;
    }

}

/* =========================================================
   SIDEBAR COLLAPSED - DESKTOP
   ========================================================= */

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .main-wrapper {
    margin-left:
        var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;

    padding:
        0 10px;
}

body.sidebar-collapsed .sidebar-brand-text {
    display: none;
}

body.sidebar-collapsed .sidebar-section-title {
    display: none;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;

    padding:
        7px 0;

    gap: 0;
}

body.sidebar-collapsed .sidebar-link-text {
    display: none;
}

body.sidebar-collapsed .sidebar-badge {
    display: none;
}

body.sidebar-collapsed .sidebar-icon {
    width: 42px;
    min-width: 42px;

    height: 42px;
}

body.sidebar-collapsed .sidebar-user {
    justify-content: center;

    padding: 10px;
}

body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .sidebar-user-menu {
    display: none;
}


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background:
        rgba(15, 23, 42, 0.50);

    backdrop-filter: blur(2px);

    z-index: 1090;
}

body.sidebar-mobile-open .sidebar-overlay {
    display: block;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .sidebar {
        width: var(--sidebar-width);

        transform:
            translateX(-105%);

        box-shadow:
            8px 0 30px
            rgba(0, 0, 0, 0.18);
    }

    body.sidebar-mobile-open .sidebar {
        transform:
            translateX(0);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    body.sidebar-collapsed .sidebar {
        width: var(--sidebar-width);
    }

    body.sidebar-collapsed .sidebar-brand {
        justify-content: flex-start;

        padding:
            0 18px;
    }

    body.sidebar-collapsed .sidebar-brand-text {
        display: flex;
    }

    body.sidebar-collapsed .sidebar-section-title {
        display: block;
    }

    body.sidebar-collapsed .sidebar-link {
        justify-content: flex-start;

        padding:
            8px 11px;

        gap: 11px;
    }

    body.sidebar-collapsed .sidebar-link-text {
        display: block;
    }

    body.sidebar-collapsed .sidebar-badge {
        display: block;
    }

    body.sidebar-collapsed .sidebar-icon {
        width: 35px;
        min-width: 35px;

        height: 35px;
    }

    body.sidebar-collapsed .sidebar-user {
        justify-content: flex-start;

        padding: 11px;
    }

    body.sidebar-collapsed .sidebar-user-info,
    body.sidebar-collapsed .sidebar-user-menu {
        display: flex;
    }

    .content-wrapper {
        padding: 20px;
    }

    .navbar-custom {
        padding:
            0 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    :root {
        --navbar-height: 62px;
    }

    .navbar-custom {
        padding:
            0 15px;
    }

    .navbar-title-sub {
        display: none;
    }

    .navbar-user-info {
        display: none;
    }

    .navbar-user {
        padding: 4px;
    }

    .content-wrapper {
        padding: 18px 15px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 22px;
    }

    .stat-card {
        padding: 17px;
    }

    .stat-value {
        font-size: 22px;
    }

    .dashboard-card-header {
        padding:
            14px 16px;
    }

    .dashboard-card-body {
        padding: 16px;
    }

    .footer {
        min-height: auto;

        padding:
            15px;

        flex-direction: column;

        align-items: flex-start;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .sidebar {
        width: min(
            var(--sidebar-width),
            88vw
        );
    }

    .navbar-icon-button {
        width: 36px;
        height: 36px;
    }

    .sidebar-toggle {
        width: 37px;
        height: 37px;
    }

    .navbar-user-avatar {
        width: 34px;
        height: 34px;
    }

    .content-wrapper {
        padding:
            15px 12px;
    }

    .page-title {
        font-size: 21px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 43px;
        height: 43px;

        font-size: 19px;
    }

    .stat-value {
        font-size: 21px;
    }

    .footer {
        padding:
            14px 12px;

        text-align: center;

        align-items: center;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sidebar-link:focus-visible,
.sidebar-toggle:focus-visible,
.navbar-icon-button:focus-visible,
.sidebar-user-menu:focus-visible {
    outline: 3px solid
        rgba(96, 165, 250, 0.35);

    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition:
            none !important;

        animation:
            none !important;
    }
}


/* =========================================================
   SIDEBAR DROPDOWN
   ========================================================= */

.sidebar-dropdown-toggle {
    position: relative;
}

.sidebar-dropdown-arrow {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.sidebar-dropdown-toggle:hover .sidebar-dropdown-arrow {
    color: #fff;
}


/* =========================================================
   DROPDOWN OUVERT
   ========================================================= */

.sidebar-dropdown.open
.sidebar-dropdown-arrow {
    transform: rotate(180deg);

    color: #93c5fd;
}


/* =========================================================
   SOUS-MENU
   ========================================================= */

.sidebar-submenu {
    list-style: none;

    margin: 3px 0 5px 0;

    padding: 0 0 0 46px;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.25s ease,
        opacity 0.2s ease;
}

.sidebar-dropdown.open .sidebar-submenu {
    max-height: 220px;

    opacity: 1;
}


/* =========================================================
   LI DU SOUS-MENU
   ========================================================= */

.sidebar-submenu li {
    margin: 2px 0;
}


/* =========================================================
   LIEN SOUS-MENU
   ========================================================= */

.sidebar-submenu a {
    position: relative;

    min-height: 37px;

    padding: 7px 10px;

    display: flex;
    align-items: center;

    gap: 9px;

    border-radius: 7px;

    color:
        rgba(255, 255, 255, 0.52);

    font-size: 12px;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.sidebar-submenu a:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: #fff;
}

.sidebar-submenu a.active {
    background:
        rgba(96, 165, 250, 0.10);

    color: #93c5fd;
}


/* =========================================================
   ICÔNES SOUS-MENU
   ========================================================= */

.sidebar-submenu-icon {
    width: 22px;
    min-width: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;

    color:
        rgba(255, 255, 255, 0.38);
}

.sidebar-submenu a:hover .sidebar-submenu-icon,
.sidebar-submenu a.active .sidebar-submenu-icon {
    color: #60a5fa;
}


/* =========================================================
   SIDEBAR RÉDUITE
   ========================================================= */

body.sidebar-collapsed .sidebar-dropdown {
    position: relative;
}

body.sidebar-collapsed .sidebar-dropdown-arrow {
    display: none;
}

body.sidebar-collapsed .sidebar-dropdown .sidebar-submenu {
    display: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    body.sidebar-collapsed .sidebar-dropdown {
        position: static;
    }

    body.sidebar-collapsed .sidebar-dropdown-arrow {
        display: flex;
    }

    body.sidebar-collapsed .sidebar-dropdown .sidebar-submenu {
        display: block;
    }
}

/* =========================================================
   CORRECTION MODAL CHAUFFEURS
   Ne modifie pas le reste du design
   ========================================================= */

.sidebar {
    z-index: 1000;
}

.sidebar-overlay {
    z-index: 999;
}

.navbar-custom {
    z-index: 900;
}

.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}

.modal-dialog {
    position: relative;
    z-index: 2001;
}

.modal-content {
    position: relative;
    z-index: 2002;
}

/* =========================================================
   SIDEBAR DROPDOWNS
   ========================================================= */

.sidebar-dropdown {
    position: relative;
}


/* Bouton principal du dropdown */

.sidebar-dropdown-toggle {
    position: relative;
    cursor: pointer;
}


/* Chevron */

.sidebar-dropdown-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}


/* Rotation du chevron */

.sidebar-dropdown.open .sidebar-dropdown-arrow {
    transform: rotate(180deg);
}


/* Sous-menu */

.sidebar-dropdown-menu {
    display: none;
    overflow: hidden;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}


/* Sous-menu ouvert */

.sidebar-dropdown.open > .sidebar-dropdown-menu {
    display: block;
}


/* Élément du sous-menu */

.sidebar-dropdown-item {
    min-height: 42px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.9rem;
}


/* Icône du sous-menu */

.sidebar-dropdown-item .sidebar-icon {
    font-size: 0.95rem;
}


/* Effet au survol */

.sidebar-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}


/* Dropdown actif */

.sidebar-dropdown.open > .sidebar-dropdown-toggle {
    background: rgba(255, 255, 255, 0.06);
}