:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #ef4444;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

.view {
    display: none;
    width: 100%;
    height: 100vh;
}
.view.active {
    display: flex;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* --- LOGIN SCREEN --- */
#login-screen {
    align-items: center;
    justify-content: center;
}

.login-panel {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-panel h2 {
    margin-bottom: 8px;
}
.login-panel p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.input-group {
    text-align: left;
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent);
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
}
.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 20px;
}

/* --- DASHBOARD --- */
.sidebar {
    width: 260px;
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.brand h2 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 8px;
}

.nav-links a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-links li.active a, .nav-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.bottom-nav {
    margin-top: auto;
}
.bottom-nav button {
    width: 100%;
}

.content {
    flex-grow: 1;
    padding: 32px;
    height: 100vh;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

#search-input {
    padding: 10px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-main);
    outline: none;
    width: 250px;
}

.table-container {
    padding: 16px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

td {
    font-size: 0.9rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}
.status.suspended {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.action-btns {
    display: flex;
    gap: 8px;
}
.action-btns button {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.active {
    display: flex;
}

.modal-content {
    padding: 32px;
    width: 400px;
}

.modal-content h3 {
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    width: auto;
}
. p a g i n a t i o n - c o n t a i n e r   {   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   c e n t e r ;   g a p :   8 p x ;   m a r g i n - t o p :   1 6 p x ;   f l e x - w r a p :   w r a p ;   }  
 . p a g i n a t i o n - c o n t a i n e r   b u t t o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ;   b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   p a d d i n g :   6 p x   1 2 p x ;   b o r d e r - r a d i u s :   4 p x ;   c u r s o r :   p o i n t e r ;   }  
 . p a g i n a t i o n - c o n t a i n e r   b u t t o n . a c t i v e   {   b a c k g r o u n d :   # 6 3 6 6 f 1 ;   b o r d e r - c o l o r :   # 6 3 6 6 f 1 ;   f o n t - w e i g h t :   b o l d ;   }  
 . p a g i n a t i o n - c o n t a i n e r   b u t t o n : h o v e r : n o t ( . a c t i v e )   {   b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ;   }  
 