/* Base Variables */
:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --success: #15803d;
    --warning: #b45309;
    --error: #dc2626;
    --info: #1d4ed8;
    
    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-light: #333333;
    
    /* Background Colors */
    color: #111827; /* Force darker font for legibility */
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-light: rgba(243, 244, 246, 0.9);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #000000;
    background: linear-gradient(135deg, #f6f7ff 0%, #e9eeff 100%);
    min-height: 100vh;
}

p {
    color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Card Styles */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #000000;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
        padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
        background: #ceb5d7;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: #ceb5d7 !important;
    color: #111827 !important;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-error {
    background: var(--error);
    color: white;
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-ghost:hover {
    background: var(--primary);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-light);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Alert Styles */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
}

.alert-success {
    border-color: var(--success);
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.alert-info {
    border-color: var(--info);
    color: var(--info);
    background: rgba(59, 130, 246, 0.1);
}

.alert-warning {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(234, 179, 8, 0.1);
}

.alert-error {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-warning { background: rgba(234, 179, 8, 0.1); color: var(--warning); }
.badge-error { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.badge-guest { background: rgba(99, 102, 241, 0.1); color: var(--primary); }

/* Table Styles */
.table-container {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    background: rgba(243, 244, 246, 0.5);
    font-weight: 600;
    color: var(--text-secondary);
}

.table tr:hover {
    background: rgba(243, 244, 246, 0.3);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.card.slide-in-left h2,
.card.slide-in-left h3,
.card.slide-in-left p,
.card.slide-in-left li,
.card.slide-in-left strong {
    color: #000000 !important;
}

.user-info {
    color: #000000;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.user-info h3 {
    color: #000000 !important;
    font-weight: 700;
    margin-top: 0;
}

.user-info p,
.user-info strong {
    color: #000000 !important;
    font-weight: 500;
}

.user-info code {
    background: #ffffff;
    color: #000000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    font-family: 'Courier New', monospace;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header Styles */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.header h1 {
    color: #374151;
}

.header p {
    color: #6b7280;
}

.header .btn {
    color: #111827 !important;
}

.header .btn-ghost {
    color: #111827 !important;
}

.header .btn-primary {
    color: #ffffff !important;
}

.header .btn-secondary {
    color: #111827 !important;
}

.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Icon Styles */
.icon {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Stats Grid and Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card > div:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Alert Styles */
.alert {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert h3, .alert h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.alert p {
    margin: 0.5rem 0;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    color: #001a4d;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #004d1a;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border-left: 4px solid #eab308;
    color: #664d00;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-info {
    background: #dbeafe;
    color: #0c4a6e;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-guest {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.glass-card h3 {
    color: white;
    margin-top: 0;
}

.glass-card h4 {
    color: white;
    margin-top: 0;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.9);
}

.glass-card ul {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.glass-card code {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
}

.table thead {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--glass-border);
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card, .glass-card {
        padding: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}