:root {
    /* Bootstrap Color Overrides */
    --bs-primary: #10b981; /* Neon green / Emerald */
    --bs-primary-rgb: 16, 185, 129;
    --bs-primary-border-subtle: #064e3b;
    --bs-primary-bg-subtle: #022c22;
    --bs-primary-text-emphasis: #34d399;
    
    --bs-secondary: #059669; /* Darker green */
    --bs-secondary-rgb: 5, 150, 105;
    
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    
    --bs-body-bg: #121212; /* Dark slate background */
    --bs-body-bg-rgb: 18, 18, 18;
    --bs-body-color: #ffffff; /* Pure white */
    --bs-body-color-rgb: 255, 255, 255;
    
    --bs-card-bg: #1e1e1e;
    --bs-card-border-color: #2e2e2e;
    --bs-card-cap-bg: #1e1e1e;
    --bs-card-color: #ffffff;

    --bs-border-color: #2e2e2e;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.1);

    --bs-link-color: #10b981;
    --bs-link-hover-color: #34d399;

    --bs-nav-link-color: #94a3b8;
    --bs-nav-link-hover-color: #10b981;
    --bs-nav-pills-link-active-color: #121212;
    --bs-nav-pills-link-active-bg: #10b981;

    --bs-list-group-bg: #1e1e1e;
    --bs-list-group-color: #f1f5f9;
    --bs-list-group-border-color: #2e2e2e;

    /* Custom Design Tokens */
    --neon-green-glow: 0 0 15px rgba(16, 185, 129, 0.35);
    --neon-green-glow-strong: 0 0 25px rgba(16, 185, 129, 0.6);
    --glass-bg: rgba(30, 30, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.04);
}

body {
    background-color: var(--bs-body-bg);
    color: #ffffff !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Global White Text Overrides */
p, span, label, h1, h2, h3, h4, h5, h6, table, th, td, .card-title, .text-light, .text-white {
    color: #ffffff !important;
}

/* Muted or secondary gray text overrides to bright off-white */
.text-muted, .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Loader Styles */
.dark-theme-loading {
    background-color: #0f0f0f;
}

/* Glassmorphism Cards */
.dashboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--neon-green-glow);
    transform: translateY(-2px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Side Navigation Bar */
.sidebar-nav {
    width: 250px;
    height: 100vh;
    background-color: #1a1a1a;
    border-right: 1px solid var(--bs-border-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1.5rem 1rem;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    padding: 2rem;
}

/* Onscreen Virtual Keyboard */
.virtual-keyboard {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #161616;
    border-top: 3px solid #10b981;
    z-index: 9999;
    padding: 15px 10px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    transition: bottom 0.25s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    touch-action: none;
}

.virtual-keyboard.show {
    bottom: 0;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.keyboard-key {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 4px;
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 48px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s, border-color 0.1s, box-shadow 0.1s;
    touch-action: manipulation;
}

.keyboard-key:active, .keyboard-key:hover {
    background-color: #10b981;
    color: #121212;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.keyboard-key.special {
    background-color: #333333;
    font-size: 0.95rem;
}

.keyboard-key.space {
    flex-grow: 0.5;
    min-width: 300px;
}

.keyboard-key.shift-active {
    background-color: #10b981;
    color: #121212;
    border-color: #10b981;
}

.keyboard-key.numpad-key {
    background-color: #202020;
    border-color: #303030;
    font-weight: 600;
}

/* Touch friendly forms & Unified Premium Input Groups */
.form-control {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.05rem;
}

.form-control:focus {
    background-color: #242424;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: var(--neon-green-glow);
}

.input-group {
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    background-color: #1e1e1e;
    overflow: hidden;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group:focus-within {
    border-color: #10b981 !important;
    box-shadow: var(--neon-green-glow) !important;
    background-color: #242424;
}

.input-group .form-control {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding-left: 8px;
}

.input-group .input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding-left: 14px;
    padding-right: 6px;
}

.input-group .btn {
    border: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.input-group .btn:hover {
    color: #10b981 !important;
}

.input-group:focus-within .input-group-text {
    color: #10b981 !important;
}

/* Global Placeholder Text Style */
::placeholder {
    color: #ffffff !important;
    opacity: 0.75 !important;
}

.form-control::placeholder {
    color: #ffffff !important;
    opacity: 0.75 !important;
}

/* Custom visual cards and animations */
.glow-text-green {
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* Navigation items link */
.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.nav-link-custom i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.nav-link-custom:hover {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.nav-link-custom.active {
    color: #121212;
    background-color: #10b981;
    box-shadow: var(--neon-green-glow);
}

/* Clock Widget big digit styling */
.clock-time {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Custom error UI design overlay */
#blazor-error-ui {
    background: #dc3545 !important;
    color: white !important;
    border-top: 2px solid #ff8585;
}
#blazor-error-ui a {
    color: #ffc107 !important;
    text-decoration: underline;
}
