:root {
    --primary-color: #ffdd00;
    --secondary-color: #ffc107;
    --background-color: #121212;
    --sidebar-width: 250px;
    --header-height: 60px;
    --card-bg: rgba(25, 25, 25, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --enable-animations: 1;
    --border-color: #333333;
    --disabled-bg: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background: linear-gradient(-45deg, #121212, #1a1a1a, #222222, #2a2a2a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    min-height: 100vh;
    color: var(--text-primary);
}

.sidebar {
    width: var(--sidebar-width);
    background-color: #121212;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    position: fixed;
    height: 100vh;
    padding: 1rem;
    transition: transform 0.3s ease;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    border-right: 1px solid var(--primary-color);
}

.logo {
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
}

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.6);
}

nav ul {
    list-style: none;
    margin-top: 2rem;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: #000000;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(255, 221, 0, 0.3);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    opacity: 1 !important;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: block;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #121212;
    backdrop-filter: blur(10px);
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    visibility: visible;
}

#userDisplay {
    color: var(--text-primary);
    font-weight: 500;
    opacity: 1;
    visibility: visible;
}

#logoutBtn {
    padding: 0.75rem 1.5rem;
    background-color: #333333;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(255, 221, 0, 0.4);
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #121212, #1a1a1a, #222222, #2a2a2a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.login-box {
    background-color: #121212;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.6);
}

.login-box h2 i {
    font-size: 2rem;
    color: var(--primary-color);
}

.login-box .input-group {
    margin-bottom: 1.5rem;
}

.login-box .input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.login-box .input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    color: var(--text-primary);
}

.login-box .input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 221, 0, 0.2);
}

.login-box button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: #000000;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-box button[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 221, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-color);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-indicator i {
    color: white;
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.error-toast,
.success-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-toast {
    background-color: #ef4444;
    color: white;
}

.success-toast {
    background-color: #10b981;
    color: white;
}

.error-toast.show,
.success-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.error-toast i,
.success-toast i {
    font-size: 1.25rem;
}

/* Transitions */
.main-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hover effects for interactive elements */
.input-group input:hover {
    border-color: var(--primary-color);
}

nav ul li a i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.user-info i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.6);
}

/* Additional animations */
@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.stat-card:nth-child(1) { --animation-order: 1; }
.stat-card:nth-child(2) { --animation-order: 2; }
.stat-card:nth-child(3) { --animation-order: 3; }

/* Responsive improvements */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Glass morphism effects */
.stat-card, .login-box, .sidebar, header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section Styles */
.section {
    display: none;
    animation: fadeIn 0.5s ease;
    background: transparent;
}

.section.active {
    display: block;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.action-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    color: var(--text-primary);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.2);
}

/* Table Styles with Yellow Theme */
.users-table {
    background-color: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 221, 0, 0.2);
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
}

th {
    background-color: rgba(255, 221, 0, 0.15);
    font-weight: 600;
    color: var(--primary-color);
    padding: 1.25rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-secondary);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 221, 0, 0.1);
}

tbody tr:hover {
    background-color: rgba(255, 221, 0, 0.05);
}

/* Status badge colors with yellow theme */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.active {
    background-color: rgba(255, 221, 0, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-badge.banned {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-badge.expired {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

/* Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.settings-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    margin: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 i {
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Form styles within modal */
.modal .input-group {
    margin-bottom: 20px;
    background: rgba(26, 26, 26, 0.8);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 221, 0, 0.2);
}

.modal .input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.modal .input-group input[type="text"],
.modal .input-group input[type="password"],
.modal .input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: #1a1a1a;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modal .input-group input[type="text"]:focus,
.modal .input-group input[type="password"]:focus,
.modal .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.2);
}

.modal .input-group input[disabled] {
    background-color: var(--disabled-bg, #f3f4f6);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Modal buttons */
.modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.modal .btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.modal .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

/* Dark theme support for modals */
[data-theme="dark"] .modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal .input-group {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .modal .input-group input[type="text"],
[data-theme="dark"] .modal .input-group input[type="password"],
[data-theme="dark"] .modal .input-group select {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .modal .input-group input[disabled] {
    background-color: #334155;
}

[data-theme="dark"] .close-modal:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .modal .btn-secondary {
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Edit button specific styles */
.edit-btn {
    background: var(--primary-color);
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.4);
}

.edit-btn i {
    font-size: 0.9em;
}

/* Theme Support */
:root[data-theme="dark"] {
    --primary-color: #ffdd00;
    --secondary-color: #ffc107;
    --background-color: #121212;
    --card-bg: rgba(25, 25, 25, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #333333;
    --disabled-bg: #2a2a2a;
}

:root[data-theme="light"] {
    --primary-color: #ffc107;
    --secondary-color: #ff9800;
    --background-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --disabled-bg: #e9ecef;
}

/* Animation Controls */
@media (prefers-reduced-motion: reduce) {
    :root {
        --enable-animations: 0;
    }
}

/* Add these styles at the beginning of the file */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    opacity: 1 !important;
}

.dashboard-container.show {
    display: flex;
}

/* Dashboard Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header h1 {
    font-size: 1.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.refresh-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.refresh-button i {
    font-size: 1rem;
}

.refresh-button.loading i {
    animation: spin 1s linear infinite;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card i {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.chart-container {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 1;
}

.chart-container h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-wrapper {
    height: 300px;
    position: relative;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(18, 18, 18, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 221, 0, 0.2);
}

/* Removing the placeholders since we now have real charts */
.pie-chart-placeholder,
.bar-chart-placeholder {
    display: none;
}

.chart-legend {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background-color: #222222;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 221, 0, 0.3);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Error State */
.stat-card.error {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-card.error i {
    color: #ef4444;
}

.stat-card.error h3 {
    color: #ef4444;
}

.stat-card.error p {
    color: #ef4444;
    font-size: 1rem;
}

.stat-card.error small {
    color: #ef4444;
    opacity: 0.8;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .refresh-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for refresh icon */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effects */
.stat-card:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Fix transitions */
.dashboard-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: none;
}

.dashboard-container[style*="display: none"] {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

.dashboard-container[style*="display: flex"] {
    opacity: 1;
    pointer-events: all;
}

/* Ensure content is visible */
.content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

/* Fix sidebar */
.sidebar {
    position: fixed;
    height: 100vh;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

/* Fix login container */
.login-container {
    z-index: 2000;
}

/* Add JSON syntax highlighting */
.json-key {
    color: #f59e0b;
    font-weight: 600;
}

.json-string {
    color: #10b981;
}

.json-number {
    color: #3b82f6;
}

.json-boolean {
    color: #8b5cf6;
    font-weight: 600;
}

/* Checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Input group improvements */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.input-group input[disabled] {
    background-color: var(--disabled-bg);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Status badge colors */
.status-badge.active {
    background-color: rgba(255, 221, 0, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-badge.banned {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-badge.expired {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

/* Lifetime text style */
.lifetime {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(255, 221, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
    border: 1px solid var(--primary-color);
}

/* Enhanced Button Styles */
.btn, 
.action-button,
.refresh-button,
.login-box button[type="submit"] {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.btn::after,
.action-button::after,
.refresh-button::after,
.login-box button[type="submit"]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::after,
.action-button:hover::after,
.refresh-button:hover::after,
.login-box button[type="submit"]:hover::after {
    left: 100%;
}

.btn-primary,
.action-button,
.refresh-button,
.login-box button[type="submit"] {
    background: var(--primary-color);
    color: #000000;
    border: none;
}

.btn-primary:hover,
.action-button:hover,
.refresh-button:hover,
.login-box button[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

#logoutBtn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
}

#logoutBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Table Action Buttons */
.edit-btn,
.delete-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border: none;
}

.edit-btn {
    background: var(--primary-color);
    color: #000000;
}

.delete-btn {
    background: #333333;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.delete-btn:hover {
    background: #444444;
    border-color: var(--secondary-color);
}

/* Loading State */
.btn.loading,
.action-button.loading,
.refresh-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::before,
.action-button.loading::before,
.refresh-button.loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Dark Theme Button Adjustments */
[data-theme="dark"] .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-color);
} 