:root 
{
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --bg-input: #1a1a1a;
    --primary-red: #FF0000;
    --primary-hover: #FF0000;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --border: #262626;
    --success: #10b981;
    --failed: #FF0000;

    --button-red: #FF0000;
    --button-green: #00ff88;
    --button-blue: #0000FF ;
    --button-yellow: #ffcc00 ;

    --toast-Success: #00ff88;
    --toast-Error: #FF0000;
    --toast-Warning: #ffcc00;
    --toast-Info: #0000FF;

    --notification-success: #00ff88;
    --notification-error: #FF0000;
    --notification-warning: #ffcc00;
    --notification-info: #0000FF;
}
html, body {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    caret-color: transparent !important;
}
input, textarea, [contenteditable="true"],
.allow-select 
{
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    caret-color: auto !important;
}
        .terminal-card {
            background: #050505;
            border: 1px solid #333;
            border-radius: 4px;
            overflow: hidden;
            font-family: 'Courier New', Courier, monospace;
        }

        .terminal-header {
            background: #1a1a1a;
            padding: 8px 15px;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #333;
        }

        .terminal-title {
            font-size: 10px;
            color: #666;
            letter-spacing: 2px;
        }

        .terminal-body {
            height: 250px;
            overflow-y: auto;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }



        .log-entry {
            font-size: 12px;
            line-height: 1.4;
            border-left: 2px solid transparent;
            padding-left: 10px;
        }

        .log-entry.info { color: #00ff88; border-color: #00ff88; }
        .log-entry.warn { color: #ffcc00; border-color: #ffcc00; }
        .log-entry.critical { color: #ff4d4d; border-color: #ff4d4d; font-weight: bold; }

        .timestamp { color: #444; margin-right: 8px; font-size: 10px; }
        .log-widget {
            width: 260px;
            background: rgba(10, 10, 10, 0.9);
            border: 1px solid #333;
            border-top: 2px solid #ff4d4d; /* Red accent bar */
            border-radius: 2px;
            font-family: 'Courier New', Courier, monospace;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .log-widget-header {
           padding: 12px 20px;
    background: #151515;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
        }

        .status-indicator {
            font-size: 11px; /* Slightly larger text */
    letter-spacing: 2px;
            color: #00ff88;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pulse-dot {
            width: 6px;
            height: 6px;
            background: #00ff88;
            border-radius: 50%;
            box-shadow: 0 0 8px #00ff88;
            animation: status-pulse 1.5s infinite;
        }

        @keyframes status-pulse {
            0% { opacity: 1; }
            50% { opacity: 0.3; }
            100% { opacity: 1; }
        }

        .widget-version {
            font-size: 9px;
            color: #444;
        }

        .log-widget-body {
         font-size: 12px !important; /* Bumped up for readability */
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); /* Added subtle separator */
    padding-bottom: 4px;
        }

        /* Compact Log Entry */
        .log-entry {
          display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 6px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: left !important;
        }

       .log-entry.info { color: #00ff88 !important; }      /* Neon Green */
       .log-entry.warn { color: #ffcc00 !important; }      /* Yellow */
       .log-entry.critical { color: #ff4d4d !important; }  /* Tactical Red */



        .nav-item-container {
    position: relative; /* Anchor for the popout */
    display: inline-block;
}

.nav-icon-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
    position: relative;
}

.nav-icon-btn:hover { color: #ff4d4d; }

/* Alert Dot for when new logs arrive while closed */
.nav-alert-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff4d4d;
}

/* Popout Specific Styles */
.log-widget {
   width: 520px !important; 
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-top: 3px solid #ff4d4d; /* Slightly thicker accent */
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

.popout-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-10px);
}

.hidden { display: none; }

        /* For Firefox */
        * {
        
            box-sizing: border-box; 
            transition: all 0.2s ease-in-out;
        }

        body {
            margin: 0;
            font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            height: 100vh;
            overflow: hidden;
        }
        

        /* Utility Classes */
        .hidden { display: none !important; }
        .btn { padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; border: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
        .btn-red { background: var(--primary-red); color: black; }
        .btn-green { background: var(--button-green); color: black; }
        .btn-blue { background: var(--button-blue); color: black; }
        .btn-yellow { background: var(--button-yellow); color: black; }
        .btn-red:hover { background: var(--primary-hover); transform: translateY(-1px); }
        .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
        .btn-matchoutline { background: transparent; border: 1px solid var(--border); border-color: var(--primary-red);  color: var(--primary-red); ; }
        .btn-outline:hover { border-color: var(--primary-red); color: var(--primary-red); }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        /* Login Screen Overlay */
        #login-screen {
            position: fixed;
            inset: 0;
            background: var(--bg-dark);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-card {
            background: var(--bg-card);
            padding: 3rem;
            border-radius: 16px;
            border: 1px solid var(--border);
            width: 100%;
            max-width: 450px;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        /* App Layout */
        .app-container { display: flex; height: 100vh; width: 100%; }

        .sidebar {
            width: 260px;
            background-color: var(--bg-card);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .logo {
            padding: 2rem;
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--primary-red);
            text-align: center;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 5;
        }

        .nav-links { padding: 1rem 0; list-style: none; margin: 0; flex-grow: 1; }
        .nav-links li {
            padding: 12px 24px;
            color: var(--text-dim);
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .nav-links li:hover, .nav-links li.active {
            color: var(--text-main);
            background: rgba(230, 57, 70, 0.1);
            border-left: 4px solid var(--primary-red);
        }

        /* Main Content Area */
        .main-content { flex-grow: 1; overflow-y: auto; background: var(--bg-dark); }
        .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    /* CHANGE THIS: Ensure overflow is NOT hidden */
    overflow: visible !important; 
    z-index: 100;
}

        .content-view { padding: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }

        /* Grid & Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .card 
        { 
            background: var(--bg-card); 
            border: 1px solid var(--border); 
            border-radius: 12px; 
            padding: 1.5rem; 
            border-top: 1px solid var(--primary-red) !important; 
            border-bottom: 1px solid var(--primary-red) !important; 
            border-left: 1px solid var(--primary-red) !important; 
            border-right: 1px solid var(--primary-red) !important;
        }
        .card h3 { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; margin: 0; }
        .card .value { font-size: 2rem; font-weight: 700; margin-top: 10px; }

        /* Tables */
        .data-table-container {
            background: var(--bg-card);
            border-radius: 12px;
            border: 1px solid var(--border);
            overflow: auto;
            margin-bottom: 2rem;
            -webkit-overflow-scrolling: touch;
            padding: 10px; 
        }
        ::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }
  
        ::-webkit-scrollbar-track {
            background: transparent !important;
            margin: 5px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #8B0000 !important;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary-red) !important;
            border-radius: 10px;
            border: 2px solid var(--bg-card); 
            background-clip: padding-box;
            
        }     
        .data-table-container::-webkit-scrollbar {
            height: 20px !important; 
        }
        .data-table-container::-webkit-scrollbar-track {
            background: transparent !important;
        }
        .data-table-container::-webkit-scrollbar-thumb {
            background: transparent !important;
            border-radius: 10px !important;
            box-shadow: inset 0 0 0 3px var(--bg-card), 
                        inset 0 0 0 10px var(--primary-red) !important;
        }
        .data-table-container::-webkit-scrollbar-thumb:hover {
            box-shadow: inset 0 0 0 3px var(--bg-card), 
            inset 0 0 0 10px #8B0000 !important;
        }


        
        table { width: 100%; border-collapse: collapse; text-align: left; }
        th { padding: 1rem 1.5rem; font-size: 0.8rem; color: var(--text-dim); background: rgba(255,255,255,0.02); }
        td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
       

    

        
        /* Terminal Style Logs */
        .terminal {
            background: #050505;
            border-radius: 8px;
            padding: 1.5rem;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 0.85rem;
            color: #00ff41;
            border: 1px solid var(--border);
            height: 500px;
            overflow-y: auto;
            line-height: 1.6;
        }

    

        /* Forms */
        .form-group { margin-bottom: 1.5rem; }
        label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }
        input, select {
            width: 100%;
            padding: 12px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: white;
            outline: none;
        }
        input:focus { border-color: var(--primary-red); }

        .badgesuccess { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; background: rgba(16, 185, 129, 0.1); color: var(--success); }
        .badgefailed { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; background: rgba(185, 16, 16, 0.1); color: var(--failed); }
        .badgesuccess, .badgefailed {
            display: inline-block; /* Ensures padding and background render correctly */
            white-space: nowrap;   /* Prevents the badge from snapping to two lines */
            backdrop-filter: blur(2px); /* Adds a tactical glass effect */
        }
      
        /* Stylized Toggle Switch */
        .switch { position: relative; display: inline-block; width: 50px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider {
            position: absolute; cursor: pointer; inset: 0;
            background-color: var(--bg-input); transition: .4s; border-radius: 34px;
            border: 1px solid var(--border);
        }
        .slider:before {
            position: absolute; content: ""; height: 16px; width: 16px;
            left: 3px; bottom: 3px; background-color: var(--text-dim);
            transition: .4s; border-radius: 50%;
        }
        input:checked + .slider { background-color: var(--primary-red); }
        input:checked + .slider:before { transform: translateX(30px); background-color: white; }

        /* Map & Explorer Specifics */
        .map-container {
            background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') no-repeat center;
            background-size: contain;
            height: 400px;
            position: relative;
            opacity: 0.6;
            border: 1px solid var(--border);
            border-radius: 12px;
        }
        .map-dot {
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--primary-red);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary-red);
            animation: pulse 2s infinite;
        }
        /* Sidebar Dropdown Styling */
        .nav-dropdown {
            list-style: none;
            padding: 0;
            margin: 0;
            background: rgba(0, 0, 0, 0.2);
            display: none; /* Hidden by default */
        }

        .nav-dropdown li {
            padding-left: 48px !important; /* Indent sub-items */
            font-size: 0.85rem !important;
            border-left: none !important;
        }

        .has-dropdown {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chevron {
            font-size: 0.7rem;
            transition: transform 0.3s ease;
        }

        .nav-group.active .nav-dropdown {
            display: block;
        }

        .nav-group.active .chevron {
            transform: rotate(180deg);
        }
        .btn-glow {
            background: var(--primary-red);
            color: black;
            box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
            animation: pulse-red 2s infinite;
        }
        .segmented-control {
            display: inline-flex;
            background: var(--bg-input);
            padding: 4px;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .seg-btn {
            padding: 6px 16px;
            border-radius: 6px;
            border: none;
            background: transparent;
            color: var(--text-dim);
            font-size: 0.8rem;
            cursor: pointer;
        }

        .seg-btn.active {
            background: var(--bg-card);
            color: var(--primary-red);
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        .btn-icon-round {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-dim);
            cursor: pointer;
        }

        .btn-icon-round:hover {
            border-color: var(--primary-red);
            color: var(--primary-red);
            background: rgba(230, 57, 70, 0.1);
        }
        .btn-scan {
            background: transparent;
            border: 1px solid var(--primary-red);
            color: var(--primary-red);
            position: relative;
            overflow: hidden;
        }

        .btn-scan::after {
            content: "";
            position: absolute;
            top: -50%; left: -100%;
            width: 100%; height: 200%;
            background: linear-gradient(90deg, transparent, rgba(230,57,70,0.2), transparent);
            transform: rotate(35deg);
        }

        .btn-scan.loading::after {
            animation: scan-line 1.5s infinite;
        }

        @keyframes scan-line {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        .btn-nuke {
            position: relative;
            background: #1a0505;
            border: 1px solid #450a0a;
            color: #e63946;
            overflow: hidden;
            padding: 15px 30px;
        }

        .progress-fill {
            position: absolute;
            left: 0; bottom: 0; top: 0;
            width: 0%;
            background: rgba(230, 57, 70, 0.3);
            transition: width 1s linear;
        }

        .btn-nuke:active .progress-fill {
            width: 100%;
        }
        .firewall-monitor {
            background: #050505;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px;
            font-family: monospace;
            font-size: 0.7rem;
            height: 120px;
            overflow: hidden;
            position: relative;
        }
        .intercept-line {
            color: var(--primary-red);
            border-left: 2px solid var(--primary-red);
            padding-left: 8px;
            margin-bottom: 4px;
            animation: slideIn 0.3s ease-out;
        }
        @keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

        /* Biometric Scanner Styles */
        #scan-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 5000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .scan-line {
            width: 300px;
            height: 2px;
            background: var(--primary-red);
            box-shadow: 0 0 20px var(--primary-red), 0 0 40px var(--primary-red);
            animation: scanMove 2s infinite ease-in-out;
        }

        .scan-text {
            margin-top: 30px;
            letter-spacing: 4px;
            color: var(--primary-red);
            font-family: monospace;
            font-size: 0.9rem;
            text-shadow: 0 0 10px var(--primary-red);
        }

        @keyframes scanMove {
            0%, 100% { transform: translateY(-100px); opacity: 0.5; }
            50% { transform: translateY(100px); opacity: 1; }
        }

        @keyframes pulse-red {
            0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
            70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
            100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
        }
        @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

        /* Tactical Notification System */

        /* Container for all toasts */
        #notification-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* Base Toast Style */
        .toast {
            width: 320px;
            background: rgba(10, 10, 10, 0.95);
            border: 1px solid var(--border);
            border-left: 4px solid var(--primary-red); /* Default */
            color: white;
            padding: 15px;
            border-radius: 4px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            animation: toastSlideIn 0.3s ease-out forwards;
        }

        /* Type Variants */
        .toast.Success { border-left-color: var(--toast-Success); box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); }
        .toast.Error   { border-left-color: var(--toast-Error); box-shadow: 0 0 15px rgba(255, 51, 51, 0.2); }
        .toast.Warning { border-left-color: var(--toast-Warning); box-shadow: 0 0 15px rgba(255, 204, 0, 0.2); }
        .toast.Info    { border-left-color: var(--toast-Info); box-shadow: 0 0 15px rgba(0, 204, 255, 0.2); }

        .toast-header {
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 1px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Header Text Color Sync */
        .toast.Success .toast-header { color: var(--toast-Success); }
        .toast.Error .toast-header   { color: var(--toast-Error); }
        .toast.Warning .toast-header { color: var(--toast-Warning); }
        .toast.Info .toast-header    { color: var(--toast-Info); }

        .toast-body { font-size: 0.85rem; color: var(--text-main); line-height: 1.4; }

        /* Progress Bar */
        .toast-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 2px;
            width: 100%;
            animation: toastProgress 5s linear forwards;
        }

        /* Progress Bar Color Sync */
        .toast.Success .toast-progress { background: var(--toast-Success); }
        .toast.Error .toast-progress   { background: var(--toast-Error); }
        .toast.Warning .toast-progress { background: var(--toast-Warning); }
        .toast.Info .toast-progress    { background: var(--toast-Info); }

        
        /* Animations */
        @keyframes toastSlideIn { from { transform4: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes toastProgress { from { width: 100%; } to { width: 0%; } }
        .toast.fade-out { animation: toastSlideOut 0.5s ease-in forwards; }
        @keyframes toastSlideOut { to { transform: translateX(120%); opacity: 0; } }
        /* Pagination Styling */
        .pagination-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border-top: 1px solid var(--border);
        }

        .pagination-info {
            font-size: 0.8rem;
            color: var(--text-dim);
            white-space: nowrap !important; /* This is the killer line */
            flex-shrink: 0; /* Prevents buttons from squishing the text */
        }

        .pagination-buttons {
            display: flex;
            gap: 8px;
        }

        .page-btn {
            padding: 5px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-main);
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            border-top: 1px solid var(--primary-red) !important; 
            border-bottom: 1px solid var(--primary-red) !important; 
            border-left: 1px solid var(--primary-red) !important; 
            border-right: 1px solid var(--primary-red) !important;
        }


        .page-btn:hover:not(:disabled) {
            border-color: var(--primary-red);
            color: var(--primary-red);
        }

        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .page-btn.active {
            background: var(--primary-red);
            color: black;
            border-color: var(--primary-red);
        }
        /* Table Row Interaction */
        #my-data-table tbody tr {
            cursor: pointer;
            position: relative;
            transition: background 0.2s ease;
        }

        #my-data-table tbody tr:hover {
            background: rgba(255, 0, 0, 0.05) !important; /* Very faint red tint */
        }
        /* This will now hit every table on the page */
        table tbody tr {
            cursor: pointer;
            transition: background 0.2s ease;
        }

        table tbody tr:hover td {
            background: rgba(255, 0, 0, 0.05);
            border-top: 1px solid rgba(255, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 0, 0, 0.3);
        }

        table tbody tr:hover td:first-child {
            border-left: 3px solid var(--primary-red);
        }
        #table-search:focus {
            border-color: var(--primary-red);
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
            background: var(--bg-card);
        }

        #table-search::placeholder {
            color: #444;
            font-size: 0.75rem;
        }
        #details-modal {
            backdrop-filter: blur(10px);
            transition: opacity 0.3s ease;
        }
        /* Status Toggle Styling */
        .status-control {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.03);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .status-label {
            font-size: 0.75rem;
            letter-spacing: 1px;
            color: var(--text-dim);
        }

        #details-modal .login-card {
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        #details-modal:not(.hidden) .login-card {
            transform: scale(1);
        }

        /* The Glow Edge Effect */
        #my-data-table tbody tr:hover td {
            color: var(--text-main);
            border-top: 1px solid rgba(255, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 0, 0, 0.3);
        }

        /* Left-most cell glow cap */
        #my-data-table tbody tr:hover td:first-child {
            border-left: 3px solid var(--primary-red);
            box-shadow: inset 10px 0 15px -10px var(--primary-red);
        }

        /* Right-most cell glow cap */
        #my-data-table tbody tr:hover td:last-child {
            box-shadow: inset -10px 0 15px -10px rgba(255, 0, 0, 0.2);
        }
           
        .status-pulse {
            width: 8px;
            height: 8px;
            background-color: var(--failed);
            border-radius: 50%;
            position: relative;
            box-shadow: 0 0 10px var(--failed);
        }

        .status-pulse::after {
            content: '';
            position: absolute;
            inset: -4px;
            border: 1px solid var(--failed);
            border-radius: 50%;
            animation: status-ripple 2s infinite ease-out;
            opacity: 0;
        }

        @keyframes status-ripple {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(2.5); opacity: 0; }
        }
        /* Profile Popup Styling */
    .profile-card {
        position: absolute;
        top: 50px; /* Position it below the icon */
        right: 0;
        width: 350px;
        background: #121212; /* Solid dark background */
        border: 1px solid var(--primary-red);
        border-radius: 4px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        
        /* Ensure it's above everything else */
        z-index: 9999 !important; 
        
        /* Animation states */
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: block; 
    }

    .profile-card.hidden {
    display: none; /* Try switching to display: none for a hard test */
    }

    .profile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .avatar-glow {
        width: 40px;
        height: 40px;
        background: var(--bg-dark);
        border: 1px solid var(--primary-red);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
        background-color: var(--bg-input);
    background-image: url('loading-spinner.gif'); /* Optional loading indicator */
    background-position: center;
    background-repeat: no-repeat;
    }

    .stat-line {
        display: flex;
        justify-content: space-between;
        font-family: monospace;
        font-size: 0.65rem;
        padding: 5px 0;
        color: var(--text-dim);
    }

    .profile-actions {
        margin-top: 12px;
        display: flex;
        gap: 8px;
    }

    .btn-mini {
        flex: 1;
        background: var(--bg-input);
        border: 1px solid var(--border);
        color: var(--text-main);
        font-size: 0.6rem;
        padding: 6px;
        cursor: pointer;
        border-radius: 2px;
        border-top: 1px solid var(--primary-red) !important; 
        border-bottom: 1px solid var(--primary-red) !important; 
        border-left: 1px solid var(--primary-red) !important; 
        border-right: 1px solid var(--primary-red) !important;
    }

    .btn-mini:hover {
        border-color: var(--primary-red);
        color: var(--primary-red);
    }

    .btn-mini.red:hover {
        background: var(--primary-red);
        color: black;
    }

    .view-container {
        position: fixed;
        inset: 0;
        background: var(--bg-dark);
        z-index: 5000;
        padding: 40px;
        animation: slideUp 0.4s ease-out;
    }

    .settings-grid {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        height: 80vh;
    }

    /* Settings Nav */
    .settings-nav {
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .settings-nav-item {
        padding: 15px;
        color: var(--text-dim);
        cursor: pointer;
        transition: 0.3s;
        border-radius: 4px;
    }

    .settings-nav-item.active {
        background: rgba(255, 0, 0, 0.1);
        color: var(--primary-red);
        border-left: 3px solid var(--primary-red);
    }

    /* Inputs & Toggles */
    .tactical-input {
        width: 100%;
        background: var(--bg-input);
        border: 1px solid var(--border);
        color: var(--text-main);
        padding: 12px;
        margin-top: 8px;
        font-family: monospace;
    }

    .tactical-input:focus {
        border-color: var(--primary-red);
        outline: none;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    }

    .tab-pane { display: none; }
    .tab-pane.active { display: block; animation: fadeIn 0.3s; }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Container Overhaul */
    .view-container {
        background: radial-gradient(circle at center, #1a0505 0%, #0a0a0a 100%);
        border: 1px solid var(--primary-red);
        box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.05);
    }

    .settings-top-bar {
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        background: rgba(255, 0, 0, 0.1);
        border-bottom: 1px solid var(--primary-red);
        font-family: monospace;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    /* Navigation Redesign */
    .settings-nav-item {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 15px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .nav-id {
        color: var(--primary-red);
        font-size: 0.6rem;
        border: 1px solid var(--primary-red);
        padding: 2px 5px;
    }

    .settings-nav-item.active {
        background: var(--primary-red);
        color: black;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    }

    .settings-nav-item.active .nav-id {
        border-color: black;
        color: black;
    }

    /* Hex Avatar Decor */
    .hex-avatar {
        width: 80px;
        height: 90px;
        background: var(--bg-input);
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--primary-red);
        font-size: 2rem;
        color: var(--primary-red);
        filter: drop-shadow(0 0 10px var(--primary-red));
    }

    /* Inputs */
    .hud-input {
        background: rgba(0,0,0,0.5);
        border: none;
        border-bottom: 2px solid var(--border);
        color: white;
        padding: 10px;
        font-family: monospace;
        transition: 0.3s;
    }

    .hud-input:focus {
        border-bottom-color: var(--primary-red);
        background: rgba(255, 0, 0, 0.05);
        outline: none;
    }
    .view-container {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .settings-modal-core {
        width: 100%;
        max-width: 900px;
        background: var(--bg-card);
        border: 1px solid var(--primary-red);
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
        position: relative;
        padding: 40px;
        border-radius: 4px;
    }

    .settings-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }

    /* Close Button styling */
    .btn-close-terminal {
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text-dim);
        padding: 5px 10px;
        cursor: pointer;
        font-family: monospace;
        font-size: 0.7rem;
    }

    .btn-close-terminal:hover {
        color: var(--primary-red);
        border-color: var(--primary-red);
    }

    /* Configuration Tabs */
    .config-nav {
        display: flex;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 25px;
    }

    .nav-tab {
        background: transparent;
        border: none;
        color: var(--text-dim);
        padding: 10px 0;
        font-weight: 800;
        cursor: pointer;
        border-bottom: 2px solid transparent;
    }

    .nav-tab.active {
        color: var(--primary-red);
        border-bottom: 2px solid var(--primary-red);
    }

    .input-row {
        margin-bottom: 20px;
    }

    .input-row label {
        display: block;
        font-size: 0.65rem;
        color: var(--text-dim);
        margin-bottom: 8px;
    }
    .profile-photo-img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This is the secret it crops the photo to a square/circle */
        border-radius: 50%; /* Keeps it circular for the Nav and Popout */
        display: block;
    }

    /* Specific fix for your Hexagonal Avatar in Settings */
    .hex-avatar img {
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        border-radius: 0; /* Hexagons don't use border-radius */
    }

    /* Ensure the container doesn't have padding that squishes the photo */
    .avatar-glow, .hud-target {
        padding: 0 !important; 
        overflow: hidden; /* Clips the photo to the border */
    }

    @media (max-width: 768px) 
    {
        body 
        {
            overflow-y: auto !important;
            height: auto !important;
        }
        /* Show the hamburger button */
        #mobile-menu-btn {
            display: inline-flex !important;
        }
        .app-container {
                /* Stack sidebar and content vertically */
                flex-direction: column;
                height: auto;
            }
        .sidebar {
            position: fixed;
            left: -260px; /* Hide it off-screen by default */
            top: 0;
            bottom: 0;
            z-index: 2001; /* Above everything else */
            transition: left 0.3s ease;
            box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        }
        /* This class will be added via JavaScript to slide the menu in */
        .sidebar.active {
            left: 0;
        }
        /* Optional: Add a dimming overlay when menu is open */
        .sidebar-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 2000;
            display: none;
        }
        .sidebar-overlay.active {
            display: block;
        }
        .main-content {
            /* Remove the fixed scroll behavior for the main panel */
            overflow-y: visible !important;
            height: auto !important;
        }
        /* 2. Adjust the Top Nav for small screens */
        .top-nav {
            /* Adjust navigation for smaller screens */
            padding: 0 1rem;
            position: relative; /* Unstick if it blocks content */
        }

        /* Hide the heartbeat/canvas on very small screens to save space */
        .heartbeat-container {
            display: none !important;
        }

        /* 3. Make the Stats Grid a single column */
        .stats-grid {
            /* Stack the 4 cards into a single column */
            grid-template-columns: 1fr !important;
        }
        /* 4. Handle Tables (The biggest mobile challenge) */
        .data-table-container {
            overflow-x: auto;
        }

        table {
            min-width: 600px; /* Ensures table doesn't squish too much */
        }

        /* 5. Adjust Cards and Forms */
        .content-view {
            padding: 1rem;
        }

        .login-card {
            padding: 1.5rem;
            margin: 10px;
        }

        /* Stack form groups that were side-by-side */
        div[style*="grid-template-columns: 1fr 1fr"] {
            grid-template-columns: 1fr !important;
            gap: 1.5rem !important;
        }
        
        /* Ensure action buttons don't overflow */
        div[style*="display: flex; gap: 10px"] {
            flex-wrap: wrap;
        }
        .btn {
            padding: 12px 24px;
            min-height: 48px;
            justify-content: center;
        }

        /* Increase table action icon spacing and size */
        td i {
            padding: 10px;
            font-size: 1.1rem;
        }

        /* Make the top-nav user icon easier to tap */
        .hud-target {
            width: 44px !important;
            height: 44px !important;
        }
        /* Force grids that are 1fr 1fr to become single column */
        div[style*="grid-template-columns: 1fr 1fr"] {
            grid-template-columns: 1fr !important;
            gap: 1rem !important;
        }
        
        /* Also fix the 'Restrict Access' horizontal layout */
        div[style*="display: flex; gap: 1rem; align-items: flex-end;"] {
            flex-direction: column;
            align-items: stretch !important;
        }
        .login-card {
            padding: 1.5rem;
            width: 92%;
            margin: 10px;
        }

        .login-card h2 {
            font-size: 1.4rem;
        }
        .terminal {
            height: 300px; /* Shorter terminal for better mobile viewing */
            font-size: 0.75rem;
            padding: 1rem;
        }
        #notification-container {
            top: 80px; /* Just below the top nav */
            bottom: auto;
            left: 10px;
            right: 10px;
            width: auto;
        }

        .toast {
            width: 100%; /* Full width on mobile */
        }
        input, select, textarea {
            font-size: 16px !important; /* Forces iOS not to zoom in on tap */
        }
        .profile-card {
            /* Reset positioning for mobile */
            right: 10px !important; 
            top: 60px !important;
            width: calc(100vw - 40px); /* Fill most of the screen width */
            max-width: 350px;
            position: fixed; /* Fix it to the viewport so scrolling doesn't break it */
        }

        /* Make the buttons easier to tap with thumbs */
        .btn-mini {
            padding: 12px;
            font-size: 0.8rem;
        }
        /* Ensure the background container doesn't scroll, only the modal */
        .view-container {
            padding: 10px;
            align-items: flex-start; /* Start from top so it doesn't cut off */
            overflow-y: auto;
        }

        /* 1. Make the modal fill the screen with small margins */
        .settings-modal-core {
            width: 95% !important;
            height: auto !important; /* Let the content dictate the height */
            max-height: 90vh; /* Keep it from touching screen edges */
            overflow-y: auto !important; /* Enable scrolling if content is long */
            display: block !important; /* Break the desktop grid/flex */
            padding: 15px !important;
        }

        /* 2. Stack the Sidebar and Main Content */
        .settings-layout {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            gap: 20px !important;
        }

        /* 3. The Culprit: Config Content */
        .settings-main-config {
            width: 100% !important;
            display: block !important;
            overflow: visible !important; /* Prevent clipping */
        }

        /* 4. Inputs: Ensure they stay inside the box */
        .input-row {
            width: 100% !important;
            margin-bottom: 20px;
        }

        .tactical-input {
            width: 100% !important; /* Occupy full width of the mobile modal */
            box-sizing: border-box !important; /* Include padding in width */
        }

        .config-content {
            width: 100% !important;
            height: auto !important; /* Crucial: Remove desktop height */
            padding: 0 !important;
            margin: 0 !important;
            display: block !important;
        }
        
        /* 3. Adjust the Profile Sidebar for Mobile */
        .settings-sidebar-id {
            width: 100% !important;
            border-right: none !important;
            border-bottom: 1px solid var(--border);
            margin-bottom: 20px;
            padding-bottom: 15px;
        }

        /* 4. Make the Navigation Tabs scrollable horizontally */
        .config-nav {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 10px;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--border);
        }

        .nav-tab {
            padding: 10px 5px;
            font-size: 0.7rem;
            white-space: nowrap;
            flex-shrink: 0;
        }
        /* Scale down the big profile avatar so it fits */
        .avatar-glow {
            width: 60px !important;
            height: 60px !important;
            font-size: 1.5rem !important;
        }

        /* 5. Improve Touch Targets for inputs */
        /* Fix the inputs from pushing out of the box */
        .tactical-input, .hud-input {
            width: 100% !important;
            max-width: 100%;
            display: block;
        }

        /* 6. Fix the Close Button position */
        .btn-close-terminal {
            top: 10px;
            right: 10px;
            font-size: 0.6rem;
        }

            .search-container {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        align-items: stretch !important; /* Makes the button and input the same height */
        gap: 8px !important;
        width: 100% !important;
    }

    /* Make the search input container fill the left side */
    .search-container > div:first-child {
        flex: 1 !important;
        min-width: 0 !important; /* Prevents the input from pushing the button off screen */
    }



    /* Keep the button from shrinking or wrapping text */
    .btn-matchoutline {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
        font-size: 0.75rem !important; /* Slightly smaller text to fit small screens */
        padding: 0 10px !important;
    }
        
    }
    

     #renew-session-btn {
        animation: tactical-pulse 2s infinite;
        transition: all 0.3s ease;
    }
    @keyframes tactical-pulse {
        0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
    }
    #renew-session-btn:disabled {
        filter: grayscale(1);
        cursor: wait;
        animation: none;
    }

    /*Ghost Mode*/
    .sensitive-data-table { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; background: rgba(185, 16, 16, 0.1); color: var(--failed); }
    body.ghost-mode .sensitive-data-table {
        filter: blur(5px);
        pointer-events: none; /* Prevents selecting/copying the blurred text */
        user-select: none;
        transition: filter 0.3s ease;
    }
    body.ghost-mode .sensitive-data {
        filter: blur(5px);
        pointer-events: none; /* Prevents selecting/copying the blurred text */
        user-select: none;
        transition: filter 0.3s ease;
    }
    body.ghost-mode {
        border: 1px solid rgba(0, 255, 136, 0.2);
    }
    .ghost-toggle-container {
        display: flex;
        justify-content: space-between; /* Creates the space between text and slider */
        align-items: center;           /* Centers slider vertically relative to text */
        width: 100%;                   /* Auto-adjusts to the panel size */
        padding: 6px 12px;            /* Internal spacing */
        background: rgba(255, 0, 0, 0.05);
        border: 1px solid rgba(255, 0, 0, 0.2);
        border-radius: 2px;
        /*border-radius: 6px;*/
        box-sizing: border-box;        /* Ensures padding doesn't break the width */
        margin: -5px 0;
    }
    .toggle-label {
        color: var(--primary-red);
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 2px;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    .switch {
        position: relative;
        display: inline-block;
        width: 42px;
        height: 20px;
        margin-top: 4px;
    }
    .switch input { opacity: 0; width: 0; height: 0; }
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #111;
        transition: .4s;
        border: 1px solid rgba(255, 0, 0, 0.3);
        border-radius: 20px;
    }
    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 2px;
        background-color: #333;
        transition: .4s;
        border-radius: 50%;
    }
    input:checked + .slider {
        background-color: rgba(255, 0, 0, 0.1);
        border-color: var(--primary-red);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    }
    input:checked + .slider:before {
        transform: translateX(20px);
        background-color: var(--primary-red);
        box-shadow: 0 0 10px var(--primary-red);
    }
    .status-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 1px;
        padding: 4px 10px;
        border-radius: 4px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: var(--success); /* Default dim color */
        border: 1px solid rgba(16, 185, 129, 0.3);
        animation: status-pulse1 2s infinite;
    }
    .status-indicator.status-online {
        color: var(--primary-red);
        background: rgba(255, 0, 0, 0.1);
        border: 1px solid rgba(255, 0, 0, 0.3);
        animation: status-pulse 2s infinite;
    }
    @keyframes status-pulse {
        0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
        50% { box-shadow: 0 0 15px var(--primary-red); }
        100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
    }
    @keyframes status-pulse1 {
        0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.2); }
        50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
        100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.2); }
    }
    .status-indicator.hidden {
        display: none !important;
    }


    /*Sidebar Loader*/
    .sidebar-loader-container {
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.05);
        overflow: hidden;
        position: relative;
    }
    .loader-fill {
        width: 0%;
        height: 100%;
        background: var(--primary-red);
        box-shadow: 0 0 10px var(--primary-red);
        transition: width 0.3s ease;
    }
    .loader-active {
        animation: loader-pulse 0.6s ease-in-out;
    }
    @keyframes loader-pulse {
        0% { width: 0%; opacity: 1; }
        50% { width: 100%; opacity: 1; }
        100% { width: 100%; opacity: 0; }
    }

    /* Headder Scramble*/
    .animate-boot {
        animation: bootSequence 0.5s ease forwards;
    }
    @keyframes bootSequence {
        0% {
            opacity: 0;
            transform: translateY(10px);
            filter: blur(5px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }
    }
    .widget, .stat-card, .card, .data-table-container {
        opacity: 1; 
    }

    /* Fix for datatable text messing up */
    tr 
    {
        height: 60px; /* Force a consistent row height */
        vertical-align: middle;
    }
    td 
    {
        padding: 12px 8px !important;
        white-space: nowrap;
        text-align: center;  
    }


    .table-header-card
    {
        background: var(--bg-card); 
        border: 1px solid var(--border); 
        border-radius: 8px; 
        padding: 15px; 
        margin-bottom: 1px; 
        display: flex; 
        align-items: center; 
        height: 80px;
        border-top: 1px solid var(--primary-red) !important; 
        border-bottom: 1px solid var(--primary-red) !important; 
        border-left: 1px solid var(--primary-red) !important; 
        border-right: 1px solid var(--primary-red) !important;
    }
    .data-table-container
    {
        border-top: 1px solid var(--primary-red) !important; 
        border-bottom: 1px solid var(--primary-red) !important; 
        border-left: 1px solid var(--primary-red) !important; 
        border-right: 1px solid var(--primary-red) !important;
    }
    .search-container {
        display: flex !important;
        justify-content: space-between !important; /* Pushes Search left, Matches right */
        align-items: center !important;
        width: 100%;
        margin-bottom: 0px;
        gap: 10px;
    }

    .search-box-body
    {
        position: relative; 
        flex-grow: 1;
    }
    .search-box
    {
        padding-left: 35px; 
        border-color: var(--border); 
        text-transform: uppercase; 
        letter-spacing: 1px;
        border-top: 1px solid var(--primary-red) !important; 
        border-bottom: 1px solid var(--primary-red) !important; 
        border-left: 1px solid var(--primary-red) !important; 
        border-right: 1px solid var(--primary-red) !important;
    }
    .search-container > div:first-child {
        flex: 0 1 400px !important; /* Limits search bar to 400px width */
    }
    .pagination-buttons {
        display: flex !important;
        justify-content: flex-end !important; /* Pushes buttons to the right */
        align-items: center !important;
        gap: 10px;
        margin-top: 15px;
        width: 100%;
    }
    .table-scroll-container {
        width: 100%;
        overflow-x: auto;
        border: 1px solid var(--border);
        border-radius: 4px;
    }
    .pagination-controls {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: -30px;
        margin-bottom: 30px;
        background: var(--bg-card); 
        border: 1px solid var(--border); 
        border-radius: 8px; 
        padding: 15px; 
        align-items: center; 
        height: 50px;
        border-top: 1px solid var(--primary-red) !important; 
        border-bottom: 1px solid var(--primary-red) !important; 
        border-left: 1px solid var(--primary-red) !important; 
        border-right: 1px solid var(--primary-red) !important; 
    }
    .pagination-info {
        font-size: 0.8rem;
        color: var(--text-dim);
        white-space: nowrap !important; 
        flex-shrink: 0; /
    }
    .pagination-buttons {
        display: flex !important;
        align-items: center !important; 
        gap: 10px;
        margin: 0; 
    }