/* PharosAI Admin Panel Styles - Premium Edition */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-elegant: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Global Enhancements */
body {
    background: var(--dark-gradient);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(103, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(103, 126, 234, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(118, 75, 162, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(79, 172, 254, 0.1), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Sidebar Styles */
.admin-sidebar {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-elegant);
    position: relative;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(103, 126, 234, 0.3) 30%, 
        rgba(118, 75, 162, 0.3) 70%, 
        transparent 100%);
    animation: glow-pulse 3s ease-in-out infinite;
}

.admin-sidebar::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: radial-gradient(circle at center, rgba(103, 126, 234, 0.03) 0%, transparent 70%);
    border-radius: 2rem;
    pointer-events: none;
}

/* Navigation Items */
/* Navigation - Premium Styling */
.nav-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    color: rgba(226, 232, 240, 0.8) !important;
    font-weight: 500 !important;
    border-radius: 1rem !important;
    margin-bottom: 0.25rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    gap: 1rem !important;
    white-space: nowrap !important;
    border: 1px solid transparent !important;
}

.nav-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
}

.nav-item:hover {
    color: white !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
    transform: translateX(8px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(103, 126, 234, 0.2) !important;
}

.nav-item:hover::before {
    left: 100% !important;
}

.nav-item.active {
    color: white !important;
    background: var(--primary-gradient) !important;
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateX(6px) scale(1.03) !important;
    border-color: rgba(103, 126, 234, 0.4) !important;
    position: relative !important;
}

.nav-item.active::after {
    content: '' !important;
    position: absolute !important;
    right: -1px !important;
    top: 20% !important;
    bottom: 20% !important;
    width: 3px !important;
    background: linear-gradient(180deg, transparent, white, transparent) !important;
    border-radius: 0 2px 2px 0 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Icon alignment fixes */
i[data-lucide], svg[data-lucide] {
    display: inline-block !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    vertical-align: middle !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
}

.nav-item i[data-lucide], .nav-item svg[data-lucide] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0 !important;
}

.admin-btn-primary i[data-lucide], .admin-btn-primary svg[data-lucide],
.admin-btn-secondary i[data-lucide], .admin-btn-secondary svg[data-lucide] {
    width: 1rem !important;
    height: 1rem !important;
}

.action-btn i[data-lucide], .action-btn svg[data-lucide] {
    width: 1rem !important;
    height: 1rem !important;
}

.flex.items-center.space-x-2 {
    gap: 0.5rem !important;
}

.flex.items-center.space-x-3 {
    gap: 0.75rem !important;
}


/* Admin Cards - Premium Glass Design */
.admin-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-elegant);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-card:hover::after {
    opacity: 0.1;
}

.admin-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(103, 126, 234, 0.4);
}

.admin-card:hover::before {
    opacity: 1;
}

/* Header - Enhanced Glass */
.admin-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.admin-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.6;
    animation: shimmer 3s ease-in-out infinite;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(103, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Buttons - Premium Design */
.admin-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.admin-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(103, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ce8 0%, #8b5bb7 100%);
}

.admin-btn-primary:hover::before {
    left: 100%;
}

.admin-btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Status Badges - Premium Design */
.status-online {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.status-offline {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.status-degraded {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.status-active {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.status-pending {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.2) 100%) !important;
    color: #fb923c !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.status-suspended {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.2) 100%) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

/* DataTables - Premium Styling */
.dataTables_wrapper {
    color: #e2e8f0 !important;
    padding: 2rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%) !important;
    border-radius: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 2rem !important;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 2rem !important;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 0.75rem 1rem !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: rgba(103, 126, 234, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1) !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    backdrop-filter: blur(10px) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    margin: 0 0.25rem !important;
    padding: 0.5rem 1rem !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(103, 126, 234, 0.3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 16px rgba(103, 126, 234, 0.4) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6b7280 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    opacity: 0.5 !important;
}

table.dataTable {
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

table.dataTable thead th {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid rgba(103, 126, 234, 0.5) !important;
    padding: 1.25rem 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
}

table.dataTable thead th::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: var(--primary-gradient) !important;
}

table.dataTable tbody td {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.25rem 1.5rem !important;
    font-size: 0.9rem !important;
    vertical-align: middle !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

table.dataTable tbody tr:hover td {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(103, 126, 234, 0.2) !important;
    box-shadow: 0 4px 20px rgba(103, 126, 234, 0.1) !important;
}

table.dataTable tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.01) !important;
}

table.dataTable tbody tr:nth-child(even):hover td {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* DataTables responsive */
.dtr-details {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(15px) !important;
    margin: 1rem 0 !important;
}

.dtr-details li {
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.75rem 0 !important;
}

.dtr-details .dtr-title {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
}

/* Form Styles - Premium Design */
.admin-form-group {
    margin-bottom: 1.5rem !important;
    position: relative !important;
}

.admin-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    margin-bottom: 0.75rem !important;
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 0.02em !important;
}

.admin-input, .admin-select, .admin-textarea {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    color: white !important;
    font-size: 0.95rem !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.admin-select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
    padding-right: 3rem !important;
}

.admin-select option {
    background: #1e293b !important;
    color: white !important;
    padding: 0.5rem !important;
}

.admin-select::-ms-expand {
    display: none !important;
}

.admin-input::placeholder, .admin-textarea::placeholder {
    color: rgba(156, 163, 175, 0.6) !important;
    font-style: italic !important;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none !important;
    border-color: rgba(103, 126, 234, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
}

.admin-textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* Modal Styles - Elegant & Modern */
.admin-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    backdrop-filter: blur(8px) !important;
}

#modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 9998 !important;
}

.admin-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 2rem !important;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    max-width: 40rem !important;
    width: 100% !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    position: relative !important;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-modal-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: var(--primary-gradient) !important;
    opacity: 0.6 !important;
}

.admin-modal:not(.hidden) {
    background: rgba(0, 0, 0, 0.4) !important;
}

.admin-modal.hidden {
    display: none !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 2rem 2rem 1.5rem 2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%) !important;
}

.admin-modal-header h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
}

.admin-modal-header button {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #94a3b8 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.admin-modal-header button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

.admin-modal-body {
    padding: 1.5rem 2rem !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

.admin-modal-body::-webkit-scrollbar {
    width: 6px !important;
}

.admin-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
}

.admin-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-gradient) !important;
    border-radius: 3px !important;
}

.admin-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient) !important;
}

.admin-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 1rem !important;
    padding: 1.5rem 2rem 2rem 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

/* Responsive Design - Premium Mobile Experience */
@media (max-width: 1024px) {
    #sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    #sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-elegant);
        z-index: 10000;
    }
    
    .lg\\:ml-72 {
        margin-left: 0 !important;
    }
    
    .admin-modal-content {
        margin: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        border-radius: 1.5rem !important;
    }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .admin-btn-primary,
    .admin-btn-secondary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .admin-header {
        padding-left: 4rem !important;
    }
    
    .nav-item {
        padding: 1rem 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }
    
    .admin-card {
        padding: 1.5rem !important;
        border-radius: 1.25rem !important;
    }
    
    .admin-modal-content {
        margin: 0.75rem !important;
        max-width: calc(100vw - 1.5rem) !important;
        border-radius: 1.25rem !important;
    }
    
    .admin-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    }
    
    .admin-modal-body {
        padding: 1rem 1.5rem !important;
    }
    
    .admin-modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .admin-modal-footer .admin-btn-primary,
    .admin-modal-footer .admin-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .dataTables_wrapper {
        padding: 1rem !important;
    }
    
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        margin-bottom: 1rem !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }
    
    .action-btn {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    
    .flex.space-x-2 {
        gap: 0.375rem !important;
    }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    
    .admin-form-group {
        margin-bottom: 1.25rem !important;
    }
    
    .admin-input, .admin-select, .admin-textarea {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .status-online, .status-offline, .status-degraded, 
    .status-active, .status-pending, .status-suspended {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
}

/* High DPI and Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .admin-card, .admin-modal-content {
        backdrop-filter: blur(25px) saturate(200%) !important;
    }
    
    table.dataTable thead th,
    table.dataTable tbody td {
        backdrop-filter: blur(15px) saturate(150%) !important;
    }
}

/* Chart Styles - Enhanced */
canvas {
    filter: brightness(1.1) saturate(1.2);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-height: 14rem !important;
    width: 100% !important;
}

.admin-card canvas {
    max-height: 12rem !important;
}

#resourceChart {
    max-height: 12rem !important;
}

/* Enhanced Dashboard Cards */
#dashboard-section .admin-card {
    position: relative;
    overflow: hidden;
}

#dashboard-section .admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 1s ease;
}

#dashboard-section .admin-card:hover::before {
    left: 100%;
}

/* Activity Feed Enhancement */
#activity-feed .fade-in {
    backdrop-filter: blur(5px);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

#activity-feed .fade-in:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Logo Enhancement */
.admin-sidebar img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.admin-sidebar img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(103, 126, 234, 0.4));
}

/* Dropdown Menus */
.dropdown-menu {
    animation: slideDown 0.2s ease-out;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Toggle Switches */
.toggle-bg {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    transition: all 0.3s ease;
}

input:checked + .toggle-bg {
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3);
}

input:checked + .toggle-bg .toggle-dot {
    transform: translateX(1rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Notification Badge */
.admin-btn-secondary .absolute {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Loading States */
.loading {
    @apply opacity-50 pointer-events-none;
}

.loading::after {
    content: '';
    @apply absolute inset-0 bg-slate-900 bg-opacity-50 flex items-center justify-center;
}

/* Action Buttons - Premium Design */
.action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.action-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.3s ease !important;
}

.action-btn:hover::before {
    width: 100% !important;
    height: 100% !important;
}

.action-btn-view {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.action-btn-view:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

.action-btn-edit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.action-btn-edit:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
}

.action-btn-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.action-btn-delete:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
}

/* Error Messages - Premium Styling */
.error-message {
    color: #f87171 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 0.75rem !important;
    backdrop-filter: blur(10px) !important;
    animation: fadeIn 0.3s ease !important;
}

/* Loading States */
.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    position: relative !important;
}

.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Utility Classes */
.glass-overlay {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.text-gradient {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.text-gradient-secondary {
    background: var(--secondary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.text-gradient-accent {
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

.admin-card h3 {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Animations - Premium Collection */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(103, 126, 234, 0.4), 0 0 20px rgba(103, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(103, 126, 234, 0.6), 0 0 40px rgba(103, 126, 234, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { 
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-10px) translateX(5px);
    }
    66% {
        transform: translateY(-5px) translateX(-5px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(103, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(103, 126, 234, 0.6), 0 0 60px rgba(118, 75, 162, 0.3);
    }
}

.glow-pulse {
    animation: glow-pulse 4s ease-in-out infinite;
}

/* Custom Scrollbar - Premium */
::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(10px) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient) !important;
    border-radius: 1rem !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    transition: all 0.3s ease !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3) !important;
}

::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Responsive Design for Wider Sidebar */
@media (max-width: 1024px) {
    #sidebar {
        transform: translateX(-100%);
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    .lg\\:ml-72 {
        margin-left: 0 !important;
    }
}
