:root {
    /* Color Palette - Deep Dark & Vibrant Accents */
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #425064;
    --border: rgba(255, 255, 255, 0.1);

    /* Effects */
    --glass: blur(12px) saturate(180%);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Layout Structure (Removed to prevent conflict with Spica) */

/* Card System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Typography */
h1 {
    font-size: 2.0rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: #000000;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border);
    color: #0a0b10;
}

/* Badge */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #10b981;
    background: rgba(6, 78, 59, 0.9);
}

.toast-error {
    border-left: 4px solid #ef4444;
    background: rgba(127, 29, 29, 0.9);
}

/* Invalid Feedback */
.form-control.is-invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ef4444;
}

/* Spinner */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 8px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.app-main .app-content-header {
    padding: 1rem 0.5rem;
    color: #000;
}

.sidebar-menu .nav-link p,
.app-sidebar .brand-text,
.app-sidebar .logo-xs,
.app-sidebar .logo-xl {
    color: #000;
}

.navbar-expand .navbar-nav .nav-link {
    color: #000;
}

/* Glassmorphism Login Form */
.auth-form-glass {
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-form-glass:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Force text and labels to be white */
.auth-form-glass h2,
.auth-form-glass .text-primary {
    color: #3b1beb !important;
}

.auth-form-glass h4,
.auth-form-glass h6,
.auth-form-glass p,
.auth-form-glass label,
.auth-form-glass .auth-link,
.auth-form-glass .text-muted,
.auth-form-glass .form-check-label {
    color: #222224 !important;
}

/* Rounded corners and borders for input groups */
.auth-form-glass .input-group {
    border: 1px solid #3b1beb !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.auth-form-glass .input-group-text {
    border: none !important;
    background: transparent !important;
    color: #3b1beb !important;
}

.auth-form-glass .input-group-text i {
    font-size: 1.4rem !important;
}

.auth-form-glass .form-control {
    background: transparent !important;
    color: #222224 !important;
    border: none !important;
}

/* Dashboard Card Styling */
.widget-visitor-card {
    border-radius: 20px !important;
    overflow: hidden;
}

.widget-visitor-card .card-body {
    padding: 1rem 1.25rem !important;
}

.widget-visitor-card h2 {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
}

.widget-visitor-card h6 {
    font-size: 0.875rem !important;
}

.widget-visitor-card i[data-feather] {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem !important;
}

.widget-visitor-card a {
    display: inline-block !important;
    margin-top: 1rem !important;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.widget-visitor-card a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #ffffff !important;
}

.widget-visitor-card a i {
    width: 16px !important;
    height: 16px !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
    margin-left: 4px;
}

.dashboard-row {
    margin-bottom: 2rem !important;
}

/* Fix checkbox visibility */
.auth-form-glass .form-check-input {
    position: static !important;
    opacity: 1 !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
    width: 16px !important;
    height: 16px !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}
.auth-form-glass .form-check-label .input-helper {
    display: none !important;
}
.auth-form-glass .form-check-label {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
}

.auth-form-glass .form-control::placeholder {
    color: rgba(34, 34, 36, 0.5) !important;
}

.auth-form-glass .form-control:focus {
    background: rgba(59, 27, 235, 0.05) !important;
    color: #222224 !important;
}