:root {
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --accent-color: #8b5cf6;
    /* Violet 500 */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #cbd5e1;
    /* Slate 400 */
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', sans-serif !important;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

#wrapper {
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Sidebar Customization */
.sidebar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
}

.sidebar .nav-item .nav-link span {
    font-weight: 500;
    color: var(--text-main);
}

.sidebar .sidebar-brand-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* Navbar/Topbar */
.topbar {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Headings & Text */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

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

.text-primary {
    color: #818cf8 !important;
    /* Indigo 400 - Better contrast on dark bg */
}

.text-info {
    color: #38bdf8 !important;
    /* Sky 400 - Better contrast on dark bg */
}

/* Buttons */
.btn-primary,
button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    border-radius: var(--radius-md) !important;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.btn-primary:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* Cards */
.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid var(--glass-border);
}

.card-header h6 {
    font-size: 1.5rem !important;
    /* Bigger than table headers (0.95rem) */
}

.text-gray-800 {
    color: var(--text-main) !important;
}

/* Forms */
input,
select,
textarea {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2) !important;
    outline: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    color: #ffffff;
    /* User requested pure white values */
}

/* Separating th and td border styles */
th {
    padding: 1rem;
    border-bottom: 3px solid #64748b;
    /* Thick line (Slate 500) for headers */
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Thin line for values */
}

th {
    font-weight: 700;
    /* Increased font weight */
    text-transform: uppercase;
    font-size: 0.95rem;
    /* Increased from 0.75rem */
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

td {
    color: #ffffff !important;
    /* Force white color for values */
    font-size: 1rem;
    /* Ensure readable base size */
}

/* Form Popup */
.form-popup .form-container {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}