 :root {
     --primary-color: #059669;
     --primary-dark: #047857;
     --secondary-color: #374151;
     --accent-color: #f59e0b;
     --danger-color: #dc2626;
     --success-color: #10b981;
     --warning-color: #f59e0b;
     --info-color: #3b82f6;
     --light-bg: #f8fafc;
     --dark-bg: #1f2937;
     --card-bg: #ffffff;
     --text-primary: #111827;
     --text-secondary: #6b7280;
     --border-color: #e5e7eb;
     --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
     --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
     --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
     --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
     color: var(--text-primary);
     min-height: 100vh;
     line-height: 1.6;
 }

 /* Added sophisticated sidebar navigation */
 .admin-container {
     display: flex;
     min-height: 100vh;
 }

 .sidebar {
     width: 280px;
     background: linear-gradient(180deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
     color: white;
     padding: 0;
     box-shadow: var(--shadow-xl);
     position: fixed;
     height: 100vh;
     overflow-y: auto;
 }

 .sidebar-header {
     padding: 2rem 1.5rem;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     background: rgba(0, 0, 0, 0.2);
 }

 .sidebar-title {
     font-size: 1.5rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     color: var(--success-color);
 }

 .sidebar-subtitle {
     font-size: 0.875rem;
     color: rgba(255, 255, 255, 0.7);
 }

 .sidebar-nav {
     padding: 1rem 0;
 }

 .nav-item {
     margin: 0.25rem 1rem;
 }

 .nav-link {
     display: flex;
     align-items: center;
     padding: 0.875rem 1rem;
     color: rgba(255, 255, 255, 0.8);
     text-decoration: none;
     border-radius: 0.5rem;
     transition: all 0.3s ease;
     font-weight: 500;
 }

 .nav-link:hover {
     background: rgba(255, 255, 255, 0.1);
     color: white;
 }

 .nav-link.active {
     background: var(--primary-color);
     color: white;
     box-shadow: var(--shadow-md);
 }

 .nav-link i {
     margin-right: 0.75rem;
     width: 20px;
     text-align: center;
 }

 /* Main content area with modern layout */
 .main-content {
     flex: 1;
     margin-left: 280px;
     padding: 0;
 }

 .top-bar {
     background: var(--card-bg);
     padding: 1rem 2rem;
     box-shadow: var(--shadow-sm);
     border-bottom: 1px solid var(--border-color);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .page-title {
     font-size: 1.875rem;
     font-weight: 700;
     color: var(--text-primary);
     margin: 0;
 }

 .user-info {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .user-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: linear-gradient(135deg, var(--primary-color), var(--success-color));
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-weight: 600;
 }

 .user-details {
     display: flex;
     flex-direction: column;
 }

 .user-name {
     font-weight: 600;
     color: var(--text-primary);
     font-size: 0.875rem;
 }

 .user-role {
     font-size: 0.75rem;
     color: var(--text-secondary);
 }

 .content-area {
     padding: 2rem;
 }

 /* Enhanced admin cards with different styling */
 .admin-grid {
     display: grid;
     gap: 1.5rem;
     margin-bottom: 2rem;
 }

 .admin-card {
     background: var(--card-bg);
     border-radius: 1rem;
     padding: 1.5rem;
     box-shadow: var(--shadow-md);
     border: 1px solid var(--border-color);
     position: relative;
     overflow: hidden;
 }

 .admin-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 4px;
     background: linear-gradient(90deg, var(--primary-color), var(--success-color));
 }

 .admin-card:hover {
     box-shadow: var(--shadow-xl);
 }

 .nav-item.active .nav-link {
     background-color: var(--primary-color);
     color: #ffffff !important;
     font-weight: 600;
     border-radius: 8px;
 }

 .btn-success-admin {
     background-color: #28a745;
     color: white;
     border-radius: 6px;
     border: none;
     transition: background-color 0.3s ease;
 }

 .btn-success-admin:hover {
     background-color: #218838;
 }


 .card-header {
     display: flex;
     align-items: center;
     margin-bottom: 1rem;
 }

 .card-icon {
     width: 48px;
     height: 48px;
     border-radius: 0.75rem;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-right: 1rem;
     font-size: 1.25rem;
 }

 .card-icon.users {
     background: linear-gradient(135deg, #3b82f6, #1d4ed8);
     color: white;
 }

 .card-icon.scan {
     background: linear-gradient(135deg, var(--accent-color), #d97706);
     color: white;
 }

 .card-title {
     font-size: 1.25rem;
     font-weight: 700;
     color: var(--text-primary);
     margin: 0;
 }

 .card-description {
     color: var(--text-secondary);
     font-size: 0.875rem;
     margin-bottom: 1.5rem;
 }

 .card-actions {
     display: flex;
     gap: 0.75rem;
     flex-wrap: wrap;
 }

 .card {
     background: linear-gradient(135deg, #1f2937, #111827);
     ;
     border-radius: 16px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
 }

 .card h3 {
     color: #ffffffff;
 }

 .input-group-text {
     background-color: #f9fafb;
     border-right: none;
     color: #6b7280;
 }

 .form-control {
     border-left: none;
     box-shadow: none !important;
 }

 .form-control:focus {
     border-color: #2563eb;
     box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, .25) !important;
 }

 .btn-success {
     background: #16a34a;
     border: none;
     transition: all 0.3s ease;
 }

 .btn-success:hover {
     background: #15803d;
     box-shadow: 0 6px 15px rgba(21, 128, 61, 0.3);
 }

 .alert {
     font-size: 0.9rem;
     border-radius: 12px;
 }

 /* Professional button styling */
 .btn-admin {
     padding: 0.75rem 1.5rem;
     border-radius: 0.5rem;
     font-weight: 600;
     font-size: 0.875rem;
     border: none;
     cursor: pointer;
     transition: all 0.3s ease;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
 }

 .btn-admin:hover {
     box-shadow: var(--shadow-md);
 }

 .btn-primary-admin {
     background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
     color: white;
 }

 .btn-secondary-admin {
     background: linear-gradient(135deg, var(--info-color), #2563eb);
     color: white;
 }

 .btn-warning-admin {
     background: linear-gradient(135deg, var(--accent-color), #d97706);
     color: white;
 }

 .btn-danger-admin {
     background: linear-gradient(135deg, var(--danger-color), #b91c1c);
     color: white;
 }

 /* Enhanced terminal output with dark theme */
 .terminal-container {
     background: #1a1a1a;
     border-radius: 0.75rem;
     padding: 1rem;
     margin-top: 1rem;
     border: 1px solid #333;
     box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
 }

 .terminal-header {
     display: flex;
     align-items: center;
     margin-bottom: 0.75rem;
     padding-bottom: 0.75rem;
     border-bottom: 1px solid #333;
 }

 .terminal-dots {
     display: flex;
     gap: 0.5rem;
     margin-right: 1rem;
 }

 .terminal-dot {
     width: 12px;
     height: 12px;
     border-radius: 50%;
 }

 .terminal-dot.red {
     background: #ff5f56;
 }

 .terminal-dot.yellow {
     background: #ffbd2e;
 }

 .terminal-dot.green {
     background: #27ca3f;
 }

 .terminal-title {
     color: #888;
     font-size: 0.75rem;
     font-weight: 500;
 }

 #scan-output {
     background: transparent;
     color: #00ff00;
     font-family: 'Courier New', monospace;
     font-size: 0.875rem;
     line-height: 1.4;
     white-space: pre-wrap;
     min-height: 120px;
     max-height: 300px;
     overflow-y: auto;
     padding: 0;
     margin: 0;
 }

 #scan-output::-webkit-scrollbar {
     width: 8px;
 }

 #scan-output::-webkit-scrollbar-track {
     background: #2a2a2a;
     border-radius: 4px;
 }

 #scan-output::-webkit-scrollbar-thumb {
     background: #555;
     border-radius: 4px;
 }

 #scan-output::-webkit-scrollbar-thumb:hover {
     background: #777;
 }

 .logout-btn {
     position: absolute;
     bottom: 1rem;
     left: 1rem;
     right: 1rem;
 }

 .table thead th {
     background-color: #000000;
     color: #ffffff;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .table-hover tbody tr:hover {
     background-color: #f1f3f5;
     transition: background-color 0.2s ease;
 }

 .pagination .page-item.active .page-link {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
 }

 .page-link{
    color: var(--primary-color);
 }

 .badge {
     font-size: 0.85rem;
     padding: 0.5em 0.75em;
     border-radius: 8px;
 }


 /* Mobile optimization */
 @media (max-width: 576px) {
     .card {
         padding: 1.5rem !important;
     }
 }

 /* Responsive design */
 @media (max-width: 768px) {
     .sidebar {
         width: 100%;
         position: relative;
         height: auto;
     }

     .main-content {
         margin-left: 0;
     }

     .admin-grid {
         grid-template-columns: 1fr;
     }

     .top-bar {
         padding: 1rem;
     }

     .content-area {
         padding: 1rem;
     }
 }

 .loading {
     color: #fbbf24;
 }

 .error {
     color: #ef4444;
 }

 .success {
     color: #10b981;
 }