:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --dark-light: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #cbd5e1;

    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Card */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--gradient-2);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(240, 147, 251, 0.4);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray);
}

/* Dashboard */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
}

.navbar-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.dashboard-body {
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.primary {
    background: var(--gradient-1);
}

.stat-icon.secondary {
    background: var(--gradient-2);
}

.stat-icon.success {
    background: var(--success);
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--dark);
}

.stat-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Table */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

thead {
    background: var(--light);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-light);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

tr:hover {
    background: var(--light);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Alert */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Utilities */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-gap {
    gap: 1rem;
}

/* QR Code Display */
.qr-container {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius);
    margin: 1rem 0;
}

.qr-container img {
    max-width: 300px;
    border: 4px solid var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}/ *   U X   I m p r o v e m e n t s   * /  
  
 / *   1 .   T a b l e   I m p r o v e m e n t s   * /  
 t a b l e   {  
         w i d t h :   1 0 0 % ;  
         b o r d e r - c o l l a p s e :   s e p a r a t e ;  
         b o r d e r - s p a c i n g :   0 ;  
         m a r g i n - t o p :   1 r e m ;  
 }  
  
 t h   {  
         b a c k g r o u n d :   v a r ( - - l i g h t ) ;  
         p a d d i n g :   1 r e m ;  
         t e x t - a l i g n :   l e f t ;  
         f o n t - w e i g h t :   6 0 0 ;  
         c o l o r :   v a r ( - - d a r k - l i g h t ) ;  
         b o r d e r - b o t t o m :   2 p x   s o l i d   v a r ( - - g r a y - l i g h t ) ;  
 }  
  
 t d   {  
         p a d d i n g :   1 r e m ;  
         b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - g r a y - l i g h t ) ;  
         v e r t i c a l - a l i g n :   m i d d l e ;  
 }  
  
 t r : l a s t - c h i l d   t d   {  
         b o r d e r - b o t t o m :   n o n e ;  
 }  
  
 t r : h o v e r   t d   {  
         b a c k g r o u n d - c o l o r :   # f 8 f a f c ;  
 }  
  
 / *   2 .   E m p t y   S t a t e   * /  
 . e m p t y - s t a t e   {  
         t e x t - a l i g n :   c e n t e r ;  
         p a d d i n g :   4 r e m   2 r e m ;  
         b a c k g r o u n d :   v a r ( - - l i g h t ) ;  
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s ) ;  
         b o r d e r :   2 p x   d a s h e d   v a r ( - - g r a y - l i g h t ) ;  
         m a r g i n :   2 r e m   0 ;  
 }  
  
 . e m p t y - s t a t e - i c o n   {  
         f o n t - s i z e :   4 r e m ;  
         m a r g i n - b o t t o m :   1 r e m ;  
         o p a c i t y :   0 . 5 ;  
 }  
  
 . e m p t y - s t a t e   h 3   {  
         c o l o r :   v a r ( - - d a r k ) ;  
         m a r g i n - b o t t o m :   0 . 5 r e m ;  
 }  
  
 . e m p t y - s t a t e   p   {  
         c o l o r :   v a r ( - - g r a y ) ;  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
 }  
  
 / *   3 .   F o r m   I m p r o v e m e n t s   * /  
 . f o r m - c o n t r o l : f o c u s   {  
         b o r d e r - c o l o r :   v a r ( - - p r i m a r y ) ;  
         b o x - s h a d o w :   0   0   0   4 p x   r g b a ( 9 9 ,   1 0 2 ,   2 4 1 ,   0 . 1 ) ;  
         o u t l i n e :   n o n e ;  
 }  
  
 / *   4 .   N a v b a r   A c t i v e   S t a t e   * /  
 . n a v b a r - m e n u   a . a c t i v e   {  
         c o l o r :   v a r ( - - p r i m a r y ) ;  
         f o n t - w e i g h t :   6 0 0 ;  
         p o s i t i o n :   r e l a t i v e ;  
 }  
  
 . n a v b a r - m e n u   a . a c t i v e : : a f t e r   {  
         c o n t e n t :   ' ' ;  
         p o s i t i o n :   a b s o l u t e ;  
         b o t t o m :   - 4 p x ;  
         l e f t :   0 ;  
         w i d t h :   1 0 0 % ;  
         h e i g h t :   2 p x ;  
         b a c k g r o u n d :   v a r ( - - p r i m a r y ) ;  
         b o r d e r - r a d i u s :   2 p x ;  
 }  
  
 / *   5 .   B a d g e   I m p r o v e m e n t s   * /  
 . b a d g e   {  
         p a d d i n g :   0 . 3 5 e m   0 . 8 e m ;  
         b o r d e r - r a d i u s :   9 9 9 p x ;  
         f o n t - s i z e :   0 . 7 5 r e m ;  
         f o n t - w e i g h t :   6 0 0 ;  
         d i s p l a y :   i n l i n e - f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 2 5 r e m ;  
 }  
  
 . b a d g e - s u c c e s s   {  
         b a c k g r o u n d :   # d c f c e 7 ;  
         c o l o r :   # 1 6 6 5 3 4 ;  
 }  
  
 . b a d g e - w a r n i n g   {  
         b a c k g r o u n d :   # f e f 3 c 7 ;  
         c o l o r :   # 9 2 4 0 0 e ;  
 }  
  
 . b a d g e - d a n g e r   {  
         b a c k g r o u n d :   # f e e 2 e 2 ;  
         c o l o r :   # 9 9 1 b 1 b ;  
 }  
  
 . b a d g e - i n f o   {  
         b a c k g r o u n d :   # e 0 f 2 f e ;  
         c o l o r :   # 0 7 5 9 8 5 ;  
 }  
  
 / *   6 .   C a r d   H o v e r   E f f e c t   E n h a n c e m e n t   * /  
 . c a r d   {  
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   e a s e ,   b o x - s h a d o w   0 . 3 s   e a s e ;  
 }  
  
 . c a r d : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e Y ( - 4 p x ) ;  
         b o x - s h a d o w :   0   2 0 p x   2 5 p x   - 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ,   0   1 0 p x   1 0 p x   - 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 4 ) ;  
 }  
 