
body {
    margin: 0;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #1f2933;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar-wrapper {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.4);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #e5e7eb;
}

.navbar-brand img {
    height: 28px;
    width: auto;
}

.nav-main, .nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #cbd5f5;
}

.nav-link.active {
    background: rgba(37, 99, 235, 0.22);
    color: #e5edff;
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #111827;
    color: #9ca3af;
}

.nav-pill-upgrade {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.6);
    font-size: 0.78rem;
    color: #e5f2ff;
    background: linear-gradient(90deg, rgba(59,130,246,0.2), rgba(8,47,73,0.7));
}

/* Layout */

.main-content {
    flex: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    display: flex;
    gap: 1.5rem;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.content-with-sidebar {
    flex: 1;
    min-width: 0;
}

/* Cards & panels */

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.card-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
}

.card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-green {
    background: rgba(34,197,94,0.12);
    color: #16a34a;
}

.badge-red {
    background: rgba(248,113,113,0.12);
    color: #ef4444;
}

.badge-blue {
    background: rgba(59,130,246,0.12);
    color: #2563eb;
}

/* Sidebar property nav */

.sidebar-property-header {
    margin-bottom: 0.9rem;
}

.back-link {
    font-size: 0.8rem;
    color: #6b7280;
}

.back-link span {
    margin-left: 0.25rem;
}

.property-thumb {
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    margin: 0.75rem 0;
}

.property-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.property-badges {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.property-badges .badge {
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.7);
}

/* Sidebar nav list */

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

.sidebar-nav-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin: 0.75rem 0 0.35rem;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.4rem;
    font-size: 0.86rem;
    border-radius: 0.55rem;
    color: #4b5563;
}

.sidebar-nav li a span.label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sidebar-nav li a small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.sidebar-nav li a:hover {
    background: rgba(37,99,235,0.05);
}

.sidebar-nav li.active > a {
    background: rgba(37,99,235,0.09);
    color: #1d4ed8;
}

/* Content header */

.page-heading {
    margin-bottom: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: flex-start;
}

.page-heading h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.breadcrumbs a {
    color: #6b7280;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    padding: 0.32rem 0.85rem;
    cursor: pointer;
    background: #2563eb;
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-outline {
    background: transparent;
    border-color: rgba(148,163,184,0.7);
    color: #111827;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #4b5563;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.28rem 0.7rem;
}

/* Quick stats grid */

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.quick-stat-tile {
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.16), transparent),
                #0b1220;
    color: #e5e7eb;
}

.quick-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
    margin-bottom: 0.25rem;
}

.quick-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-stat-sub {
    font-size: 0.75rem;
    color: #cbd5f5;
}

/* Two-column grids */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.75rem;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.86rem;
}

.summary-label {
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.summary-value {
    font-weight: 600;
    color: #111827;
}

.summary-value.negative {
    color: #b91c1c;
}

.summary-value.positive {
    color: #15803d;
}

/* Simple chart placeholder */

.chart-placeholder {
    border-radius: 0.85rem;
    border: 1px dashed #cbd5f5;
    padding: 1.25rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

/* Tables */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.table th,
.table td {
    padding: 0.4rem 0.55rem;
    text-align: left;
}

.table thead tr {
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Footer */

.footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 1.25rem 1.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
    max-width: 1240px;
    margin: 0 auto;
}
