﻿body
{
    transition: background-color .3s ease, color .3s ease;
}

/* ===============================
                   THEME-AWARE COLOR VARIABLES
                   =============================== */
[data-bs-theme="light"]
{
    --sidebar-bg: linear-gradient(180deg, #667eea, #764ba2);
    --sidebar-link: rgba(255,255,255,.9);
    --sidebar-hover: rgba(255,255,255,.18);
}

[data-bs-theme="dark"]
{
    --sidebar-bg: linear-gradient(180deg, #0f2027, #203a43, #2c5364);
    --sidebar-link: rgba(255,255,255,.85);
    --sidebar-hover: rgba(255,255,255,.12);
}

.error {
    margin-top: 15px;
    color: #d9534f;
    font-size: 14px;
}

.validation-message {
    color: #c62828;
    font-size: 0.75rem;
    margin-top: 4px;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
}

.qr-box {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
}

.btn-full-width {
    width:100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn {
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.code-input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 1.2rem;
}

.otp-input {
    width: 100%;
    padding-bottom: 12px;
    padding-top: 12px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 18px;
    letter-spacing: 6px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #d1d9e6;
    outline: none;
    transition: border-color 0.2s;
}

    .otp-input:focus {
        border-color: #4a90e2;
    }

/* ===============================
                   SIDEBAR
                   =============================== */
.sidebar
{
    width: 260px;
    background: var(--sidebar-bg);
    color: #fff;
}

.sidebar-brand
{
    font-size: 1.3rem;
    font-weight: 700;
}

.sidebar .nav-link
{
    color: var(--sidebar-link);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all .25s ease;
}

    .sidebar .nav-link:hover
    {
        background: var(--sidebar-hover);
        transform: translateX(4px);
    }

    .sidebar .nav-link.active
    {
        background: rgba(255,255,255,.28);
    }

/* ===============================
                   CONTENT
                   =============================== */
.content
{
    padding: 28px;
    background: radial-gradient(circle at top, rgba(102,126,234,.08), transparent 40%);
    min-height: 100vh;
}

/* ===============================
                   DESKTOP FIX (IMPORTANT)
                   =============================== */
@media (min-width: 992px)
{
    .offcanvas-lg
    {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        border: none !important;
    }
}

