/* ============================================
   SCOPE ALL LOGIN STYLES TO LOGIN PAGE ONLY
   ============================================ */

.login-page {
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Center container */
.login-page .login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating glass frame */
.login-page .login-frame {
    display: flex;
    width: 900px;
    max-width: 95%;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left side */
.login-page .login-left {
    width: 35%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.login-page .login-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 30px;
}

/* Right side */
.login-page .login-right {
    width: 65%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-page .login-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(2px);
}

/* Mobile */
@media (max-width: 768px) {
    .login-page .login-frame {
        flex-direction: column;
        height: auto;
    }

    .login-page .login-left,
    .login-page .login-right {
        width: 100%;
    }

    .login-page .login-right {
        height: 200px;
    }
}

/* ============================================
   GLOBAL NOTION-STYLE THEME FOR DASHBOARD
   ============================================ */

:root {
    --accent-blue: #4C6EF5;
    --accent-green: #51CF66;
    --accent-yellow: #FCC419;
    --accent-red: #FF6B6B;

    --bg-card: #ffffff;
    --bg-page: #f7f7f5;

    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.08);
    --radius: 14px;
}

/* Apply soft background to whole app */
body {
    background: var(--bg-page);
}

/* Modern card styling */
.card-modern {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Chart sizing */
.chart-small {
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

/* Center content inside cards */
.card-modern h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Smooth fade-in animation for dashboard cards */
.card-modern {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollable capsule row */
.capsule-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.capsule {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: var(--shadow-soft);
}

/* Colour variants */
.capsule-green {
    background: var(--accent-green);
    color: white;
}

.capsule-red {
    background: var(--accent-red);
    color: white;
}

.capsule-blue {
    background: var(--accent-blue);
    color: white;
}

.capsule-yellow {
    background: var(--accent-yellow);
    color: black;
}

/* Container for the 4 cards */
.tenant-status-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* Each card */
.tenant-status-card {
    min-width: 260px;
    /* mobile scroll width */
    flex: 0 0 auto;
}

/* Desktop: 4 equal columns */
@media (min-width: 768px) {
    .tenant-status-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        overflow: visible;
    }

    .tenant-status-card {
        min-width: unset;
        flex: unset;
    }
}

/* Vertical capsule list */
.capsule-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Capsule styling */
.capsule {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
}

/* Colour variants */
.capsule-green {
    background: var(--accent-green);
    color: white;
}

.capsule-red {
    background: var(--accent-red);
    color: white;
}

.capsule-blue {
    background: var(--accent-blue);
    color: white;
}

.capsule-yellow {
    background: var(--accent-yellow);
    color: black;
}

/* Vertical stack for stats on desktop */
.stats-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* On mobile, stats appear below donut */
@media (max-width: 767px) {
    .stats-vertical-stack {
        margin-top: 20px;
    }
}

/* Smaller stat cards */
.stats-vertical-stack .card-modern {
    padding: 10px 12px !important;
    /* reduce padding */
}

.stats-vertical-stack h6 {
    font-size: 0.85rem;
    /* smaller title */
    margin-bottom: 4px;
}

.stats-vertical-stack .display-6 {
    font-size: 1.4rem;
    /* smaller number */
    margin: 0;
}

/* Optional: tighten spacing between cards */
.stats-vertical-stack {
    gap: 10px !important;
}

.stats-vertical-stack .card-modern {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.capsule-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.form-check.no-indent {
    padding-left: 0 !important;
    margin-left: 0 !important;
}