:root {
    --rt-primary: #0d6efd;
    --rt-accent: #17a2b8;
    --rt-soft: #f6f9fc;
}

body {
    font-family: "Noto Sans Bengali", "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
}

.card {
    border-radius: 14px;
}

.kpi-card {
    border: 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
}

.kpi-card small {
    color: #6c757d;
}

.tenant-premium .tenant-hero {
    background:
        radial-gradient(circle at 14% 20%, rgba(33, 150, 243, 0.18), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(29, 233, 182, 0.14), transparent 38%),
        linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
    border: 1px solid #d8e6fb;
}

.tenant-premium .tenant-avatar {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #00a6ff);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.26);
}

.tenant-premium .tenant-search {
    border: 1px solid #d8e6fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tenant-premium .premium-kpi {
    border: 1px solid #d8e6fb;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tenant-premium .premium-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.14);
}

.tenant-premium .premium-kpi h5,
.tenant-premium .premium-kpi h6 {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.home-landing .home-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(13, 110, 253, 0.2), transparent 42%),
        radial-gradient(circle at 90% 10%, rgba(25, 135, 84, 0.14), transparent 38%),
        linear-gradient(140deg, #ffffff 0%, #f0f8ff 100%);
    border: 1px solid #cfe0fb;
}

.home-kicker {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.18);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.home-banner-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.home-banner-fallback {
    min-height: 240px;
    border: 1px dashed #b9d0f4;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.15)),
        #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.home-stat {
    border: 1px solid #d8e6fb;
    background: linear-gradient(180deg, #fff 0%, #f5faff 100%);
}

.home-stat h5 {
    font-weight: 700;
}

.home-feature {
    border: 1px solid #d8e6fb;
    background: #fff;
}

.home-feature p {
    color: #5b6776;
}

.home-footer {
    border: 1px solid #d8e6fb;
    background: linear-gradient(180deg, #fff, #f9fcff);
}

.navbar-brand {
    letter-spacing: 0.3px;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.admin-shell {
    display: flex;
    min-height: calc(100vh - 1px);
    background: #dfe4eb;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0b1220 0%, #111947 100%);
    color: #eef3ff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #1f7de9;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    overflow: hidden;
}

.admin-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-brand-title {
    color: #fff;
    font-weight: 700;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 8px 16px;
}

.admin-menu a {
    text-decoration: none;
    color: #cbd7f6;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 0.93rem;
    transition: all 0.2s ease;
}

.admin-menu a:hover {
    color: #fff;
    background: rgba(31, 125, 233, 0.25);
}

.admin-menu a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(24, 123, 222, 0.42), rgba(37, 182, 255, 0.2));
    border: 1px solid rgba(72, 167, 255, 0.45);
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #d8dde5;
    min-height: 74px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 18px;
}

.metric-box {
    border-radius: 14px;
    padding: 14px 14px 12px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.metric-box small {
    display: block;
    opacity: 0.92;
    font-weight: 600;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-blue { background: linear-gradient(135deg, #1f9add, #0e74c9); }
.metric-green { background: linear-gradient(135deg, #1aa879, #0f8b6e); }
.metric-orange { background: linear-gradient(135deg, #f29b0f, #cb6b00); }
.metric-red { background: linear-gradient(135deg, #ef476f, #c01345); }
.metric-purple { background: linear-gradient(135deg, #6d35d7, #4d1ea5); }

.admin-table thead th {
    font-size: 0.84rem;
    white-space: nowrap;
}

.admin-table tbody td {
    font-size: 0.9rem;
}

.admin-panel .admin-kpi-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
}

.admin-panel .admin-tabs .nav-link {
    border-radius: 999px;
    font-weight: 600;
    color: #44546a;
    background: #edf3fb;
    border: 1px solid #dfe7f2;
    padding: 0.45rem 1rem;
}

.admin-panel .admin-tabs .nav-link.active {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.admin-panel .admin-table thead th {
    font-size: 0.85rem;
    white-space: nowrap;
}

.admin-panel .tenant-actions-panel {
    padding: 0.6rem;
    border: 1px solid #dbe6f5;
    background: #f8fbff;
    border-radius: 0.6rem;
}

.admin-panel .admin-qr-preview {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-menu {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .admin-menu a {
        flex-shrink: 0;
    }

    .admin-topbar {
        padding: 12px;
    }

    .admin-content {
        padding: 12px;
    }

    #mainNav.offcanvas {
        width: min(86vw, 340px);
    }

    #mainNav .nav-link,
    #mainNav .btn {
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    .btn {
        border-radius: 10px;
    }
}
