:root {
    --wqc-bg-dark: #080810;
    --wqc-bg-card: rgba(255, 255, 255, 0.03);
    --wqc-border: rgba(255, 255, 255, 0.12);
    --wqc-text: #ffffff;
    --wqc-text-muted: rgba(255, 255, 255, 0.80);
    --wqc-text-secondary: rgba(255, 255, 255, 0.84);
    --wqc-text-radio: rgba(255, 255, 255, 0.76);
    --wqc-accent: #ffffff;
    --wqc-success: #22c55e;
    --wqc-warning: #f59e0b;
    --wqc-danger: #ef4444;
    --wqc-info: #3b82f6;
    --bs-heading-color: var(--wqc-text);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--wqc-bg-dark);
    color: var(--wqc-text);
    min-height: 100vh;
    position: relative;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

/* Gradient overlay for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(100, 100, 150, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar Styling */
.navbar {
    background: rgba(8, 8, 16, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--wqc-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--wqc-text) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand svg {
    width: 28px;
    height: 28px;
}

.nav-link {
    color: var(--wqc-text-muted) !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--wqc-text-secondary) !important;
}

.nav-link.user-logout {
    color: var(--wqc-text-muted) !important;
    font-size: 0.85rem;
}

.main-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* Card Styling - Glass morphism */
.card {
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: var(--wqc-text);
    --bs-card-subtitle-color: var(--wqc-text-muted);
    --bs-card-border-width: 1px;
    --bs-card-border-color: var(--wqc-border);
    --bs-card-border-radius: 16px;
    --bs-card-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --bs-card-inner-border-radius: calc(16px - 1px);
    --bs-card-cap-padding-y: 0.75rem;
    --bs-card-cap-padding-x: 1.5rem;
    --bs-card-cap-bg: rgba(255, 255, 255, 0.02);
    --bs-card-cap-color: var(--wqc-text-secondary);
    --bs-card-height: auto;
    --bs-card-color: var(--wqc-text-secondary);
    --bs-card-bg: var(--wqc-bg-card);
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;

    background: var(--bs-card-bg);
    color: var(--bs-card-color);
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--bs-card-box-shadow);
}

.card-body {
    padding: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--bs-heading-color);
}

h1 {
    font-size: 2.25rem;
    font-weight: 300;
}

h4 {
    font-weight: 500;
}

.text-muted {
    color: var(--wqc-text-muted) !important;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--wqc-border);
    color: var(--wqc-text);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
    color: var(--wqc-text);
}

.form-control::placeholder {
    color: var(--wqc-text-muted);
}

.form-select option {
    background-color: #1a1a2e;
    color: var(--wqc-text);
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--wqc-border);
    color: var(--wqc-text-muted);
    opacity: 0.7;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--wqc-text-secondary);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--wqc-text-muted) !important;
}

/* Input group styling */
.input-group-text {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--wqc-border);
    color: var(--wqc-text-muted);
}

.input-group > .form-control,
.input-group > .form-select {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--wqc-border);
    color: var(--wqc-text);
}

.input-group:focus-within .input-group-text {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--wqc-text-secondary);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--wqc-text);
    border-color: var(--wqc-text);
    color: var(--wqc-bg-dark);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--wqc-bg-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--wqc-border);
    color: var(--wqc-text-secondary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--wqc-text-secondary);
    color: var(--wqc-text);
}

.btn-outline-secondary {
    border-color: var(--wqc-border);
    color: var(--wqc-text-muted);
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--wqc-text-secondary);
}

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

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.alert-secondary {
    background-color: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.28);
    color: rgba(226, 232, 240, 0.92);
}

/* Text utilities */
.text-primary {
    color: #93c5fd !important;
}

.text-secondary {
    color: rgba(203, 213, 225, 0.9) !important;
}

.text-success {
    color: #bbf7d0 !important;
}

.text-info {
    color: #bfdbfe !important;
}

.text-warning {
    color: #fde68a !important;
}

.text-danger {
    color: #fecaca !important;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* List Groups */
.list-group {
    border-radius: 16px;
    overflow: hidden;
}

.list-group-item {
    background-color: var(--wqc-bg-card);
    border-color: var(--wqc-border);
    color: var(--wqc-text-secondary);
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.list-group-item h5 {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--wqc-text);
}

/* Form Check styling */
.form-check-label {
    color: var(--wqc-text-muted);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--wqc-border);
}

.form-check-input:checked {
    background-color: var(--wqc-text);
    border-color: var(--wqc-text);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
}

.badge.bg-success {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: var(--wqc-success);
}

.badge.bg-primary {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: var(--wqc-info);
}

/* Border styling */
.border {
    border-color: var(--wqc-border) !important;
}

.border-bottom {
    border-color: var(--wqc-border) !important;
}

.border-primary {
    border-color: var(--wqc-info) !important;
}

/* Links */
a {
    color: var(--wqc-text-secondary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    color: var(--wqc-text);
    opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .main-container {
        margin-top: 2rem;
    }

    .card {
        border-radius: 12px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wqc-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--wqc-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Extra utilities */
.shadow-sm {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
