

/* Mi Vecino Sidebar Theme */
.bg-gradient-custom {
    background: #ffffff !important;
    background-image: none !important;
}

.app-sidebar {
    border-right: 1px solid #e8eef8;
    box-shadow: 0 8px 30px rgba(21, 52, 101, 0.06);
    padding: 1rem .75rem;
}

.app-sidebar .sidebar-brand {
    flex-direction: column;
    height: 9rem;
    justify-content: center !important;
    padding: .45rem .55rem .75rem;
    text-transform: none;
    letter-spacing: 0;
}

.app-sidebar-logo {
    width: 96px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.app-sidebar-brand-text {
    color: #006CFF;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    margin-left: 0;
    margin-top: .3rem;
}

.app-sidebar .sidebar-heading {
    color: #7f8faa;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .03rem;
    padding: .75rem .55rem .35rem;
}

.app-sidebar hr.sidebar-divider {
    border-top: 1px solid #e7edf7;
    margin: .75rem .55rem;
}

.app-sidebar .nav-item {
    margin: .1rem 0;
}

.app-sidebar .nav-item .nav-link {
    align-items: center;
    border-radius: 8px;
    color: #223556 !important;
    display: flex;
    font-size: .82rem;
    font-weight: 700;
    gap: .6rem;
    min-height: 42px;
    padding: .7rem .7rem;
    text-align: left;
    width: 100%;
}

.app-sidebar .nav-item .nav-link i {
    color: #53709a !important;
    font-size: .95rem;
    margin-right: 0;
    text-align: center;
    width: 1.05rem;
}

.app-sidebar .nav-item .nav-link:hover,
.app-sidebar .nav-item.active .nav-link {
    background: #eef5ff !important;
    color: #006CFF !important;
    text-decoration: none;
}

.app-sidebar .nav-item .nav-link:hover i,
.app-sidebar .nav-item.active .nav-link i {
    color: #006CFF !important;
}

.app-sidebar-help {
    align-items: center;
    background: #edf5ff;
    border-radius: 8px;
    color: #006CFF;
    gap: .65rem;
    margin: 1.6rem .35rem .5rem;
    padding: .85rem .75rem;
}

.app-sidebar-help span {
    color: #223556;
    display: block;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
}

.app-sidebar-help small {
    color: #006CFF;
    display: block;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.1;
}


/* Mi Vecino Topbar Theme */
.bg-gradient-custom-topbar {
    background-color: #006CFF !important;
    background-image: linear-gradient(90deg, #006CFF 0%, #0B8FEA 58%, #12B8B0 100%) !important;
    color: #ffffff !important;
}

.app-topbar {
    box-shadow: 0 8px 24px rgba(0, 108, 255, 0.16);
    height: 4.35rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.app-topbar-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    color: #ffffff;
    display: inline-flex;
    height: 2.45rem;
    justify-content: center;
    width: 2.45rem;
}

.app-topbar-toggle:hover,
.app-topbar-toggle:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    box-shadow: none;
}

.app-topbar-search {
    max-width: 380px;
}

.app-topbar-search .input-group {
    background: #ffffff;
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(0, 42, 122, 0.14);
    overflow: hidden;
}

.app-topbar-search .form-control {
    background: #ffffff;
    color: #223556;
    height: 2.45rem;
    padding-left: 1rem;
}

.app-topbar-search .form-control::placeholder {
    color: #7f8faa;
}

.app-topbar-search .btn {
    background: #ffffff;
    color: #53709a;
    height: 2.45rem;
    padding-left: .85rem;
    padding-right: .95rem;
}

/* Adjust icons and text inside topbar */
.topbar .nav-item .nav-link,
.topbar .navbar-brand,
.topbar .dropdown-toggle,
.topbar .text-gray-600 {
    color: #ffffff !important;
}

    .topbar .nav-item .nav-link:hover,
    .topbar .dropdown-item:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.12) !important;
    }

/* Optional: topbar divider line softer */
.topbar-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.app-topbar .navbar-nav {
    align-items: center;
}

.app-topbar .nav-item .nav-link {
    align-items: center;
    border-radius: 8px;
    display: flex;
    min-height: 2.45rem;
}

.app-topbar .badge-counter {
    background: #ff4d6d;
    border: 2px solid #0c9bcc;
    font-size: .62rem;
    line-height: 1;
    min-width: 1rem;
    padding: .18rem .28rem;
    right: .25rem;
    top: .32rem;
}

.app-user-menu .nav-link {
    gap: .6rem;
    padding-left: .55rem;
    padding-right: .75rem;
}

.app-user-avatar {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    color: #006CFF;
    display: inline-flex;
    flex: 0 0 2.25rem;
    font-size: .75rem;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    overflow: hidden;
    width: 2.25rem;
}

.app-user-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.app-user-copy {
    flex-direction: column;
    line-height: 1.1;
}

.app-user-copy span {
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
}

.app-user-copy small {
    color: rgba(255, 255, 255, 0.82);
    font-size: .68rem;
    font-weight: 700;
    margin-top: .12rem;
}

.app-user-chevron {
    color: rgba(255, 255, 255, 0.85);
    font-size: .62rem;
    margin-left: .1rem;
}

.app-login-link {
    gap: .45rem;
}

@media (min-width: 768px) {
    .app-sidebar {
        width: 15rem !important;
    }

    .app-sidebar .nav-item .nav-link {
        width: 100%;
    }

    .app-sidebar.toggled {
        padding-left: .4rem;
        padding-right: .4rem;
        width: 6.5rem !important;
    }

    .app-sidebar.toggled .sidebar-brand {
        height: 4.25rem;
        justify-content: center !important;
        padding-left: 0;
        padding-right: 0;
    }

    .app-sidebar.toggled .app-sidebar-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .app-sidebar.toggled .sidebar-heading {
        font-size: .56rem;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .app-sidebar.toggled .nav-item {
        margin: .25rem 0;
    }

    .app-sidebar.toggled .nav-item .nav-link {
        align-items: center;
        flex-direction: column;
        gap: .28rem;
        justify-content: center;
        min-height: 4.25rem;
        padding: .55rem .25rem;
        text-align: center;
        width: 100%;
    }

    .app-sidebar.toggled .nav-item .nav-link i {
        display: block;
        font-size: 1.05rem;
        margin: 0;
        width: auto;
    }

    .app-sidebar.toggled .nav-item .nav-link span {
        display: block;
        font-size: .62rem;
        line-height: 1.12;
        max-width: 5rem;
        white-space: normal;
        word-break: normal;
    }

    .app-sidebar.toggled hr.sidebar-divider {
        margin-left: .35rem;
        margin-right: .35rem;
    }

    .app-sidebar.toggled .app-sidebar-brand-text,
    .app-sidebar.toggled .app-sidebar-help {
        display: none !important;
    }
}

.auth-brand-logo {
    max-width: min(78%, 430px);
    max-height: 420px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.auth-login-page {
    min-height: calc(100vh - 7rem);
    display: flex;
    align-items: center;
}

.auth-login-page > .row {
    width: 100%;
}

.auth-login-card {
    min-height: 520px;
}

.auth-login-logo-pane {
    background: #f8fbff;
    border-right: 1px solid #e3e6f0;
    min-height: 520px;
    padding: 2.5rem;
}

.auth-login-logo {
    max-width: min(88%, 410px);
    max-height: 430px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-login-form {
    width: 100%;
}

@media (max-width: 991.98px) {
    .auth-login-page {
        min-height: auto;
    }

    .auth-login-card {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    #wrapper {
        display: block;
    }

    #accordionSidebar.app-sidebar {
        display: none !important;
        width: 0 !important;
    }

    #content-wrapper {
        margin-left: 0 !important;
        min-width: 100% !important;
        width: 100% !important;
    }

    .app-topbar {
        height: 4rem;
        margin-bottom: 0 !important;
        padding-left: .9rem;
        padding-right: .9rem;
    }

    #sidebarToggleTop {
        display: none !important;
    }

    .app-topbar .navbar-nav {
        margin-left: auto !important;
    }

    .app-topbar .nav-item .nav-link {
        min-height: 2.35rem;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .app-user-menu {
        position: static;
    }

    .app-user-menu .dropdown-menu {
        border: 1px solid #e6edff;
        border-radius: 8px;
        left: .85rem !important;
        max-width: calc(100vw - 1.7rem);
        right: .85rem !important;
        top: 3.85rem !important;
        transform: none !important;
        width: auto;
    }

    .app-user-menu .dropdown-header {
        font-size: .68rem;
        font-weight: 900;
        letter-spacing: .04rem;
        padding: .5rem 1rem .35rem;
    }

    .app-user-menu .dropdown-item {
        align-items: center;
        color: #5f6f8d;
        display: flex;
        font-size: .9rem;
        font-weight: 800;
        min-height: 42px;
    }

    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}
