/* =========================================================
   REAL ESTATE LEASE
   Application stylesheet
========================================================= */

:root {
    --primary: #0757a5;
    --primary-dark: #063d75;
    --primary-light: #2f9cf4;

    --text: #18324d;
    --text-muted: #6d8299;

    --background: #f5f8fc;
    --card: #ffffff;
    --border: #e3ebf4;

    --success: #16a085;
    --warning: #f39c12;

    --shadow-sm: 0 2px 8px rgba(22, 54, 88, 0.05);
    --shadow: 0 8px 30px rgba(22, 54, 88, 0.08);
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    font-size: 15px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.app-navbar {
    min-height: 76px;
    background: linear-gradient(135deg,
            #063c70 0%,
            #07569a 60%,
            #0866b6 100%);

    box-shadow: 0 3px 15px rgba(4, 42, 78, 0.18);
    padding: 0;
}
.app-navbar .dropdown-menu {
    min-width: 230px;
    padding: 8px;

    margin-top: 10px !important;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .10),
        0 2px 8px rgba(15, 23, 42, .05);
}

.app-navbar .dropdown-item {
    display: flex;
    align-items: center;

    padding: 10px 12px;

    border-radius: 8px;

    color: #334155;
    font-weight: 500;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.app-navbar .dropdown-item:hover {
    background: #eff6ff;
    color: var(--primary);
}

.app-navbar .dropdown-item i {
    width: 20px;
    font-size: 1rem;
}

.app-navbar .dropdown-divider {
    margin: 8px 4px;
}

.app-navbar .nav-link.dropdown-toggle::after {
    margin-left: 7px;
    vertical-align: .15em;
}

/* Brand */

.app-brand {
    color: #fff !important;
    min-width: 250px;
    padding: 10px 15px;
}

.brand-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);

    font-size: 25px;
    color: #fff;

    margin-right: 11px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.brand-name strong {
    color: #57b5ff;
}

.brand-text small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
}


/* Navigation */

.app-navbar .navbar-nav {
    height: 76px;
}

.app-navbar .nav-item {
    height: 76px;
}

.app-navbar .nav-link {
    position: relative;

    height: 76px;
    min-width: 78px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    color: rgba(255, 255, 255, 0.72) !important;

    font-size: 12px;
    font-weight: 500;

    padding: 8px 10px;

    transition: all 0.2s ease;
}

.app-navbar .nav-link i {
    font-size: 18px;
}

.app-navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.app-navbar .nav-link.active {
    color: #fff !important;
}

.app-navbar .nav-link.active::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;

    height: 3px;

    background: #4fb2ff;
    border-radius: 4px 4px 0 0;
}


/* User */

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.navbar-login {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.notification-button {
    position: relative;

    width: 38px;
    height: 38px;

    border: 0;
    background: transparent;

    color: rgba(255, 255, 255, 0.8);

    font-size: 18px;
}

.notification-button:hover {
    color: #fff;
}

.notification-badge {
    position: absolute;

    top: 0;
    right: -2px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ef5b63;
    color: white;

    border-radius: 50%;

    font-size: 9px;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    border: 0;
    background: transparent;

    padding: 6px 8px;
    margin: 0;

    color: inherit;
    border-radius: 10px;
    cursor: pointer;

    transition: background-color .2s ease;
}

.user-profile:hover,
.user-profile:focus-visible {
    background: #f1f5f9;
}

.user-profile::after {
    display: none;
}

.user-chevron {
    font-size: 11px;
    transition: transform .2s ease;
}

.user-profile[aria-expanded="true"] .user-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    min-width: 220px;
    margin-top: 10px !important;

    padding: 8px;

    border: 1px solid #e5eaf0;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 14px;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f5f8fc;
}

.user-dropdown .dropdown-divider {
    margin: 7px 4px;
}

.user-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;
    color: var(--primary);

    font-size: 19px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
}

.user-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin-top: 2px;
}


.btn-primary-modern {
    background: var(--primary);
    border: none;
    padding: 13px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

/* Mobile menu */

.navbar-toggler {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 24px;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* =========================================================
   HERO
========================================================= */

.hero-card {
    position: relative;

    min-height: 300px;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(90deg,
            #eef6ff 0%,
            #eef6ff 39%,
            rgba(238, 246, 255, 0.88) 50%,
            rgba(238, 246, 255, 0.15) 72%);

    box-shadow: var(--shadow-sm);
    border: 1px solid #e0ebf6;
}

.hero-content {
    position: relative;
    z-index: 5;

    width: 55%;

    padding: 38px 48px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.hero-label i {
    font-size: 14px;
}

.hero-content h1 {
    margin: 13px 0 10px;

    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;

    color: #123d69;

    letter-spacing: -1px;
}

.hero-content h1 span {
    color: #0780dc;
}

.hero-content p {
    max-width: 560px;

    margin-bottom: 22px;

    color: #607993;

    font-size: 15px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 9px 30px;
}

.hero-features div {
    color: #315474;
    font-size: 12px;
}

.hero-features i {
    color: #2998e8;
    margin-right: 6px;
}


/* Hero buildings */

.hero-illustration {
    position: absolute;

    top: 0;
    right: 0;

    width: 58%;
    height: 100%;

    overflow: hidden;

    background:
        linear-gradient(to bottom,
            #a9d9fa 0%,
            #d9efff 65%,
            #b5dba7 65%,
            #7dbf78 100%);
}

.sun {
    position: absolute;

    top: 28px;
    right: 130px;

    width: 75px;
    height: 75px;

    background: #ffe7a1;
    border-radius: 50%;

    opacity: 0.8;
}

.cloud {
    position: absolute;

    width: 90px;
    height: 22px;

    background: rgba(255, 255, 255, 0.75);

    border-radius: 30px;
}

.cloud::before,
.cloud::after {
    content: "";

    position: absolute;

    background: inherit;
    border-radius: 50%;
}

.cloud::before {
    width: 35px;
    height: 35px;
    left: 18px;
    top: -18px;
}

.cloud::after {
    width: 27px;
    height: 27px;
    right: 16px;
    top: -13px;
}

.cloud-1 {
    top: 60px;
    right: 350px;
}

.cloud-2 {
    top: 105px;
    right: 80px;
    transform: scale(0.65);
}

.building {
    position: absolute;

    bottom: 0;

    background: #f5f8fa;

    border-top: 5px solid #d5e1e9;

    box-shadow: -7px 0 15px rgba(20, 60, 90, 0.1);
}

.building::before {
    content: "";

    position: absolute;

    top: 20px;
    left: 12px;
    right: 12px;

    height: calc(100% - 35px);

    background:
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 17px,
            rgba(65, 130, 170, 0.8) 18px,
            rgba(65, 130, 170, 0.8) 30px),
        repeating-linear-gradient(to right,
            rgba(55, 125, 170, 0.55) 0,
            rgba(55, 125, 170, 0.55) 17px,
            transparent 18px,
            transparent 32px);
}

.building-1 {
    left: 5%;
    width: 22%;
    height: 53%;
}

.building-2 {
    left: 28%;
    width: 25%;
    height: 68%;
    background: #e9f0f3;
}

.building-3 {
    left: 53%;
    width: 25%;
    height: 48%;
    background: #f8f9f9;
}

.building-4 {
    left: 78%;
    width: 24%;
    height: 73%;
    background: #e8eff2;
}


/* =========================================================
   SECTION HEADERS
========================================================= */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.section-header h2 {
    margin: 0;

    color: #173b60;

    font-size: 18px;
    font-weight: 700;
}

.section-header p {
    margin: 3px 0 0;

    color: var(--text-muted);
    font-size: 12px;
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.feature-card {
    position: relative;

    min-height: 148px;

    display: flex;
    flex-direction: column;

    padding: 20px;

    border-radius: 12px;

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    margin-bottom: 13px;

    font-size: 18px;
}

.feature-card h3 {
    margin: 0 0 4px;

    color: #163b62;

    font-size: 14px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;

    color: #71859a;

    font-size: 11px;
    line-height: 1.4;
}

.feature-arrow {
    position: absolute;

    bottom: 17px;
    right: 19px;

    font-size: 16px;
}

.feature-blue {
    background: linear-gradient(145deg, #f2f8ff, #fff);
}

.feature-blue .feature-icon {
    background: #2999ed;
    color: white;
}

.feature-blue .feature-arrow {
    color: #2999ed;
}

.feature-green {
    background: linear-gradient(145deg, #f0fcfa, #fff);
}

.feature-green .feature-icon {
    background: #18a999;
    color: white;
}

.feature-green .feature-arrow {
    color: #18a999;
}

.feature-purple {
    background: linear-gradient(145deg, #f7f3ff, #fff);
}

.feature-purple .feature-icon {
    background: #8061d9;
    color: white;
}

.feature-purple .feature-arrow {
    color: #8061d9;
}

.feature-orange {
    background: linear-gradient(145deg, #fff8ee, #fff);
}

.feature-orange .feature-icon {
    background: #ed941f;
    color: white;
}

.feature-orange .feature-arrow {
    color: #ed941f;
}

.feature-cyan {
    background: linear-gradient(145deg, #eefaff, #fff);
}

.feature-cyan .feature-icon {
    background: #269fc3;
    color: white;
}

.feature-cyan .feature-arrow {
    color: #269fc3;
}


/* =========================================================
   DASHBOARD CARDS
========================================================= */

.dashboard-card {
    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-sm);

    padding: 23px;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 25px;
}

.dashboard-card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    color: #183e65;

    font-size: 16px;
    font-weight: 700;
}

.dashboard-card-header h2 i {
    color: var(--primary);
}

.dashboard-card-header p {
    margin: 4px 0 0;

    color: #8395a8;

    font-size: 11px;
}

.view-all {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}


/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    position: relative;

    min-height: 140px;

    padding: 0 22px;

    border-right: 1px solid var(--border);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    margin-bottom: 11px;

    font-size: 16px;
}

.stat-blue {
    background: #e7f3ff;
    color: #218fe0;
}

.stat-green {
    background: #e4f8f4;
    color: #15a28e;
}

.stat-purple {
    background: #f0ebff;
    color: #8060d8;
}

.stat-orange {
    background: #fff1dd;
    color: #ed921e;
}

.stat-label {
    color: #7d91a5;
    font-size: 10px;
    margin-bottom: 3px;
}

.stat-value {
    color: #173d63;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-evolution {
    margin-top: 4px;
    font-size: 10px;
}

.stat-evolution.positive {
    color: #15a58e;
}


/* =========================================================
   PAYMENT PROGRESS
========================================================= */

.payment-progress {
    margin-top: 10px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: #667f96;

    font-size: 11px;
}

.payment-progress strong {
    color: #183d62;
}

.progress {
    height: 8px;

    overflow: hidden;

    border-radius: 20px;

    background: #eaf0f5;
}

.progress-bar {
    background: linear-gradient(90deg,
            #13a98e,
            #35c6a9);

    border-radius: 20px;
}

.progress-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 7px;

    color: #8a9bad;

    font-size: 10px;
}


/* =========================================================
   ACTIVITIES
========================================================= */

.activity-list {
    margin-top: -3px;
}

.activity-item {
    display: flex;
    align-items: center;

    min-height: 54px;

    border-bottom: 1px solid #edf1f5;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    margin-right: 10px;

    font-size: 13px;
}

.activity-orange {
    color: #e99016;
    background: #fff1dc;
}

.activity-blue {
    color: #258fdc;
    background: #e7f3ff;
}

.activity-purple {
    color: #7d5bd3;
    background: #f0ebff;
}

.activity-green {
    color: #139d87;
    background: #e5f8f4;
}

.activity-cyan {
    color: #219bc1;
    background: #e7f7fc;
}

.activity-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
    flex: 1;
}

.activity-content strong {
    color: #315472;

    font-size: 10px;
    font-weight: 600;
}

.activity-content span {
    margin-top: 2px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #8295a8;

    font-size: 9px;
}

.activity-item time {
    margin-left: 8px;

    white-space: nowrap;

    color: #9aabba;

    font-size: 9px;
}


/* =========================================================
   FOOTER
========================================================= */

.app-footer {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 35px;
    padding: 20px 8px;

    border-top: 1px solid var(--border);

    color: #8ba0b4;

    font-size: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-brand strong {
    color: #28547c;
}

.footer-logo {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);
    background: #e9f4ff;

    border-radius: 8px;

    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-links a {
    color: #7890a7;
}

.footer-links a:hover {
    color: var(--primary);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1399px) {

    .app-navbar .nav-link {
        min-width: 68px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .app-navbar .nav-link span {
        font-size: 10px;
    }

    .hero-content {
        width: 62%;
    }

    .hero-illustration {
        width: 52%;
    }
}


@media (max-width: 1199px) {

    .app-navbar .navbar-nav {
        height: auto;
    }

    .app-navbar .nav-item {
        height: auto;
    }

    .app-navbar .nav-link {
        height: 55px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 8px 15px;
    }

    .app-navbar .nav-link.active::after {
        display: none;
    }

    .navbar-user {
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
        padding-bottom: 10px;
    }

    .navbar-login {
        width: 100%;
        justify-content: center;
        margin: 15px 0;
    }

    .hero-content {
        width: 65%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 15px;
        border-bottom: 1px solid var(--border);
    }

    .stat-item:first-child {
        padding-left: 15px;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(3) {
        padding-left: 15px;
        border-bottom: 0;
    }

    .stat-item:nth-child(4) {
        border-bottom: 0;
    }
}


@media (max-width: 767px) {

    .app-brand {
        min-width: auto;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-text small {
        display: none;
    }

    .hero-card {
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        padding: 28px 24px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-illustration {
        position: relative;

        width: 100%;
        height: 130px;

        opacity: 0.85;
    }

    .sun {
        top: 15px;
        right: 60px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item,
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 15px 0;
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .app-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


@media (max-width: 480px) {

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .brand-name {
        font-size: 14px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .dashboard-card {
        padding: 17px;
    }

    .dashboard-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .feature-card {
        min-height: 135px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 3px solid rgba(39, 147, 230, 0.35);
    outline-offset: 2px;
}

::selection {
    background: #b9ddf9;
    color: #063d75;
}

.page-grid {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    margin: 0;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.charges-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
