/* Reset and Core Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #050810;
    --bg-panel: #111a2d;
    --bg-card-hover: rgba(30, 41, 59, 0.75);
    --border-color: rgba(255, 255, 255, 0.16);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-emerald: #10b981;
    --color-rose: #f43f5e;
    --color-indigo: #6366f1;
    --color-amber: #f59e0b;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Outfit', sans-serif;
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    letter-spacing: -0.02em;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* App Container Layout */
.app-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #142035 0%, #0a0f1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
    border: 2px solid #38bdf8;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.logo-icon-badge:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.header-title-container {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: var(--text-primary);
}

.brand-accent {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: 0.15rem;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.status-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-indicator.online {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-indicator.online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald);
    margin-right: 0.15rem;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-indicator.offline {
    background-color: rgba(244, 63, 94, 0.1);
    color: var(--color-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.status-indicator.offline::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-rose);
    box-shadow: 0 0 8px var(--color-rose);
    margin-right: 0.15rem;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Workspace Stacked Layout */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Panel Design */
.panel {
    background: linear-gradient(135deg, #142035 0%, #0a0f1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color var(--transition-fast);
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.event-log-panel {
    height: 420px;
}

.clients-panel {
    height: 580px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.panel-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Search Box inside Directory Header */
.search-header {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-input {
    background-color: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    width: 210px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    outline: none;
    border-color: #38bdf8;
    width: 260px;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: rgba(10, 15, 30, 0.95);
}

/* Tables Styling */
.table-container {
    overflow-y: auto;
    flex-grow: 1;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th {
    font-weight: 700;
    color: #ffffff;
    padding: 0.85rem 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background-color: #86198f;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    vertical-align: middle;
    color: rgba(248, 250, 252, 0.95);
    transition: background-color var(--transition-fast);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Custom Table Badges */
.event-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
}

.event-badge.login {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.event-badge.logout {
    background-color: rgba(244, 63, 94, 0.12);
    color: var(--color-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 0 !important;
    font-style: italic;
}

/* Client Table specifics */
.user-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.user-username {
    font-weight: 600;
    color: var(--text-primary);
}

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

.ip-cell {
    font-family: monospace;
    color: var(--text-secondary);
}

.count-cell {
    font-weight: 700;
    text-align: center;
}

.count-cell.high {
    color: var(--color-rose);
}

.count-cell.low {
    color: var(--text-secondary);
}

.mac-address {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Filter Controls & Status Dots */
.filter-controls {
    display: flex;
    gap: 0.25rem;
    background-color: rgba(15, 23, 42, 0.6);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.filter-btn:hover:not(.active) {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.status-dot.active {
    background-color: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald);
    animation: dot-pulse-green 1.8s infinite;
}

.status-dot.offline {
    background-color: var(--color-rose);
    box-shadow: 0 0 8px var(--color-rose);
    animation: dot-pulse-red 1.8s infinite;
}

@keyframes dot-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes dot-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
    70% { box-shadow: 0 0 0 5px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.uptime-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.uptime-badge.active {
    color: var(--color-emerald);
}

.uptime-badge.offline {
    color: var(--text-secondary);
}

/* Health Bar (Header) */
.health-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 250px;
}

.health-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.health-bar-label strong {
    color: var(--color-emerald);
    font-weight: 700;
}

.health-bar-track {
    height: 6px;
    background-color: rgba(30, 41, 59, 0.6);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.health-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f43f5e 0%, #f59e0b 50%, #10b981 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Action Buttons */
.action-btn {
    background-color: rgba(51, 65, 85, 0.5);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.action-btn:hover:not(:disabled) {
    background-color: rgba(71, 85, 105, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.danger-btn {
    background-color: rgba(244, 63, 94, 0.1);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.25);
}

.danger-btn:hover:not(:disabled) {
    background-color: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #ffffff;
}

.success-btn {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.success-btn:hover:not(:disabled) {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

/* Row-level User Reset Button */
.reset-user-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.reset-user-btn:hover {
    opacity: 1;
    background-color: #33415550;
}

/* Urgency Severity Badges */
.count-cell.normal {
    color: var(--color-emerald);
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.count-cell.warning {
    color: var(--color-amber);
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.count-cell.danger {
    color: var(--color-rose);
    background-color: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Detailed Customer Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}
.modal.open {
    display: flex;
}
.modal-content {
    background-color: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modal-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}
.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.close-btn:hover {
    color: var(--text-primary);
}
.modal-body {
    padding: 1.5rem;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.detail-item.full-width {
    grid-column: span 2;
}
.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Password Toggle field inside Modal */
.password-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0f172a50;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    width: 100%;
}
.password-input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.95rem;
    flex-grow: 1;
    outline: none;
    width: 100%;
}
.toggle-password-btn {
    background-color: #33415580;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.toggle-password-btn:hover {
    background-color: #475569;
    color: var(--text-primary);
}

/* Row interactive cursor */
#table-users tbody tr {
    cursor: pointer;
}

/* Toast styling */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}
.toast {
    background-color: #1e293bdd;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s, transform 0.3s;
}
.toast.success {
    border-left: 4px solid var(--color-emerald);
}
.toast.error {
    border-left: 4px solid var(--color-rose);
}
.toast.info {
    border-left: 4px solid var(--color-indigo);
}
.toast.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}
@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Router Cards Grid & Cards */
.router-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.router-card {
    background: linear-gradient(135deg, #142035 0%, #0a0f1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.router-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.25);
}

.router-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.75rem;
}

.router-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.router-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    background-color: rgba(30, 41, 59, 0.3);
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.06);
}

.stat-item .stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.stat-item .stat-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-val.active-val { 
    color: var(--color-emerald); 
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.stat-val.offline-val { 
    color: var(--color-rose); 
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}
.stat-val.secrets-val { 
    color: #818cf8; 
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.25);
}
.stat-val.incidents-val { 
    color: var(--color-amber); 
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.router-actions {
    margin-top: 0.25rem;
}

.router-reset-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background-color: rgba(244, 63, 94, 0.05);
    color: rgba(244, 63, 94, 0.85);
    border: 1px solid rgba(244, 63, 94, 0.2);
    transition: all 0.2s ease;
}

.router-reset-btn:hover:not(:disabled) {
    background-color: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.router-reset-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Login Overlay Styling */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #070a13;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.login-card {
    background: linear-gradient(135deg, #0f172a 0%, #090d16 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.login-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text-primary);
}

.login-title .brand-accent {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.login-title .light-text {
    color: #f8fafc;
}

.login-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.login-input {
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.login-input:focus {
    outline: none;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background-color: #0d1322;
}

.login-error {
    color: var(--color-rose);
    background-color: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 0.85rem;
    justify-content: center;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #6366f1 0%, #5c60f5 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4f46e5 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* User Management Modal Customizations */
.user-mgmt-content {
    max-width: 850px !important;
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.role-badge.administrator {
    background-color: #8b5cf615;
    color: #a78bfa;
    border: 1px solid #8b5cf630;
}

.role-badge.write {
    background-color: #10b98115;
    color: var(--color-emerald);
    border: 1px solid #10b98130;
}

.role-badge.read {
    background-color: #3b82f615;
    color: #60a5fa;
    border: 1px solid #3b82f630;
}

.user-table-container td {
    padding: 0.6rem 0.5rem !important;
}

/* Modal Title and Logo Badging */
.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
    border: 1.5px solid #38bdf8;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.modal-logo-badge:hover {
    transform: rotate(5deg) scale(1.05);
}

.modal-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(15, 23, 42, 0.25);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Dashboard Footer */
.app-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
    letter-spacing: 0.025em;
}
