html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f6f8fb;
    color: #182230;
}


/* =========================
   LAYOUT
   ========================= */

.app-layout {
    min-height: 100vh;
    display: flex;
}


/* =========================
   SIDEBAR
   ========================= */

.app-sidebar {
    width: 250px;
    min-width: 250px;
    background: #ffffff;
    border-right: 1px solid #e8edf3;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(15, 23, 42, .03);
}

.sidebar-brand {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #eef1f5;
}

    .sidebar-brand a {
        text-decoration: none;
        color: #172033;
        font-size: 19px;
        font-weight: 750;
        letter-spacing: -.3px;
    }

.sidebar-nav {
    padding: 18px 12px;
    flex: 1;
}

.nav-section {
    font-size: 10px;
    font-weight: 700;
    color: #9aa4b2;
    letter-spacing: .1em;
    padding: 15px 12px 7px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    margin-bottom: 4px;
    border-radius: 9px;
    text-decoration: none;
    color: #596579;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

    .sidebar-link i {
        width: 20px;
        font-size: 17px;
        text-align: center;
        color: #8b96a7;
        transition: color .15s ease;
    }

    .sidebar-link:hover {
        background: #f3f6fa;
        color: #172033;
        transform: translateX(2px);
    }

        .sidebar-link:hover i {
            color: #2563eb;
        }


    /* ACTIVE MENU */

    .sidebar-link.active {
        background: #eef4ff;
        color: #2563eb;
        font-weight: 600;
    }

        .sidebar-link.active i {
            color: #2563eb;
        }


/* =========================
   SIDEBAR FOOTER
   ========================= */

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #eef1f5;
}


/* =========================
   MAIN
   ========================= */

.app-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 72px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    padding: 0 28px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-size: 18px;
    font-weight: 650;
    color: #182230;
    flex: 1;
}

.sidebar-toggle,
.theme-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
    color: #475569;
}

    .sidebar-toggle:hover,
    .theme-toggle:hover {
        background: #f1f5f9;
    }

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    color: #475569;
}


/* =========================
   CONTENT
   ========================= */

.app-content {
    flex: 1;
    padding: 30px;
}


/* =========================
   BOOTSTRAP CARD IMPROVEMENT
   ========================= */

.card {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .025), 0 8px 24px rgba(15, 23, 42, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(15, 23, 42, .04), 0 14px 30px rgba(15, 23, 42, .07);
    }

.card-body {
    padding: 20px;
}


/* =========================
   BUTTONS
   ========================= */

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    box-shadow: 0 2px 5px rgba(37, 99, 235, .18);
}


/* =========================
   TABLES
   ========================= */

.table {
    margin-bottom: 0;
}

    .table > :not(caption) > * > * {
        padding: 12px 14px;
    }

    .table thead th {
        font-size: 12px;
        font-weight: 650;
        color: #64748b;
        background: #f8fafc;
        border-bottom: 1px solid #e8edf3;
    }


/* =========================
   FOOTER
   ========================= */

.app-footer {
    padding: 18px 30px;
    border-top: 1px solid #e8edf3;
    color: #9aa4b2;
    font-size: 12px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 767.98px) {

    .app-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        bottom: 0;
        z-index: 1050;
        transition: left .2s ease;
        box-shadow: 8px 0 30px rgba(15, 23, 42, .12);
    }

        .app-sidebar.open {
            left: 0;
        }

    .sidebar-toggle {
        display: flex;
    }

    .app-topbar {
        height: 64px;
        padding: 0 14px;
    }

    .topbar-title {
        font-size: 16px;
    }

    .app-content {
        padding: 18px 14px;
    }

    .app-footer {
        padding: 14px;
    }

    .card:hover {
        transform: none;
    }
}


/* =========================
   DARK THEME
   ========================= */

html[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}

html[data-theme="dark"] .app-sidebar {
    background: #111827;
    border-right-color: #1f2937;
    box-shadow: 2px 0 12px rgba(0, 0, 0, .15);
}

html[data-theme="dark"] .sidebar-brand {
    border-bottom-color: #1f2937;
}

    html[data-theme="dark"] .sidebar-brand a {
        color: #f1f5f9;
    }

html[data-theme="dark"] .nav-section {
    color: #64748b;
}

html[data-theme="dark"] .sidebar-link {
    color: #94a3b8;
}

    html[data-theme="dark"] .sidebar-link i {
        color: #64748b;
    }

    html[data-theme="dark"] .sidebar-link:hover {
        background: #1e293b;
        color: #f1f5f9;
    }

        html[data-theme="dark"] .sidebar-link:hover i {
            color: #60a5fa;
        }

    html[data-theme="dark"] .sidebar-link.active {
        background: #172554;
        color: #60a5fa;
    }

        html[data-theme="dark"] .sidebar-link.active i {
            color: #60a5fa;
        }

html[data-theme="dark"] .sidebar-footer {
    border-top-color: #1f2937;
}

html[data-theme="dark"] .app-topbar {
    background: rgba(17, 24, 39, .92);
    border-bottom-color: #1f2937;
}

html[data-theme="dark"] .topbar-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .sidebar-toggle,
html[data-theme="dark"] .theme-toggle {
    color: #94a3b8;
}

    html[data-theme="dark"] .sidebar-toggle:hover,
    html[data-theme="dark"] .theme-toggle:hover {
        background: #1e293b;
    }

html[data-theme="dark"] .card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .15), 0 8px 24px rgba(0, 0, 0, .18);
}

    html[data-theme="dark"] .card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, .20), 0 14px 30px rgba(0, 0, 0, .25);
    }

html[data-theme="dark"] .table {
    color: #e2e8f0;
}

    html[data-theme="dark"] .table thead th {
        background: #1e293b;
        color: #94a3b8;
        border-bottom-color: #334155;
    }

    html[data-theme="dark"] .table > :not(caption) > * > * {
        border-bottom-color: #1f2937;
    }

html[data-theme="dark"] .app-footer {
    border-top-color: #1f2937;
    color: #64748b;
}

/* =========================
   DARK THEME - FORMS
   ========================= */

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

    html[data-theme="dark"] .form-control::placeholder {
        color: #64748b;
    }

    html[data-theme="dark"] .form-control:focus,
    html[data-theme="dark"] .form-select:focus {
        background-color: #1e293b;
        border-color: #3b82f6;
        color: #f1f5f9;
        box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .15);
    }

html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-check-label {
    color: #cbd5e1;
}

html[data-theme="dark"] .form-text {
    color: #94a3b8;
}

html[data-theme="dark"] .form-check-input {
    background-color: #1e293b;
    border-color: #475569;
}

    html[data-theme="dark"] .form-check-input:checked {
        background-color: #2563eb;
        border-color: #2563eb;
    }

html[data-theme="dark"] .input-group-text {
    background-color: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}


/* =========================
   DARK THEME - TEXT
   ========================= */

html[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}


/* =========================
   DARK THEME - BUTTONS
   ========================= */

html[data-theme="dark"] .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

    html[data-theme="dark"] .btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        color: #ffffff;
    }

html[data-theme="dark"] .btn-outline-primary {
    color: #60a5fa;
    border-color: #3b82f6;
}

    html[data-theme="dark"] .btn-outline-primary:hover {
        background: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
    }

html[data-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
    background: transparent;
}

    html[data-theme="dark"] .btn-outline-secondary:hover {
        color: #e2e8f0;
        background: #1e293b;
        border-color: #64748b;
    }

/* =========================
   DARK THEME - TABLES
   ========================= */

html[data-theme="dark"] .table {
    --bs-table-bg: #111827;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: #1f2937;
    color: #e2e8f0;
}

    html[data-theme="dark"] .table thead th {
        background: #1e293b;
        color: #f1f5f9;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
        border-bottom: 2px solid #475569;
        vertical-align: middle;
    }

    html[data-theme="dark"] .table tbody tr {
        background: #111827;
    }

    html[data-theme="dark"] .table tbody td {
        color: #cbd5e1;
        border-color: #1f2937;
        vertical-align: middle;
    }

    html[data-theme="dark"] .table tbody tr:hover {
        background: #172033 !important;
    }

    html[data-theme="dark"] .table strong {
        color: #f1f5f9;
    }


/* Table responsive wrapper */

.table-responsive {
    border-radius: 10px;
}


/* =========================
   BADGES
   ========================= */

html[data-theme="dark"] .badge {
    font-weight: 500;
}

html[data-theme="dark"] .bg-success {
    background-color: #166534 !important;
}

html[data-theme="dark"] .bg-warning {
    background-color: #854d0e !important;
    color: #fef3c7 !important;
}

html[data-theme="dark"] .bg-danger {
    background-color: #991b1b !important;
}

html[data-theme="dark"] .bg-secondary {
    background-color: #334155 !important;
}

/* =========================
   MOBILE APARTMENT CARDS
   ========================= */

.mobile-apartment-card {
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.mobile-apartment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

    .mobile-apartment-info > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .mobile-apartment-info span {
        font-size: 11px;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .mobile-apartment-info strong {
        font-size: 14px;
    }

html[data-theme="dark"] .mobile-apartment-card {
    background: #111827;
    border-color: #1f2937;
}

html[data-theme="dark"] .mobile-apartment-info span {
    color: #94a3b8;
}
/* =========================
   PAGE HEADER
   ========================= */

.page-breadcrumb {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.page-subtitle {
    margin: 6px 0 0;
    color: #64748b;
}


/* =========================
   BUILDING HEADER
   ========================= */

.building-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}

.building-page-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.building-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 22px;
}

.building-page-info h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.building-page-info p {
    margin: 4px 0 8px;
    color: #64748b;
    font-size: 13px;
}

.building-meta {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: #64748b;
}

    .building-meta i {
        margin-right: 4px;
    }

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.section-header span {
    color: #64748b;
    font-size: 13px;
}


/* =========================
   DARK
   ========================= */

html[data-theme="dark"] .page-breadcrumb {
    color: #94a3b8;
}

html[data-theme="dark"] .page-subtitle {
    color: #94a3b8;
}

html[data-theme="dark"] .building-page-header {
    background: #111827;
    border-color: #1f2937;
}

html[data-theme="dark"] .building-icon {
    background: #172554;
    color: #60a5fa;
}

html[data-theme="dark"] .building-page-info h2,
html[data-theme="dark"] .section-header h3 {
    color: #f1f5f9;
}

html[data-theme="dark"] .building-page-info p,
html[data-theme="dark"] .building-meta,
html[data-theme="dark"] .section-header span {
    color: #94a3b8;
}

html[data-theme="dark"] .card {
    color: #e5e7eb;
}

    html[data-theme="dark"] .card .text-muted {
        color: #9ca3af !important;
    }

    html[data-theme="dark"] .card .card-title {
        color: #f3f4f6;
    }


/* =========================
   MOBILE
   ========================= */

@media (max-width: 767.98px) {

    .page-title {
        font-size: 24px;
    }

    .building-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 18px;
    }

    .building-page-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width:100%;
    }

        .building-page-actions .btn {
            width: 100%;
        }

    .building-page-info {
        align-items: flex-start;
    }

    .building-meta {
        flex-direction: column;
        gap: 5px;
    }

    .mobile-apartment-info strong {
        color: #334155;
    }

    html[data-theme="dark"] .mobile-apartment-info strong {
        color: #e2e8f0;
    }
}

/* =========================
   BUILDING SELECTOR
   ========================= */

.building-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
}

    .building-selector > i {
        color: #64748b;
        font-size: 16px;
    }

    .building-selector .form-select {
        width: 220px;
        min-width: 220px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        padding-top: 7px;
        padding-bottom: 7px;
    }

html[data-theme="dark"] .building-selector > i {
    color: #94a3b8;
}

html[data-theme="dark"] .building-selector .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

@media (max-width: 767.98px) {

    .building-selector {
        margin-right: 4px;
    }

        .building-selector > i {
            display: none;
        }

        .building-selector .form-select {
            width: 150px;
            min-width: 150px;
            font-size: 12px;
        }
}

/* =========================
   SIDEBAR SUBMENU
   ========================= */

.sidebar-submenu {
    margin: -1px 0 6px 32px;
    padding-left: 10px;
    border-left: 1px solid #e2e8f0;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #7b8798;
    font-size: 12px;
    font-weight: 500;
    transition: .15s ease;
}

    .sidebar-sublink i {
        font-size: 13px;
    }

    .sidebar-sublink:hover {
        background: #f3f6fa;
        color: #2563eb;
    }

    .sidebar-sublink.active {
        color: #2563eb;
        background: #eef4ff;
        font-weight: 600;
    }


/* DARK */

html[data-theme="dark"] .sidebar-submenu {
    border-left-color: #334155;
}

html[data-theme="dark"] .sidebar-sublink {
    color: #94a3b8;
}

    html[data-theme="dark"] .sidebar-sublink:hover {
        background: #1e293b;
        color: #60a5fa;
    }

    html[data-theme="dark"] .sidebar-sublink.active {
        background: #172554;
        color: #60a5fa;
    }

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {
    max-width: 1450px;
    margin: 0 auto;
}


/* HEADER */

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.dashboard-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #64748b;
}

.dashboard-title {
    margin: 0;
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -.7px;
}

.dashboard-subtitle {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}

.dashboard-header .btn {
    white-space: nowrap;
}


/* SECTION TITLE */

.dashboard-section-title {
    margin-bottom: 14px;
}

    .dashboard-section-title h2 {
        display: inline;
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .dashboard-section-title span {
        margin-left: 8px;
        color: #94a3b8;
        font-size: 12px;
    }


/* BUILDING CARD */

.building-card {
    height: 100%;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .building-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
    }


/* BUILDING HEADER */

.building-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.building-card-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.building-card-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 19px;
}

.building-card-title h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.building-card-title p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.building-edit-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
}

    .building-edit-link:hover {
        background: #f1f5f9;
        color: #2563eb;
    }


/* SUMMARY */

.building-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.building-stat {
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

    .building-stat > span {
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }

    .building-stat > strong {
        display: block;
        color: #182230;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .building-stat > small {
        display: block;
        margin-top: 4px;
        color: #94a3b8;
        font-size: 10px;
    }

    .building-stat .currency {
        display: inline;
        margin: 0;
        font-size: 10px;
    }

.building-stat-warning > strong {
    color: #b45309;
}


/* ACTIVITY */

.building-activity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 2px;
}

.activity-section {
    min-width: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf1f5;
}

    .activity-header strong {
        font-size: 12px;
        font-weight: 700;
    }

    .activity-header a {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #2563eb;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

        .activity-header a:hover {
            color: #1d4ed8;
        }

        .activity-header a i {
            font-size: 10px;
        }

.activity-list {
    min-height: 80px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .activity-item:last-child {
        border-bottom: 0;
    }

.activity-item-main {
    min-width: 0;
}

    .activity-item-main strong {
        display: block;
        color: #334155;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .activity-item-main span {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
        font-size: 10px;
    }

.activity-amount {
    color: #334155;
    font-size: 11px;
    white-space: nowrap;
}

.activity-payment {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
}

    .activity-payment strong {
        color: #334155;
        font-size: 11px;
    }

    .activity-payment .badge {
        font-size: 9px;
    }

.activity-empty {
    padding: 20px 0;
    color: #94a3b8;
    font-size: 11px;
}


/* FOOTER / ACTIONS */

.building-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
}

    .building-card-footer .btn {
        font-size: 12px;
    }

        .building-card-footer .btn i {
            margin-right: 4px;
        }



/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {
    padding: 28px 0 40px;
}


/* =========================================================
   HEADER
   ========================================================= */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.dashboard-eyebrow {
    margin-bottom: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.dashboard-title {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.02em;
}

.dashboard-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.dashboard-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.dashboard-section-title {
    margin-bottom: 16px;
}

    .dashboard-section-title > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dashboard-section-title h2 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 700;
    }

    .dashboard-section-title span {
        display: inline-flex;
        align-items: center;
        padding: 4px 9px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }


/* =========================================================
   BUILDING CARD
   ========================================================= */

.building-card {
    height: 100%;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .building-card:hover {
        transform: translateY(-2px);
        border-color: #d8e0ea;
        box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    }


/* =========================================================
   BUILDING HEADER
   ========================================================= */

.building-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.building-card-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
}

.building-card-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 20px;
}

.building-card-heading {
    min-width: 0;
}

.building-card-title h3 {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.building-card-title p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.building-edit-link {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #94a3b8;
    text-decoration: none;
    transition: .2s ease;
}

    .building-edit-link:hover {
        background: #f1f5f9;
        color: #2563eb;
    }


/* =========================================================
   BASIC STATS
   ========================================================= */

.building-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.building-stat {
    min-width: 0;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 12px;
}

.building-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .building-stat-top > span {
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }

.building-stat-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
}

.building-stat > strong {
    display: block;
    margin-top: 7px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    font-weight: 750;
}

.building-stat > small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 10px;
}


/* =========================================================
   FINANCIAL CARDS
   ========================================================= */

.building-finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.building-finance-card {
    position: relative;
    min-width: 0;
    padding: 17px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .building-finance-card:hover {
        transform: translateY(-2px);
        border-color: #cbd5e1;
        box-shadow: 0 7px 20px rgba(15, 23, 42, .06);
        color: inherit;
    }

.building-finance-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.building-finance-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 14px;
}

.building-finance-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: .2s ease;
}

.building-finance-card:hover .building-finance-arrow {
    color: #2563eb;
    transform: translate(2px, -2px);
}

.building-finance-label {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.building-finance-amount {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.02em;
}

    .building-finance-amount small {
        margin-left: 2px;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }

.building-finance-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 600;
}

    .building-finance-link i {
        font-size: 9px;
    }


/* =========================================================
   WARNING FINANCE CARD
   ========================================================= */

.building-finance-warning {
    background: #fffaf0;
    border-color: #f8e8bd;
}

    .building-finance-warning .building-finance-icon {
        background: #fff1cc;
        color: #d97706;
    }

    .building-finance-warning .building-finance-amount {
        color: #b45309;
    }

    .building-finance-warning .building-finance-link {
        color: #b45309;
    }

    .building-finance-warning:hover {
        border-color: #f2d68e;
    }

        .building-finance-warning:hover .building-finance-arrow {
            color: #b45309;
        }


/* =========================================================
   FOOTER ACTIONS
   ========================================================= */

.building-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf1f5;
}

    .building-card-footer .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.dashboard-empty {
    padding: 70px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}

.dashboard-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 25px;
}

.dashboard-empty h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-empty p {
    margin: 7px 0 20px;
    color: #64748b;
    font-size: 13px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"] .dashboard-eyebrow {
    color: #94a3b8;
}

html[data-theme="dark"] .dashboard-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .dashboard-subtitle {
    color: #94a3b8;
}

html[data-theme="dark"] .dashboard-section-title h2 {
    color: #f1f5f9;
}

html[data-theme="dark"] .dashboard-section-title span {
    background: #1e293b;
    color: #94a3b8;
}

html[data-theme="dark"] .building-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

    html[data-theme="dark"] .building-card:hover {
        border-color: #334155;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    }

html[data-theme="dark"] .building-card-icon {
    background: #172554;
    color: #60a5fa;
}

html[data-theme="dark"] .building-card-title h3 {
    color: #f1f5f9;
}

html[data-theme="dark"] .building-card-title p {
    color: #94a3b8;
}

html[data-theme="dark"] .building-edit-link {
    color: #64748b;
}

    html[data-theme="dark"] .building-edit-link:hover {
        background: #1e293b;
        color: #60a5fa;
    }

html[data-theme="dark"] .building-stat {
    background: #1e293b;
    border-color: #273449;
}

html[data-theme="dark"] .building-stat-top > span {
    color: #94a3b8;
}

html[data-theme="dark"] .building-stat-icon {
    background: #111827;
    color: #94a3b8;
}

html[data-theme="dark"] .building-stat > strong {
    color: #f1f5f9;
}

html[data-theme="dark"] .building-stat > small {
    color: #64748b;
}

html[data-theme="dark"] .building-finance-card {
    background: #1e293b;
    border-color: #273449;
}

    html[data-theme="dark"] .building-finance-card:hover {
        border-color: #475569;
    }

html[data-theme="dark"] .building-finance-icon {
    background: #172554;
    color: #60a5fa;
}

html[data-theme="dark"] .building-finance-arrow {
    color: #64748b;
}

html[data-theme="dark"] .building-finance-label {
    color: #94a3b8;
}

html[data-theme="dark"] .building-finance-amount {
    color: #f1f5f9;
}

    html[data-theme="dark"] .building-finance-amount small {
        color: #94a3b8;
    }

html[data-theme="dark"] .building-finance-link {
    color: #60a5fa;
}

html[data-theme="dark"] .building-finance-warning {
    background: #211b0e;
    border-color: #4a3a18;
}

    html[data-theme="dark"] .building-finance-warning .building-finance-icon {
        background: #3a2b0d;
        color: #fbbf24;
    }

    html[data-theme="dark"] .building-finance-warning .building-finance-amount {
        color: #fbbf24;
    }

    html[data-theme="dark"] .building-finance-warning .building-finance-link {
        color: #fbbf24;
    }

html[data-theme="dark"] .building-card-footer {
    border-top-color: #1f2937;
}

html[data-theme="dark"] .dashboard-empty {
    background: #111827;
    border-color: #1f2937;
}

html[data-theme="dark"] .dashboard-empty-icon {
    background: #172554;
    color: #60a5fa;
}

html[data-theme="dark"] .dashboard-empty h3 {
    color: #f1f5f9;
}

html[data-theme="dark"] .dashboard-empty p {
    color: #94a3b8;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .dashboard-page {
        padding-top: 22px;
    }

    .building-card {
        padding: 20px;
    }
}


@media (max-width: 767.98px) {

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 26px;
    }

    .dashboard-title {
        font-size: 27px;
    }

    .dashboard-header .btn {
        width: 100%;
    }

    .building-card {
        padding: 18px;
        border-radius: 14px;
    }

    .building-card-title p {
        max-width: 220px;
    }

    .building-finance-grid {
        grid-template-columns: 1fr;
    }

    .building-card-footer {
        flex-direction: column;
    }

        .building-card-footer .btn {
            width: 100%;
        }
}


@media (max-width: 480px) {

    .building-summary {
        grid-template-columns: 1fr;
    }

    .building-card-title h3 {
        max-width: 180px;
    }
}

/* =========================================================
   MODALS
   ========================================================= */

.modal-content {
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #ffffff;
    color: #182230;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f5;
}

.modal-title {
    color: #182230;
    font-size: 16px;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #edf1f5;
}

.modal .btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
}


/* =========================
   MODAL - CLOSE BUTTON
   ========================= */

.modal .btn-close {
    opacity: .55;
}

    .modal .btn-close:hover {
        opacity: .8;
    }


/* =========================
   DARK THEME
   ========================= */

html[data-theme="dark"] .modal-content {
    background: #111827;
    border-color: #1f2937;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .modal-header {
    border-bottom-color: #1f2937;
}

html[data-theme="dark"] .modal-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .modal-body {
    color: #cbd5e1;
}

html[data-theme="dark"] .modal-footer {
    border-top-color: #1f2937;
}


/* Bootstrap close icon - dark */

html[data-theme="dark"] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .7;
}

    html[data-theme="dark"] .modal .btn-close:hover {
        opacity: 1;
    }


/* =========================
   MODAL BACKDROP
   ========================= */

.modal-backdrop.show {
    opacity: .55;
}

html[data-theme="dark"] .modal-backdrop.show {
    opacity: .7;
}

/* PIN KARTI */

.resident-pin-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid #b7e4c7;
    border-radius: 12px;
    background: #f0fff4;
}

.resident-pin-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #198754;
    color: white;
    font-size: 24px;
}

.resident-pin-content {
    flex: 1;
}

.resident-pin-title {
    font-size: 17px;
    font-weight: 600;
    color: #146c43;
}

.resident-pin-description {
    margin-top: 3px;
    color: #495057;
    font-size: 14px;
}

.resident-pin-value {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 8px;
    background: white;
    border: 1px solid #b7e4c7;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #146c43;
}

.resident-pin-warning {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}


/* SAKİN HESABI */

.resident-account-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.resident-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #334155;
}

.resident-account-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resident-account-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 19px;
}

.resident-account-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: #6c757d;
}

.resident-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 20px;
    background: #d1e7dd;
    color: #146c43;
    font-size: 12px;
    font-weight: 600;
}

.resident-account-body {
    padding: 20px;
}

.resident-account-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resident-info-label {
    margin-bottom: 5px;
    font-size: 12px;
    color: #6c757d;
}

.resident-info-value {
    font-size: 14px;
    font-weight: 500;
}

.resident-create-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf0f2;
}

.resident-account-active {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #334155;
    color: #198754;
    font-size: 13px;
}


/* MOBİL */

@media (max-width: 768px) {

    .resident-pin-card {
        align-items: flex-start;
        padding: 18px;
    }

    .resident-pin-value {
        font-size: 24px;
    }

    .resident-account-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .resident-create-area {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
    background: var(--bs-body-bg);
}

.login-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .10;
}

.login-shape-1 {
    width: 460px;
    height: 460px;
    background: var(--bs-primary);
    top: -220px;
    right: -140px;
}

.login-shape-2 {
    width: 350px;
    height: 350px;
    background: var(--bs-info);
    bottom: -190px;
    left: -130px;
}

.login-shape-3 {
    width: 180px;
    height: 180px;
    background: var(--bs-primary);
    top: 30%;
    left: 10%;
}

.login-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
    padding: 38px 40px 28px;
    border: 1px solid var(--bs-border-color);
    border-radius: 22px;
    background: var(--bs-body-bg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .10);
}


/* BRAND */

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.login-logo {
    width: 100px;
    height: 58px;
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .login-logo img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.login-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-body-color);
}

.login-brand-subtitle {
    margin-top: 2px;
    font-size: 11px;
    white-space: nowrap;
    color: var(--bs-secondary-color);
}


/* HEADER */

.login-header {
    margin-bottom: 28px;
}

    .login-header h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 700;
        letter-spacing: -.5px;
        color: var(--bs-body-color);
    }

    .login-header p {
        margin: 8px 0 0;
        color: var(--bs-secondary-color);
        font-size: 14px;
        line-height: 1.5;
    }


/* FIELD */

.login-field {
    margin-bottom: 20px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 600;
        color: var(--bs-body-color);
    }


/* INPUT */

.login-input-wrapper {
    position: relative;
}

    .login-input-wrapper > i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--bs-secondary-color);
        font-size: 17px;
        pointer-events: none;
        z-index: 2;
    }

    .login-input-wrapper input {
        width: 100%;
        height: 50px;
        padding: 0 45px 0 44px;
        border: 1px solid var(--bs-border-color);
        border-radius: 11px;
        background: var(--bs-body-bg);
        color: var(--bs-body-color);
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .login-input-wrapper input:focus {
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .12);
        }


/* PASSWORD TOGGLE */

.login-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

    .login-password-toggle:hover {
        color: var(--bs-body-color);
    }


/* VALIDATION */

.login-field-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--bs-danger);
}

.login-validation {
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(var(--bs-danger-rgb), .08);
    color: var(--bs-danger);
    font-size: 13px;
}


/* OPTIONS */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 24px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    color: var(--bs-secondary-color);
    cursor: pointer;
}

    .login-remember input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--bs-primary);
    }

.login-forgot {
    font-size: 13px;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
}

    .login-forgot:hover {
        text-decoration: underline;
    }


/* BUTTON */

.login-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), .25);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button i {
        font-size: 16px;
        transition: transform .2s ease;
    }

    .login-button:hover i {
        transform: translateX(3px);
    }


/* FOOTER */

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
    color: var(--bs-secondary-color);
    font-size: 11px;
}

    .login-footer i {
        margin-right: 4px;
    }


/* MOBILE */

@media (max-width: 575px) {

    .login-page {
        padding: 20px 14px;
    }

    .login-card {
        padding: 30px 24px 24px;
        border-radius: 18px;
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-forgot {
        align-self: flex-end;
    }
}

/* SIDEBAR USER */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.08);
}

.sidebar-user-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 18px;
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    margin-top: 2px;
    font-size: 11px;
    color: var(--bs-secondary-color);
}

.sidebar-logout {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bs-secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sidebar-logout:hover {
        background: rgba(220, 53, 69, 0.10);
        color: #dc3545;
    }

.sidebar-user form {
    margin: 0;
}


/* KASA / BAKİYE - LIGHT & DARK TEMA UYUMLU */
.cash-summary-card,
.cash-panel-card {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

    /* Kart başlıkları */
 
/* LIGHT TEMA - varsayılan */
.cash-panel-card .card-header {
    background-color: #f8f9fa;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}

/* DARK TEMA - Bootstrap */
[data-theme="dark"] .cash-panel-card .card-header,
html.dark-mode .cash-panel-card .card-header,
body.dark-mode .cash-panel-card .card-header,
html.dark-theme .cash-panel-card .card-header,
body.dark-theme .cash-panel-card .card-header {
    background-color: #1e293b;
    color: #f8fafc;
    border-bottom: 1px solid #334155;
}

/* Kart içeriği */
.cash-panel-card .card-body {
    color: var(--bs-body-color);
}

/* Form alanları */
.cash-panel-card .form-control {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

        .cash-panel-card .form-control::placeholder {
            color: var(--bs-secondary-color);
            opacity: 1;
        }

        .cash-panel-card .form-control:focus {
            background-color: var(--bs-body-bg);
            color: var(--bs-body-color);
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
        }


/* Özet kartlarındaki açıklamalar */
.cash-summary-card .text-muted {
    color: var(--bs-secondary-color) !important;
}

/* Kasa hareketleri tablosu */
.cash-table {
    --bs-table-bg: var(--bs-body-bg);
    --bs-table-color: var(--bs-body-color);
    --bs-table-hover-bg: var(--bs-tertiary-bg);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    margin-bottom: 0;
}

    .cash-table thead th {
        background-color: var(--bs-tertiary-bg);
        color: var(--bs-body-color);
        border-bottom: 1px solid var(--bs-border-color);
        white-space: nowrap;
        font-weight: 600;
    }

    .cash-table tbody td {
        background-color: var(--bs-table-bg);
        color: var(--bs-table-color);
        border-color: var(--bs-border-color);
    }

/* Mobil görünüm */
@media (max-width: 767.98px) {
    .cash-summary-card .fs-3 {
        font-size: 1.5rem !important;
    }

    .cash-table {
        min-width: 700px;
    }
}

/* KASA / BAKİYE */

/* Dark tema: sarı uyarı kutusunda okunabilir metin */
html[data-theme="dark"] .alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

    html[data-theme="dark"] .alert-warning .alert-heading,
    html[data-theme="dark"] .alert-warning p {
        color: #664d03;
    }