        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-gradient: linear-gradient(135deg, #FF7F00 0%, #FF7F00 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            --dark-bg: #0f0f23;
            --card-bg: rgba(255, 255, 255, 0.95);
            --sidebar-bg: linear-gradient(180deg, #1a1a3e 0%, #0f0f23 100%);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #667eea00 0%, #764ba200 100%);
            background-attachment: fixed;
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(252, 70, 107, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
            pointer-events: none;
            animation: gradientShift 15s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        /* Glassmorphism Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 280px;
            background: rgb(6, 107, 124);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            padding: 25px 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            overflow-y: auto;
            box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .sidebar.collapsed {
            width: 85px;
        }

        .sidebar-logo {
            display: flex;
            align-items: center;
            padding: 0 25px 25px;
            color: white;
            font-size: 26px;
            font-weight: 800;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 25px;
            position: relative;
        }

        .sidebar-logo i {
            background: var(--primary-gradient);
            padding: 12px;
            border-radius: 15px;
            margin-right: 15px;
            font-size: 24px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
            animation: logoFloat 3s ease-in-out infinite;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }

        .sidebar.collapsed .sidebar-logo span,
        .sidebar.collapsed .menu-text,
        .sidebar.collapsed .submenu-text,
        .sidebar.collapsed .badge,
        .sidebar.collapsed .menu-section {
            opacity: 0;
            pointer-events: none;
        }

        .sidebar-menu {
            list-style: none;
            padding: 0;
        }

        .menu-item {
            margin: 8px 20px;
        }

        .menu-link {
            display: flex;
            align-items: center;
            padding: 14px 18px;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            border-radius: 15px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .menu-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--primary-gradient);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .menu-link:hover,
        .menu-link.active {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            text-decoration: none;
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgb(57 159 177);
        }

        .menu-link.active::before {
            transform: scaleY(1);
        }

        .menu-link i {
            width: 24px;
            margin-right: 15px;
            font-size: 20px;
            transition: all 0.3s ease;
        }

        .menu-link:hover i {
            transform: scale(1.1) rotate(5deg);
        }

        /* Submenu arrow */
        .submenu-arrow {
            margin-left: auto;
            transition: transform 0.3s ease;
        }

        /* Rotate arrow when submenu open */
        .has-submenu.open > .menu-link .submenu-arrow {
            transform: rotate(90deg);
        }

        /* Submenu container */
        .submenu {
            display: none;
            flex-direction: column;
            background-color: #34495e;
            border-left: 3px solid #1abc9c;
            margin-top: 4px;
            border-radius: 6px;
        }

        /* Show submenu when open */
        .has-submenu.open .submenu {
            display: flex;
        }

        /* Submenu items */
        .submenu-item {
            list-style: none;
        }

        .submenu-link {
            display: flex;
            align-items: center;
            padding: 10px 20px 5px 10px;
            color: #ecf0f1;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

        .submenu-link:hover,
        .has-submenu.open .active{
            background-color: #16a085;
            color: #ffffff;
        }

        /* Optional icons in submenu */
        .submenu-link i {
            margin-right: 8px;
        }

        .badge {
            margin-left: auto;
            background: var(--secondary-gradient);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            box-shadow: 0 4px 10px rgba(245, 87, 108, 0.3);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .menu-section {
            color: rgba(255, 255, 255, 0.4);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            padding: 25px 30px 12px;
            letter-spacing: 1.5px;
            transition: opacity 0.3s ease;
        }

        /* Glassmorphism Header */
        .header {
            position: fixed;
            top: 0;
            left: 280px;
            right: 0;
            height: 80px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 35px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
        }

        .header.expanded {
            left: 85px;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .toggle-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 15px;
            font-size: 20px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

        .toggle-btn:hover {
            transform: rotate(90deg) scale(1.05);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
        }

        .search-box {
            position: relative;
        }

        .search-box input {
            background: rgba(255, 255, 255, 0.8);
            border: 2px solid rgba(102, 126, 234, 0.2);
            border-radius: 25px;
            padding: 12px 20px 12px 50px;
            width: 350px;
            font-size: 14px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .search-box input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
        }

        .search-box i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #667eea;
            font-size: 16px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .header-icon {
            width: 45px;
            height: 45px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            background: rgba(102, 126, 234, 0.1);
            color: #066b7c;
        }

        .header-icon:hover {
            /*background: var(--primary-gradient);*/
            /*color: white;*/
            /*transform: translateY(-3px) rotate(5deg);*/
            box-shadow: 0 3px 20px rgba(255, 127, 0, 255);
        }

        .notification-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 10px;
            height: 10px;
            background: var(--secondary-gradient);
            border-radius: 50%;
            border: 2px solid white;
            /*animation: pulse 2s ease-in-out infinite;*/
        }
        
        .notification-wrapper {
            position: relative;
        }
        
        .notification-box {
            position: absolute;
            right: 0;
            top: 35px;
            width: 300px;
            background: #fff;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none;
            z-index: 999;
        }
        
        .notification-header {
            padding: 10px;
            font-weight: 600;
            border-bottom: 1px solid #eee;
        }
        
        .notification-list {
            list-style: none;
            margin: 0;
            padding: 0;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .notification-list li {
            padding: 10px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
        }
        
        .notification-list li:hover {
            background: #f9f9f9;
        }
        
        .notification-footer {
            text-align: center;
            padding: 8px;
            border-top: 1px solid #eee;
        }
        
        .notification-footer a {
            text-decoration: none;
            font-weight: 600;
        }


        .user-avatar {
            width: 45px;
            height: 45px;
            border-radius: 15px;
            object-fit: cover;
            cursor: pointer;
            border: 3px solid transparent;
            background: linear-gradient(white, white) padding-box,
                        var(--primary-gradient) border-box;
            transition: all 0.3s ease;
        }

        .user-avatar:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }
        
        .user-wrapper {
            position: relative;
        }
        
        .user-menu {
            position: absolute;
            right: 0;
            top: 45px;
            width: 160px;
            background: #fff;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none;
            z-index: 999;
        }
        .user-box {
            position: absolute;
            right: 0;
            top: 35px;
            width: 200px;
            background: #fff;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none;
            z-index: 999;
        }
        
        .user-menu a {
            display: block;
            padding: 10px 12px;
            text-decoration: none;
            color: #000;
            font-size: 14px;
            border-bottom: 1px solid #eee;
        }
        
        .user-menu a:hover {
            background: #f5f5f5;
        }


        /* Main Content */
        .main-content {
            margin-left: 280px;
            margin-top: 80px;
            padding: 35px;
            min-height: calc(100vh - 150px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }

        .main-content.expanded {
            margin-left: 85px;
        }

        /* Glassmorphism Footer */
        .footer {
            margin-left: 280px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 25px 35px;
            text-align: center;
            color: #666;
            font-size: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
        }

        .footer.expanded {
            margin-left: 85px;
        }

        /* Creative Stats Cards */
        .stats-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            position: relative;
            overflow: hidden;
        }

        .stats-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            transform: rotate(45deg);
            transition: all 0.6s ease;
        }

        .stats-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        }

        .stats-card:hover::before {
            top: -25%;
            right: -25%;
        }

        .stats-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 5px;
            position: relative;
            z-index: 1;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .stats-card:hover .stats-icon {
            transform: scale(1.1) rotate(10deg);
        }

        .stats-icon.purple { 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .stats-icon.blue { 
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }
        .stats-icon.green { 
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            color: white;
        }
        .stats-icon.orange { 
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            color: white;
        }

        .stats-value {
            font-size: 22px;
            font-weight: 800;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
        }

        .stats-label {
            color: #666;
            font-size: 15px;
            font-weight: 500;
            position: relative;
            z-index: 1;
        }

        .stats-trend {
            display: inline-block;
            margin-top: 10px;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .trend-up {
            background: rgba(67, 233, 123, 0.2);
            color: #43e97b;
        }

        .trend-down {
            background: rgba(252, 70, 107, 0.2);
            color: #fc466b;
        }

        /* Card Styles */
        .card {
            border: none;
            border-radius: 25px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .card:hover {
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
            transform: translateY(-5px);
        }

        .card-header {
            background: transparent;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
            padding: 25px 30px;
        }

        .card-body {
            padding: 30px;
        }

        .btn-primary {
            background: var(--primary-gradient);
            border: none;
            border-radius: 15px;
            padding: 12px 30px;
            font-weight: 600;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
        }
        
        .btn-secondary {
            border: none;
            border-radius: 15px;
            padding: 12px 30px;
            font-weight: 600;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
        }

        .page-title {
            font-size: 25px;
            font-weight: 800;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 25px;
            position: relative;
            display: inline-block;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--primary-gradient);
            border-radius: 2px;
        }

        /* Badge Styles */
        .badge-role {
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 700;
            margin-right: 8px;
            display: inline-block;
            margin-bottom: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .badge-role:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        }

        .badge-administrator { 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .badge-manager { 
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }
        .badge-users { 
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }
        .badge-support { 
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            color: white;
        }
        .badge-restricted { 
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            color: white;
        }

        /* DataTable Customization */
        .dataTables_wrapper {
            color: #666;
        }

        table.dataTable thead th {
            border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
            font-weight: 700;
            color: #667eea;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 1px;
            padding: 18px !important;
        }

        table.dataTable tbody tr {
            transition: all 0.3s ease;
        }

        table.dataTable tbody tr:hover {
            background: rgba(102, 126, 234, 0.05) !important;
            /*transform: scale(1.01);*/
        }

        table.dataTable tbody td {
            padding: 12px !important;
            vertical-align: middle;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        }

        .action-btns button {
            margin: 0 4px;
            padding: 8px 14px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .btn-edit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
        }

        .btn-edit:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
        }

        .btn-delete {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            color: white;
            box-shadow: 0 4px 10px rgba(250, 112, 154, 0.3);
        }

        .btn-delete:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(250, 112, 154, 0.5);
        }

        /* .page-content {
            display: none;
            animation: fadeIn 0.5s ease;
        } */

        .page-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .badge-success {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 10px;
            font-weight: 600;
        }

        .badge-warning {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 10px;
            font-weight: 600;
        }

        .badge-danger {
            background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 10px;
            font-weight: 600;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .sidebar {
               display:none;
            }
            .main-content {
             margin-left: 0px;
            }

            .header,
            .main-content,
            .footer {
                /*margin-left: 85px;*/
                left:0;
            }

            .search-box input {
                width: 180px;
            }

            .page-title {
                font-size: 24px;
            }

            .stats-card {
                margin-bottom: 20px;
            }
            .toggle-btn {
                display:none;
            }
            #mobiletoggleBtn{
                display:block!important;
            }
            .sidebar.open {
                display: block;
            }
        }

        @media (max-width: 576px) {
            .sidebar {
                display:none;
            }
            .sidebar.open {
                display: block;
            }
            #mobiletoggleBtn{
                display:block!important;
            }
            .main-content {
                margin-left: 0px;
            }

            .sidebar.show-mobile {
                display:none;
            }

            .header,
            .main-content,
            .footer {
                margin-left: 0;
                left: 0;
            }

            .main-content {
                padding: 20px;
            }

            .search-box {
                display: none;
            }

            .header-left {
                gap: 10px;
            }

            .header-right {
                gap: 8px;
            }
            .toggle-btn {
                display:none;
            }
        }

        /* Floating particles animation */
        .particle {
            position: fixed;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0.5;
            animation: float 20s infinite;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0) translateX(0) rotate(0deg);
            }
            33% {
                transform: translateY(-100px) translateX(100px) rotate(120deg);
            }
            66% {
                transform: translateY(-50px) translateX(-50px) rotate(240deg);
            }
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-gradient);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-gradient);
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: .1em 0em!important;
        }
        
        .select2-container .select2-selection--single {
            box-sizing: border-box;
            cursor: pointer;
            display: block;
            height: 37px!important;
            user-select: none;
            -webkit-user-select: none;
        }
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            color: #444;
            line-height: 34px !important;
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 26px;
            position: absolute;
            top: 5px !important;
            right: 1px;
            width: 20px;
        }
        .select2-container--default .select2-selection--single .select2-selection__clear {
            cursor: pointer;
            float: right;
            font-weight: bold;
            height: 34px !important;
            margin-right: 20px;
            padding-right: 0px;
            /* top: 10px; */
        }
        

.message-container {
    max-width: 250px;
}

.short-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.message-container.expanded .short-text {
    -webkit-line-clamp: unset;
}

.read-more-btn {
    color: blue;
    cursor: pointer;
    font-size: 12px;
    display: none; /* default hidden */
}

        