﻿/* ========================================================================
   ========================================================================
   MASTER CSS FILE - INDEXED BY SECTION ID
   ========================================================================
   ========================================================================

   SECTION INDEX:
   -------------
   [GLOBAL-001]    - Global Design System & CSS Variables
   [LAYOUT-001]    - Master Layout Structure
   [HEADER-001]    - Top Header & Navigation
   [SIDEBAR-001]   - Left Sidebar Menu
   [DROPDOWN-001]  - User Dropdown Menu
   [NAVLINKS-001]  - List Item Link Brand Colors
   [BUTTONS-001]   - Global Button Styles
   [HEADERSECTION-001] - Page Header Section
   [SEARCHBOX-001] - Search Box Component
   [STATSCARDS-001] - Statistics Cards Grid
   [DATATABLE-001] - DataTable Styles
   [AVATARS-001]   - Avatar & Info Column Styles
   [BADGES-001]    - Badge & Status Styles
   [FORMS-001]     - Form Styles
   [FORMROW-001]   - Form Row Layout (2 Columns)
   [PERMISSIONS-001] - Permission System Styles
   [ROLELIST-001]  - Role List & Role Item Styles
   [USERDETAIL-001] - User Detail Rows & Lock Toggle
   [MODAL-001]     - Modal Styles
   [PERMISSIONTABLE-001] - Permissions Table (Modal)
   [ROLESUMMARY-001] - Role Summary Styles
   [SUMMARYCARD-001] - Summary Card Styles
   [TOAST-001]     - Toast Notifications
   [DROPDOWNMENU-001] - More Actions Dropdown
   [FOOTER-001]    - Footer Styles
   [CONTAINERS-001] - Common Container Styles
   [ANIMATIONS-001] - Animation Keyframes
   [RESPONSIVE-001] - Responsive Design
   [FILTERBAR-001] - Professional Filter Bar
   [FILTERADVANCED-001] - Advanced Filter Panel

   ========================================================================
   ======================================================================== */
/*Quick Reference Index Table
Section ID	Description	Line Reference
GLOBAL-001	CSS Variables & Global Reset	Start
LAYOUT-001	Master Layout Structure	~200
HEADER-001	Top Header & Navigation	~250
SIDEBAR-001	Left Sidebar Menu	~300
DROPDOWN-001	User Dropdown Menu	~550
NAVLINKS-001	Link Colors	~600
BUTTONS-001	Global Button Styles	~650
HEADERSECTION-001	Page Header	~850
SEARCHBOX-001	Search Box	~950
STATSCARDS-001	Statistics Cards	~1000
DATATABLE-001	DataTable Styles	~1100
AVATARS-001	Avatar Styles	~1200
BADGES-001	Badge Styles	~1250
FORMS-001	Form Styles	~1300
FORMROW-001	2-Column Form Row	~1400
PERMISSIONS-001	Permission System	~1420
ROLELIST-001	Role List	~1550
USERDETAIL-001	User Details	~1620
MODAL-001	Modal Styles	~1700
PERMISSIONTABLE-001	Permissions Table	~1800
ROLESUMMARY-001	Role Summary	~1850
SUMMARYCARD-001	Summary Card	~1880
TOAST-001	Toast Notifications	~1920
DROPDOWNMENU-001	More Actions	~1980
FOOTER-001	Footer	~2020
CONTAINERS-001	Containers	~2040
ANIMATIONS-001	Animations	~2060
RESPONSIVE-001	Responsive	~2080
FILTERBAR-001	Filter Bar	~2180
FILTERADVANCED-001	Advanced Filter (uses existing form styles)	~2280
*/
/* ========================================================================
   SECTION ID: GLOBAL-001
   TITLE: Global Design System & CSS Variables
   DESCRIPTION: Root variables for colors, shadows, radius, and global reset
   ======================================================================== */
:root {
    --primary: #004876;
    --primary-dark: #003560;
    --secondary: #00b2e3;
    --secondary-dark: #0096c2;
    --success: #06d6a0;
    --success-dark: #05b888;
    --danger: #ef476f;
    --danger-dark: #d9375e;
    --warning: #ffd166;
    --warning-dark: #ffc44d;
    --info: #118ab2;
    --info-dark: #0a5c7e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray-50: #f9fafb;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --permissions-btn: #00b2e3;
    --table-header-bg: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 72, 118, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 72, 118, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 72, 118, 0.15);
    --shadow-brand: 0 8px 20px rgba(0, 114, 227, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

/* ========================================================================
   SECTION ID: LAYOUT-001
   TITLE: Master Layout Structure
   ======================================================================== */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-content {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 15px;
    background: #f8fafc;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* ========================================================================
   SECTION ID: HEADER-001
   TITLE: Top Header & Navigation
   ======================================================================== */
.top-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 72, 118, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #004876;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

    .sidebar-toggle:hover {
        background: rgba(0, 72, 118, 0.05);
        color: #00b2e3;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

    .logo i {
        font-size: 24px;
        background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .logo span {
        font-size: 16px;
    }

/* ========================================================================
   SECTION ID: SIDEBAR-001
   TITLE: Left Sidebar Menu
   ======================================================================== */
.sidebar {
    width: 206px;
    background: linear-gradient(180deg, #004876 0%, #002b44 100%);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
/*   height: 100vh;*/
    position: sticky;
    top: 60px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.user-panel {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
}

    .user-panel::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 12px;
        right: 12px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0, 178, 227, 0.5), transparent);
    }

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .user-info .user-image {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(0, 178, 227, 0.6);
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

        .user-info .user-image:hover {
            transform: scale(1.05);
            border-color: #00b2e3;
        }

.user-details {
    flex: 1;
    overflow: hidden;
}

    .user-details .user-name {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: white;
        margin-bottom: 2px;
        letter-spacing: 0.2px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-details .user-status {
        display: block;
        font-size: 9px;
        color: rgba(255, 255, 255, 0.8);
        letter-spacing: 0.2px;
    }

        .user-details .user-status i {
            font-size: 6px;
            color: #10b981;
            margin-right: 3px;
            animation: pulse 1.5s infinite;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sidebar-nav {
    padding: 0 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu .nav-item {
        margin: 3px 0;
    }

    .sidebar-menu .nav-link,
    .sidebar-menu .treeview > a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        border-radius: var(--radius-sm);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.2px;
        position: relative;
        margin: 2px 0;
        cursor: pointer;
    }

        .sidebar-menu .nav-link:hover,
        .sidebar-menu .treeview > a:hover {
            background: rgba(0, 178, 227, 0.15);
            color: #ffffff;
            padding-left: 14px;
            transform: translateX(2px);
        }

        .sidebar-menu .nav-link.active,
        .sidebar-menu .treeview > a.active {
            background: linear-gradient(90deg, rgba(0, 178, 227, 0.25) 0%, rgba(0, 178, 227, 0.1) 100%);
            color: #ffffff;
            border-left: 3px solid #00b2e3;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            font-weight: 600;
        }

        .sidebar-menu .nav-link i,
        .sidebar-menu .treeview > a i {
            width: 18px;
            font-size: 14px;
            color: rgba(0, 178, 227, 0.9);
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .sidebar-menu .nav-link.active i,
        .sidebar-menu .treeview > a.active i {
            color: #ffffff;
            text-shadow: 0 0 5px rgba(0, 178, 227, 0.5);
        }

        .sidebar-menu .nav-link:hover i,
        .sidebar-menu .treeview > a:hover i {
            transform: scale(1.05);
            color: #ffffff;
        }

        .sidebar-menu .nav-link span,
        .sidebar-menu .treeview > a span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }

        .sidebar-menu .treeview > a .pull-right-container {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.3s ease;
            opacity: 0.7;
            font-size: 9px;
        }

    .sidebar-menu .treeview.open > a .pull-right-container {
        transform: translateY(-50%) rotate(90deg);
    }

    .sidebar-menu .treeview > a .pull-right-container i {
        width: auto;
        font-size: 9px;
        color: rgba(255, 255, 255, 0.6);
    }

    .sidebar-menu .treeview.open > a .pull-right-container i {
        color: #ffffff;
    }

    .sidebar-menu .treeview-menu {
        list-style: none;
        padding-left: 32px;
        margin: 4px 0 8px 0;
        display: none;
        border-left: 1px dashed rgba(0, 178, 227, 0.3);
        margin-left: 8px;
    }

    .sidebar-menu .treeview.open > .treeview-menu {
        display: block;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-menu .treeview-menu li {
        margin: 2px 0;
        position: relative;
    }

        .sidebar-menu .treeview-menu li::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 50%;
            width: 8px;
            height: 1px;
            background: rgba(0, 178, 227, 0.4);
            transform: translateY(-50%);
        }

        .sidebar-menu .treeview-menu li a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            border-radius: var(--radius-sm);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 12px;
            font-weight: 500;
            letter-spacing: 0.2px;
            position: relative;
        }

            .sidebar-menu .treeview-menu li a .menu-title {
                font-size: 12px;
                color: rgba(255, 255, 255, 0.95);
                font-weight: 500;
                letter-spacing: 0.2px;
            }

            .sidebar-menu .treeview-menu li a:hover {
                background: rgba(0, 178, 227, 0.15);
                color: #ffffff;
                padding-left: 16px;
                transform: translateX(2px);
            }

            .sidebar-menu .treeview-menu li a.active {
                background: linear-gradient(90deg, rgba(0, 178, 227, 0.25) 0%, rgba(0, 178, 227, 0.1) 100%);
                color: #ffffff;
                border-left: 3px solid #00b2e3;
                font-weight: 600;
            }

            .sidebar-menu .treeview-menu li a i {
                width: 16px;
                font-size: 12px;
                color: rgba(0, 178, 227, 0.8);
                transition: all 0.3s ease;
                flex-shrink: 0;
            }

            .sidebar-menu .treeview-menu li a.active i {
                color: #ffffff;
                text-shadow: 0 0 5px rgba(0, 178, 227, 0.5);
            }

            .sidebar-menu .treeview-menu li a:hover i {
                transform: scale(1.05);
                color: #ffffff;
            }

.menu-group-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 10px 4px 10px;
    margin-top: 4px;
    position: relative;
}

    .menu-group-label::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10px;
        width: 20px;
        height: 2px;
        background: linear-gradient(90deg, #00b2e3, transparent);
        border-radius: 2px;
    }

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00b2e3, #004876);
    border-radius: 4px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #00b2e3;
    }

.app-wrapper.sidebar-collapsed .sidebar {
    width: 60px;
}

.app-wrapper.sidebar-collapsed .user-details,
.app-wrapper.sidebar-collapsed .sidebar-menu span {
    display: none;
}

.app-wrapper.sidebar-collapsed .user-info {
    justify-content: center;
}

.app-wrapper.sidebar-collapsed .user-panel {
    padding: 12px 8px;
}

.app-wrapper.sidebar-collapsed .user-info .user-image {
    width: 32px;
    height: 32px;
}

.app-wrapper.sidebar-collapsed .sidebar-menu .nav-link,
.app-wrapper.sidebar-collapsed .sidebar-menu .treeview > a {
    padding: 10px;
    justify-content: center;
    position: relative;
}

    .app-wrapper.sidebar-collapsed .sidebar-menu .nav-link i,
    .app-wrapper.sidebar-collapsed .sidebar-menu .treeview > a i {
        width: auto;
        font-size: 18px;
        margin: 0;
    }

    .app-wrapper.sidebar-collapsed .sidebar-menu .nav-link span,
    .app-wrapper.sidebar-collapsed .sidebar-menu .treeview > a span {
        display: none;
    }

    .app-wrapper.sidebar-collapsed .sidebar-menu .nav-link:hover::after,
    .app-wrapper.sidebar-collapsed .sidebar-menu .treeview > a:hover::after {
        content: attr(data-title);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: #004876;
        color: white;
        padding: 5px 8px;
        border-radius: var(--radius-sm);
        font-size: 10px;
        white-space: nowrap;
        z-index: 1000;
        margin-left: 5px;
        box-shadow: var(--shadow-lg);
        border-left: 2px solid #00b2e3;
    }

.app-wrapper.sidebar-collapsed .treeview-menu {
    position: fixed;
    left: 60px;
    background: linear-gradient(135deg, #004876 0%, #002b44 100%);
    min-width: 180px;
    border-radius: var(--radius-md);
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 178, 227, 0.3);
    backdrop-filter: blur(10px);
}

    .app-wrapper.sidebar-collapsed .treeview-menu li {
        margin: 2px 5px;
    }

        .app-wrapper.sidebar-collapsed .treeview-menu li a {
            padding: 5px 10px;
            font-size: 11px;
        }

        .app-wrapper.sidebar-collapsed .treeview-menu li::before {
            display: none;
        }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-menu .nav-item {
    animation: slideInLeft 0.3s ease-out forwards;
    opacity: 0;
}

    .sidebar-menu .nav-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .sidebar-menu .nav-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .sidebar-menu .nav-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .sidebar-menu .nav-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .sidebar-menu .nav-item:nth-child(5) {
        animation-delay: 0.25s;
    }

    .sidebar-menu .nav-item:nth-child(6) {
        animation-delay: 0.3s;
    }

    .sidebar-menu .nav-item:nth-child(7) {
        animation-delay: 0.35s;
    }

    .sidebar-menu .nav-item:nth-child(8) {
        animation-delay: 0.4s;
    }

/* ========================================================================
   SECTION ID: DROPDOWN-001
   TITLE: User Dropdown Menu
   ======================================================================== */
.user-dropdown {
    position: relative;
}

    .user-dropdown .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #004876;
        padding: 6px 12px;
        border-radius: var(--radius-sm);
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .user-dropdown .dropdown-toggle:hover {
            background: rgba(0, 72, 118, 0.05);
            color: #00b2e3;
        }

    .user-dropdown .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    .user-dropdown .user-name {
        font-size: 14px;
        font-weight: 500;
    }

    .user-dropdown .dropdown-toggle i {
        font-size: 12px;
        color: var(--gray-600);
    }

    .user-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        min-width: 200px;
        display: none;
        z-index: 1000;
        margin-top: 8px;
        list-style: none;
        padding: 8px 0;
        border: 1px solid rgba(0, 72, 118, 0.1);
    }

        .user-dropdown .dropdown-menu.show {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        .user-dropdown .dropdown-menu li a,
        .user-dropdown .dropdown-menu .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            color: var(--gray-800);
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s ease;
            width: 100%;
            background: none;
            border: none;
            cursor: pointer;
            text-align: left;
        }

            .user-dropdown .dropdown-menu li a:hover,
            .user-dropdown .dropdown-menu .dropdown-item:hover {
                background: rgba(0, 178, 227, 0.1);
                color: #004876;
            }

        .user-dropdown .dropdown-menu .divider {
            height: 1px;
            background: rgba(0, 72, 118, 0.1);
            margin: 8px 0;
        }

/* ========================================================================
   SECTION ID: NAVLINKS-001
   TITLE: List Item Link Brand Colors
   ======================================================================== */
li a {
    color: var(--primary);
    transition: color 0.2s ease;
    text-decoration: none;
}

    li a:hover,
    li a:focus {
        color: var(--secondary);
    }

    li a:active {
        color: var(--secondary-dark);
    }

    li a.active,
    li a[aria-current="page"] {
        color: var(--secondary);
        font-weight: 600;
        border-bottom: 2px solid var(--secondary);
    }

.sidebar-menu li a,
.sidebar-menu .nav-link {
    padding: 2px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;
}

    .sidebar-menu li a:hover,
    .sidebar-menu .nav-link:hover {
        color: white !important;
    }

    .sidebar-menu li a.active,
    .sidebar-menu .nav-link.active {
        color: white !important;
        border-bottom: none;
    }

.breadcrumb li a,
.breadcrumb-item a {
    color: white !important;
}

    .breadcrumb li a:hover,
    .breadcrumb-item a:hover {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: underline;
    }

.user-dropdown .dropdown-menu li a,
.dropdown-item {
    color: var(--gray-800);
}

    .user-dropdown .dropdown-menu li a:hover,
    .dropdown-item:hover {
        color: white !important;
        background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    }

/* ========================================================================
   SECTION ID: BUTTONS-001
   TITLE: Global Button Styles
   ======================================================================== */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-register {
    background: var(--gray-100);
    color: var(--gray-800);
    border: 1px solid rgba(0, 72, 118, 0.2);
}

    .btn-register:hover {
        background: var(--gray-200);
        border-color: #00b2e3;
    }

.create-btn {
    background: white;
    color: #004876;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

    .create-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 72, 118, 0.2);
        background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
        color: white;
    }

    .create-btn i {
        color: #00b2e3;
    }

    .create-btn:hover i {
        color: white;
    }

.actions-container {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .action-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 72, 118, 0.2);
    }

    .action-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-edit {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
}

    .btn-edit:hover {
        background: linear-gradient(135deg, #003560 0%, #0096c2 100%);
    }

.btn-permissions {
    background: linear-gradient(135deg, #00b2e3 0%, #008fb8 100%);
}

    .btn-permissions:hover {
        background: linear-gradient(135deg, #0096c2 0%, #006e8f 100%);
    }

.btn-delete {
    background: var(--danger);
    min-width: 60px;
    width: auto;
    padding: 0 10px;
    font-size: 12px;
}

    .btn-delete:hover {
        background: var(--danger-dark);
    }

.btn-reset {
    background: var(--warning);
    color: var(--dark);
}

    .btn-reset:hover {
        background: var(--warning-dark);
    }

.btn-more {
    background: var(--gray-200);
    color: var(--gray-700);
}

    .btn-more:hover {
        background: var(--gray-300);
    }

.submit-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
}

    .submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-lg);
    }

.back-btn {
    padding: 8px 20px;
    background: var(--gray-100);
    color: #004876;
    border: 1px solid rgba(0, 72, 118, 0.2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

    .back-btn:hover {
        background: var(--gray-200);
        border-color: #00b2e3;
        color: #00b2e3;
    }

.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 178, 227, 0.1);
}

.action-bar-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .action-bar-btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: #004876;
}

.btn-warning {
    background: linear-gradient(135deg, #ffd166 0%, #ffb347 100%);
    color: #2d3748;
}

    .btn-warning:hover {
        background: linear-gradient(135deg, #ffc44d 0%, #ffa033 100%);
    }

/* ========================================================================
   SECTION ID: HEADERSECTION-001
   TITLE: Page Header Section
   ======================================================================== */
.header-section {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    border-radius: var(--radius-xl);
    padding: 20px 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 72, 118, 0.3);
}

    .header-section::before,
    .header-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
    }

    .header-section::before {
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        transform: translate(40%, -40%);
    }

    .header-section::after {
        bottom: -50px;
        left: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.05);
    }

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-title {
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

    .header-icon i {
        font-size: 24px;
        color: white;
    }

.title-text h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.title-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
}

.breadcrumb-container {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

    .breadcrumb-item a {
        color: white;
        text-decoration: none;
    }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }

    .breadcrumb-item.active {
        color: white;
        font-weight: 500;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(255, 255, 255, 0.6);
        content: ">";
    }

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================================================
   SECTION ID: SEARCHBOX-001
   TITLE: Search Box Component
   ======================================================================== */
.search-box {
    position: relative;
    min-width: 250px;
}

    .search-box input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        border: 1px solid rgba(0, 72, 118, 0.2);
        border-radius: var(--radius-md);
        background: white;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

        .search-box input:focus {
            outline: none;
            border-color: #00b2e3;
            box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.1);
        }

    .search-box i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #00b2e3;
        font-size: 14px;
    }

/* ========================================================================
   SECTION ID: STATSCARDS-001
   TITLE: Statistics Cards Grid
   ======================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 72, 118, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 178, 227, 0.1);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #004876 0%, #00b2e3 100%);
    }

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 72, 118, 0.15);
        border-color: rgba(0, 178, 227, 0.3);
    }

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icon-total {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
}

.icon-active {
    background: linear-gradient(135deg, #06d6a0 0%, #059669 100%);
}

.icon-locked {
    background: linear-gradient(135deg, #ef476f 0%, #d9375e 100%);
}

.icon-roles {
    background: linear-gradient(135deg, #00b2e3 0%, #004876 100%);
}

.icon-users {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
}

.icon-permissions {
    background: linear-gradient(135deg, #06d6a0 0%, #059669 100%);
}

.icon-popular {
    background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
}

.icon-empty {
    background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
}

.stat-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.stat-info p {
    font-size: 11px;
    color: var(--gray-600);
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* ========================================================================
   SECTION ID: DATATABLE-001
   TITLE: DataTable Styles - Professional with Square Pagination
   ======================================================================== */
/* ========================================================================
   SECTION ID: DATATABLE-006
   TITLE: DataTable Styles - Fixed for Row Colors
   ======================================================================== */

.table-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dataTables_wrapper {
    padding: 20px 20px 10px 20px;
    overflow-x: auto;
}

.dataTables_wrapper table.dataTable {
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
    width: 100%;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Header Styles */
.dataTables_wrapper table.dataTable thead th {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.3px;
    text-transform: uppercase !important;
    white-space: nowrap;
}

/* Body Cells - Allow row background to show through */
.dataTables_wrapper table.dataTable tbody td {
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border: none !important;
    /* REMOVED background: transparent !important - let row color show */
    font-size: 0.85rem !important;
    font-weight: 450 !important;
    color: #1e293b !important;
    line-height: 1.3;
}

/* Rows - This is where inline style background-color will apply */
.dataTables_wrapper table.dataTable tbody tr {
    transition: all 0.2s ease;
    /* No background set here - inline style will work */
}

/* Hover effect - preserves original row color */
.dataTables_wrapper table.dataTable tbody tr:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pagination Styles */
.dataTables_paginate {
    padding-top: 20px;
    text-align: right;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #cbd5e1;
    border-radius: 4px !important;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button.current {
    background: #1e293b !important;
    color: white !important;
    border-color: #1e293b !important;
}

.dataTables_paginate .paginate_button:hover:not(.current) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .dataTables_wrapper {
        padding: 12px;
    }
    .dataTables_wrapper table.dataTable thead th,
    .dataTables_wrapper table.dataTable tbody td {
        padding: 6px 10px !important;
    }
    .dataTables_paginate .paginate_button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
/* ========================================================================
   SECTION ID: AVATARS-001
   TITLE: Avatar & Info Column Styles
   ======================================================================== */
.avatar-letter {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 72, 118, 0.2);
}

.user-avatar-letter {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.role-avatar-letter {
    background: linear-gradient(135deg, #00b2e3 0%, #004876 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-column {
    display: flex;
    align-items: center;
}

.info-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .info-container .email,
    .info-container .name {
        font-size: 13px;
        font-weight: 600;
        color: var(--dark);
    }

    .info-container .description {
        font-size: 11px;
        color: var(--gray-600);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .info-container .description i {
            color: #00b2e3;
        }

/* ========================================================================
   SECTION ID: BADGES-001
   TITLE: Badge & Status Styles
   ======================================================================== */
.status-badge,
.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    justify-content: center;
}

.status-active,
.count-low {
    background: rgba(6, 214, 160, 0.15);
    color: var(--success);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.status-locked,
.count-none {
    background: rgba(239, 71, 111, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 71, 111, 0.3);
}

.count-high {
    background: rgba(0, 178, 227, 0.15);
    color: #004876;
    border: 1px solid rgba(0, 178, 227, 0.3);
}

.role-badge {
    background: rgba(0, 178, 227, 0.1);
    color: #004876;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(0, 178, 227, 0.3);
}

    .role-badge i {
        color: #00b2e3;
        margin-right: 3px;
    }

.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 200px;
}

/* ========================================================================
   SECTION ID: FORMS-001
   TITLE: Form Styles
   ======================================================================== */
.form-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 72, 118, 0.08);
    border: 1px solid rgba(0, 178, 227, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 178, 227, 0.2);
}

.form-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
}

    .form-icon i {
        font-size: 18px;
        color: white;
    }

.form-title h3,
.form-title h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 2px 0;
}

.form-title p {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #004876;
    margin-bottom: 5px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 72, 118, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    background: white;
    transition: all 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #00b2e3;
        box-shadow: 0 0 0 2px rgba(0, 178, 227, 0.1);
    }

.form-text {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 4px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 72, 118, 0.1);
}

/* ========================================================================
   SECTION ID: FORMROW-001
   TITLE: Form Row Layout (2 Columns)
   ======================================================================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================================================
   SECTION ID: PERMISSIONS-001
   TITLE: Permission System Styles
   ======================================================================== */
.permission-section {
    margin-top: 15px;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid rgba(0, 178, 227, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.permission-category {
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 178, 227, 0.1);
    margin-bottom: 10px;
    overflow: hidden;
}

.category-header {
    background: rgba(0, 178, 227, 0.05);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 178, 227, 0.1);
}

    .category-header i {
        color: #004876;
        font-size: 12px;
        transition: transform 0.2s ease;
    }

    .category-header.active i {
        transform: rotate(90deg);
    }

.category-title {
    flex-grow: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-count {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.category-content {
    padding: 10px;
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

    .category-content.show {
        display: grid;
        animation: slideDown 0.2s ease-out;
    }

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--gray-50);
    border-radius: 6px;
    border: 1px solid rgba(0, 178, 227, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .permission-item:hover {
        background: white;
        border-color: #00b2e3;
        box-shadow: var(--shadow-sm);
    }

    .permission-item.selected {
        background: rgba(0, 178, 227, 0.1);
        border-color: #00b2e3;
    }

.permission-checkbox {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--gray-400);
    appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

    .permission-checkbox:checked {
        background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
        border-color: #004876;
    }

        .permission-checkbox:checked::after {
            content: '✓';
            position: absolute;
            color: white;
            font-size: 9px;
            font-weight: bold;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.permission-label {
    flex-grow: 1;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
}

/* ========================================================================
   SECTION ID: ROLELIST-001
   TITLE: Role List & Role Item Styles
   ======================================================================== */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 178, 227, 0.1);
    transition: all 0.2s ease;
}

    .role-item:hover {
        background: white;
        border-color: #00b2e3;
        box-shadow: var(--shadow-sm);
    }

.role-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.role-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #004876;
    cursor: pointer;
}

.role-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.show-permissions-btn {
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
}

    .show-permissions-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

/* ========================================================================
   SECTION ID: USERDETAIL-001
   TITLE: User Detail Rows & Lock Toggle
   ======================================================================== */
.user-detail-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 72, 118, 0.1);
}

    .user-detail-row:last-child {
        border-bottom: none;
    }

.user-detail-icon {
    width: 28px;
    color: #00b2e3;
    font-size: 13px;
}

.user-detail-label {
    flex: 1;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.user-detail-value {
    flex: 2;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

.lock-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 72, 118, 0.1);
}

.lock-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.locked-icon {
    color: var(--danger);
}

.unlocked-icon {
    color: var(--success);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .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: var(--gray-400);
    transition: 0.2s;
    border-radius: 34px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.2s;
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: var(--danger);
}

    input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }

/* ========================================================================
   SECTION ID: MODAL-001
   TITLE: Modal Styles
   ======================================================================== */
.modal {
    background: rgba(0, 0, 0, 0.5);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow: auto;
}

    .modal.show {
        display: block;
    }

.modal-dialog {
    position: relative;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: auto;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 72, 118, 0.3);
}

.modal-header {
    padding: 12px 15px;
    border-bottom: 2px solid #00b2e3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #004876 0%, #00b2e3 100%);
    color: white;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 12px 15px;
    border-top: 1px solid rgba(0, 72, 118, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.permission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

    .permission-modal.show {
        display: flex;
    }

.permission-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 750px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 72, 118, 0.25);
    position: relative;
    margin: auto;
}

.permission-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #00b2e3;
    margin-bottom: 15px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
    line-height: 1;
}

    .close-modal:hover {
        color: var(--danger);
    }

/* ========================================================================
   SECTION ID: PERMISSIONTABLE-001
   TITLE: Permissions Table (Modal)
   ======================================================================== */
.permissions-table {
    width: 100%;
    border-collapse: collapse;
}

    .permissions-table th {
        background: rgba(0, 178, 227, 0.05);
        padding: 10px;
        text-align: left;
        font-weight: 600;
        font-size: 12px;
        border-bottom: 2px solid #00b2e3;
        color: #004876;
    }

    .permissions-table td {
        padding: 10px;
        border-bottom: 1px solid rgba(0, 72, 118, 0.1);
        vertical-align: top;
        font-size: 12px;
    }

.permission-badge {
    display: inline-block;
    background: rgba(0, 178, 227, 0.1);
    color: #004876;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px 3px;
    border: 1px solid rgba(0, 178, 227, 0.3);
}

    .permission-badge i {
        margin-right: 3px;
        font-size: 10px;
        color: #00b2e3;
    }

/* ========================================================================
   SECTION ID: ROLESUMMARY-001
   TITLE: Role Summary Styles
   ======================================================================== */
.role-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-700);
}

    .summary-item i {
        width: 16px;
        font-size: 11px;
        color: #00b2e3;
    }

    .summary-item.text-warning i,
    .summary-item.text-warning span {
        color: var(--warning);
    }

    .summary-item.text-success i,
    .summary-item.text-success span {
        color: var(--success);
    }

/* ========================================================================
   SECTION ID: SUMMARYCARD-001
   TITLE: Summary Card Styles
   ======================================================================== */
.summary-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border: 1px solid #ffe5b4;
}

    .summary-card .form-header {
        border-bottom-color: #ffe5b4;
    }

    .summary-card .form-icon {
        background: linear-gradient(135deg, #ffd166 0%, #ffb347 100%);
    }

    .summary-card .form-title h4 {
        color: #b7791f;
    }

    .summary-card .form-title p {
        color: #d97706;
    }

.summary-stats {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid #ffe5b4;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 11px;
    color: #b7791f;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================================================
   SECTION ID: TOAST-001
   TITLE: Toast Notifications
   ======================================================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 72, 118, 0.15);
    border-left: 4px solid #00b2e3;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    min-width: 280px;
}

    .toast.show {
        transform: translateX(0);
    }

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-success .toast-icon {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--gray-600);
}

/* ========================================================================
   SECTION ID: DROPDOWNMENU-001
   TITLE: More Actions Dropdown
   ======================================================================== */
.more-actions {
    position: relative;
}

.more-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 72, 118, 0.15);
    border: 1px solid rgba(0, 178, 227, 0.2);
    min-width: 180px;
    z-index: 1000;
    display: none;
    padding: 5px 0;
    margin-top: 5px;
}

    .more-dropdown.show {
        display: block;
    }

.dropdown-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-800);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .dropdown-item i {
        color: #00b2e3;
        width: 16px;
    }

    .dropdown-item:hover {
        background: linear-gradient(90deg, #004876 0%, #00b2e3 100%);
        color: white;
    }

        .dropdown-item:hover i {
            color: white;
        }

/* ========================================================================
   SECTION ID: FOOTER-001
   TITLE: Footer Styles
   ======================================================================== */
.footer {
    background: white;
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 72, 118, 0.1);
}

.footer-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* ========================================================================
   SECTION ID: CONTAINERS-001
   TITLE: Common Container Styles
   ======================================================================== */
.users-management-container,
.roles-management-container,
.form-management-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100%;
    padding: 15px;
}

/* ========================================================================
   SECTION ID: ANIMATIONS-001
   TITLE: Animation Keyframes
   ======================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ========================================================================
   SECTION ID: RESPONSIVE-001
   TITLE: Responsive Design
   ======================================================================== */
@media (max-width: 992px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .search-box {
        min-width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 999;
    }

    .app-wrapper.sidebar-collapsed .sidebar {
        left: 0;
        width: 280px;
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar-btn {
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }

        .form-actions button,
        .form-actions a {
            width: 100%;
            justify-content: center;
        }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-title {
        flex-direction: column;
        text-align: center;
    }

    .create-btn {
        width: 100%;
        justify-content: center;
    }

    .form-card {
        padding: 15px;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
    }

    .logo span {
        display: none;
    }

    .user-name {
        display: none;
    }

    .auth-buttons {
        gap: 5px;
    }

    .btn-login,
    .btn-register {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ========================================================================
   SECTION ID: FILTERBAR-001
   TITLE: Professional Filter Bar (Forced single line, non‑stacking)
   ======================================================================== */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 178, 227, 0.1);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
}

    .filter-bar .filter-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--gray-50);
        padding: 4px 12px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(0, 72, 118, 0.1);
        flex: 0 0 auto;
    }

        .filter-bar .filter-group label {
            font-size: 12px;
            font-weight: 600;
            color: var(--primary);
            white-space: nowrap;
        }

            .filter-bar .filter-group label i {
                margin-right: 4px;
                color: var(--secondary);
            }

        .filter-bar .filter-group input[type="date"],
        .filter-bar .filter-group input[type="text"] {
            border: none;
            background: transparent;
            padding: 6px 0;
            font-size: 13px;
            width: 130px;
            outline: none;
        }

        .filter-bar .filter-group input:focus {
            border-bottom: 1px solid var(--secondary);
        }

    .filter-bar .radio-group {
        display: inline-flex;
        gap: 12px;
        align-items: center;
    }

        .filter-bar .radio-group label {
            font-weight: normal;
            color: var(--gray-700);
            cursor: pointer;
            white-space: nowrap;
        }

        .filter-bar .radio-group input {
            margin-right: 3px;
        }

    .filter-bar .actions {
        display: inline-flex;
        gap: 10px;
        align-items: center;
        margin-left: auto;
        flex: 0 0 auto;
    }

        .filter-bar .actions .btn {
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            border-radius: var(--radius-sm);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            border: none;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .filter-bar .actions .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
        }

            .filter-bar .actions .btn-primary:hover {
                transform: translateY(-1px);
                box-shadow: var(--shadow-md);
            }

        .filter-bar .actions .btn-secondary {
            background: var(--gray-100);
            color: var(--primary);
            border: 1px solid rgba(0, 72, 118, 0.2);
        }

            .filter-bar .actions .btn-secondary:hover {
                background: var(--gray-200);
                border-color: var(--secondary);
                color: var(--secondary);
            }

        .filter-bar .actions .btn-outline {
            background: white;
            color: var(--primary);
            border: 1px solid rgba(0, 72, 118, 0.2);
        }

            .filter-bar .actions .btn-outline:hover {
                background: rgba(0, 178, 227, 0.05);
                border-color: var(--secondary);
                color: var(--secondary);
            }

@media (max-width: 800px) {
    .filter-bar {
        padding: 6px 12px;
        gap: 12px;
    }

        .filter-bar .filter-group input[type="date"] {
            width: 110px;
        }
}

/* ========================================================================
   SECTION ID: FILTERADVANCED-001
   TITLE: Advanced Filter Panel (6 columns, matching form-card style)
   ======================================================================== */
/* ========================================================================
   6-COLUMN GRID FOR ADVANCED FILTERS
   ======================================================================== */

.form-row-6cols {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .form-row-6cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .form-row-6cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .form-row-6cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .form-row-6cols {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================
   SVG NAVIGATION CIRCLE STYLES (for Sales Eng. Panel)
   ======================================================================== */
.cls-1 {
    font-size: 28px;
    font-family: Roboto-Bold, Roboto;
    font-weight: 700;
}

.cls-2 {
    letter-spacing: -0.02em;
}

.cls-3 {
    letter-spacing: -0.01em;
}

.cls-4 {
    letter-spacing: -0.01em;
}

.cls-5 {
    font-size: 16px;
    font-family: Roboto-Regular, Roboto;
}

.cls-6 {
    letter-spacing: -0.01em;
}

.cls-7 {
    letter-spacing: -0.01em;
}

.cls-8 {
    letter-spacing: -0.02em;
}

.cls-9 {
    letter-spacing: -0.01em;
}

.cls-10 {
    letter-spacing: 0.01em;
}

.cls-11 {
    letter-spacing: -0.01em;
}

.cls-12 {
    letter-spacing: -0.04em;
}

.cls-13 {
    letter-spacing: -0.02em;
}

.cls-14 {
    letter-spacing: 0.01em;
}

.cls-15 {
    letter-spacing: -0.01em;
}

.cls-16 {
    letter-spacing: -0.06em;
}

.cls-17 {
    letter-spacing: -0.02em;
}

.cls-18 {
    letter-spacing: 0.01em;
}

.cls-19 {
    letter-spacing: 0.02em;
}

.cls-20 {
    letter-spacing: -0.01em;
}

.cls-21 {
    letter-spacing: -0.03em;
}

/* Button panel layout (used in Sales Eng. Panel) */
.panel-body .btn:not(.btn-block) {
    width: 280px;
    margin-left: 65px;
    margin-bottom: 20px;
}

/* SVG Navigation – Circle Menu */
.container {
    width: 650%;
    height: 440px;
}

#learn-more {
    fill-opacity: 0;
    fill: #fff;
    stroke: #fff;
    stroke-width: 2;
    border-radius: 5px;
    stroke-linejoin: round;
    transition: all 250ms ease-in;
    cursor: pointer;
}

    #learn-more:hover {
        fill-opacity: 1;
    }

        #learn-more:hover ~ .learn-more-text {
            fill: #005fa4;
        }

.learn-more-text {
    font-family: 'Roboto';
    fill: #fff;
    pointer-events: none;
    font-size: 20px;
    transition: all 250ms ease-in;
}

.center {
    fill: #005fa4;
}

.pointer {
    fill: #fff;
    stroke: #3b8fc0;
    stroke-width: 2;
}

.nav-copy {
    font-family: 'Roboto';
    fill: #fff;
    fill-opacity: 1;
    transition: all 250ms ease-in;
}

    .nav-copy.changing {
        fill-opacity: 0;
    }

.service {
    cursor: pointer;
}

    .service text {
        font-size: 20px;
        font-family: 'Roboto';
        text-anchor: middle;
    }

    .service .icon-wrapper {
        transform-origin: 50% 50%;
    }

        .service .icon-wrapper,
        .service .icon-wrapper > * {
            transition: all 250ms ease-in;
        }

    .service circle {
        fill: #005fa4;
    }

        .service circle.shadow {
            fill-opacity: 0;
            filter: url(#service-shadow);
        }

    .service use {
        fill: #fff;
    }

    .service text {
        fill: #4d4d4d;
    }

    .service.active .icon-wrapper,
    .service:hover .icon-wrapper {
        transform: scale(1.15) translateY(-5px);
    }

        .service.active .icon-wrapper,
        .service.active .icon-wrapper > *,
        .service:hover .icon-wrapper,
        .service:hover .icon-wrapper > * {
            transition: all 250ms ease-out;
        }

            .service.active .icon-wrapper circle.shadow,
            .service:hover .icon-wrapper circle.shadow {
                fill-opacity: 0.4;
            }

    .service.active text,
    .service:hover text {
        fill: #005fa4;
        font-weight: bold;
    }

/* Force override of Bootstrap badge styles */
span.badge.badge-primary,
.badge.badge-primary {
    background-color: #e0e7ff !important;
    color: #4f46e5 !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

span.badge.badge-warning,
.badge.badge-warning {
    background-color: #fff3cd !important;
    color: #d97706 !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

span.badge.badge-success,
.badge.badge-success {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

span.badge.badge-info,
.badge.badge-info {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    padding: 4px 8px !important;
    border-radius: 30px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
}