:root {
    --primary-color: #023430; /* Updated Dark Teal from Image */
    --secondary-color: #1e293b; /* Slate 800 */
    --accent-color: #023430; /* Updated Dark Teal */
    --accent-gradient: #023430; /* Updated Dark Teal */
    --text-color: #1e293b;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f1f5f9 !important; /* Light Slate 100 for subtle contrast */
    background-image: none !important;
    background-attachment: fixed;
    color: #0f172a !important; 
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

.login-page-body {
    background-color: #023430 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(26, 178, 107, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(100, 255, 218, 0.1) 0, transparent 50%) !important;
    color: #ffffff !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.98); /* Less transparent for more body */
    border: 1px solid #e2e8f0; /* More distinct light border */
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(2, 52, 48, 0.08), 0 8px 10px -6px rgba(2, 52, 48, 0.08);
}

.stats-card-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 1.5rem;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.stats-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(2, 52, 48, 0.15);
}

.card-teal {
    background: linear-gradient(135deg, #023430 0%, #034d47 100%);
    color: #ffffff !important;
}

.card-teal .stats-value, .card-teal .text-muted {
    color: #ffffff !important;
}

.card-teal .opacity-75 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.glass-navbar {
    background-color: var(--primary-color) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .nav-link:hover {
    color: #ffffff !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: #034d47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 52, 48, 0.3);
}

.form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #ffffff;
    color: #1e293b;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(2, 52, 48, 0.1);
}

/* Text visibility helpers */
.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: #64748b !important;
}

.text-accent-color {
    color: var(--accent-color) !important;
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #023430;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.bg-soft-teal {
    background-color: rgba(2, 52, 48, 0.1) !important;
}

.text-teal {
    color: #023430 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #034d47;
}
footer {
    background-color: #023430 !important; /* Updated Dark Teal */
    color: #e6f1ff !important;
    border-top: 1px solid rgba(100, 255, 218, 0.05) !important;
    margin-top: 0 !important;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}

.footer-link {
    color: #cbd5e1; /* Brighter Slate 300 */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    padding-top: 2rem;
    color: #94a3b8; /* Brighter Slate 400 */
    font-size: 0.85rem;
}

footer .text-muted {
    color: #94a3b8 !important; /* Brighter muted text inside footer */
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Custom Modal Styling */
.custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px); /* Add slight blur to background */
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scroll interaction */
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let events pass through wrapper */
}

.custom-modal-dialog {
    width: 90%;
    max-width: 800px;
    margin: auto;
    pointer-events: auto; /* Re-enable events for dialog */
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

