:root {
    --bg: #05030f;
    --surface: rgba(18, 16, 34, 0.85);
    --surface-muted: rgba(25, 22, 47, 0.65);
    --border: rgba(93, 80, 150, 0.35);
    --border-strong: rgba(148, 163, 184, 0.35);
    --text-primary: #f6f7ff;
    --text-secondary: #8c92b7;
    --text-heading-color: #ffffff;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --success-color: #2CB67D;
    --danger-color: #E53E3E;
    --warning-color: #F59E0B;
    --glow-primary: rgba(99, 102, 241, 0.35);
    --glow-secondary: rgba(236, 72, 153, 0.25);
    --glass-blur: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

html {
    color-scheme: dark;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(120% 120% at 10% 10%, rgba(99, 102, 241, 0.3), transparent 65%),
        radial-gradient(120% 120% at 90% 15%, rgba(236, 72, 153, 0.25), transparent 60%),
        radial-gradient(140% 140% at 45% 100%, rgba(14, 165, 233, 0.18), transparent 70%),
        var(--bg);
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    z-index: -1;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.3),
        transparent 35vw
    );
    mix-blend-mode: screen;
    transition: background 0.25s ease;
}

body::after {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.65), transparent 60%),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.035), rgba(148, 163, 184, 0.035) 1px, transparent 1px, transparent 56px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.03), rgba(148, 163, 184, 0.03) 1px, transparent 1px, transparent 56px);
    z-index: -3;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading-color);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.9375rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logout-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger-color);
}

.beta-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-left: 0.5rem;
}

.card {
    background: linear-gradient(140deg, rgba(25, 22, 47, 0.88), rgba(17, 16, 34, 0.75));
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 30px 60px rgba(10, 15, 35, 0.55);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 70px rgba(10, 15, 35, 0.6);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading-color);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.01em;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: linear-gradient(140deg, rgba(25, 22, 47, 0.6), rgba(17, 16, 34, 0.5));
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(140deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c7cf5, #b866f8);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.2), rgba(220, 38, 38, 0.15));
    border-color: rgba(229, 62, 62, 0.4);
    color: var(--danger-color);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.3), rgba(220, 38, 38, 0.25));
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.input-field,
input.input-field,
textarea.input-field,
select.input-field {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: rgba(15, 23, 42, 0.4) !important;
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary) !important;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    appearance: none;
    backdrop-filter: blur(12px);
}

.input-field:focus,
input.input-field:focus,
textarea.input-field:focus,
select.input-field:focus {
    outline: none !important;
    border-color: var(--accent-primary);
    background-color: rgba(15, 23, 42, 0.6) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-field::placeholder,
input.input-field::placeholder,
textarea.input-field::placeholder {
    color: var(--text-secondary) !important;
}

/* Override Tailwind default input styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    background-color: rgba(15, 23, 42, 0.4) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
}

.status-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    display: none;
}

.status-message.success {
    display: block;
    background: rgba(44, 182, 125, 0.15);
    border: 1px solid rgba(44, 182, 125, 0.3);
    color: var(--success-color);
}

.status-message.error {
    display: block;
    background: rgba(229, 62, 62, 0.15);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: var(--danger-color);
}

.status-message.info {
    display: block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9375rem;
    margin: 0;
}

.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .page-container {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }
}

