﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Offset for fixed navbar */
body {
    padding-top: 60px; /* adjust to your navbar height */
    margin-bottom: 60px;
    font-family: "Segoe UI", sans-serif;
}

.nav_sticky {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.shadow-navbar {
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}


.icon-flip-horizontal {
    transform: scaleX(-1);
    display: inline-block; /* ensures transform works correctly */
}

.navbar-light .navbar-brand {
    color: navy !important; /* Navy Blue */
    text-shadow: 0.5px 1px 2px rgba(0,0,0,0.5);
    font-size:24px;
    font-weight: 200;
}

    
/* ================= HOME PAGE ONLY ================= */

/* Banner */
.banner-img {
    height: 380px;
    object-fit: cover;
    filter: brightness(75%);
}

.carousel-caption {
    background: rgba(0, 51, 102, 0.6);
    border-radius: 8px;
    padding: 10px;
}

/* Snapshot cards */
.snapshot-card {
    background: #003366;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

/* Section headings */
.section-title {
    color: #003366;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Activity & member voice blocks */
.activity-item,
.member-voice {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Optional: subtle spacing improvement */
.carousel {
    margin-top: 10px;
}

/* ================= GLOBAL ================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}



/* ================= NAVBAR ================= */

.bg-black {
    background-color: #003399 !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;

    background-color: #003399;
    box-shadow:
        0 6px 6px rgba(0, 0, 0, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.08);
}

    .navbar * {
        color: white !important;
    }

/* ================= MENU BUTTONS ================= */

.menubutton-container {
    display: flex;
    background-color: white;
    width: 150px;
    justify-content: space-around;
    align-items: center;
}

.navbuttons {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

    .navbuttons:hover {
        transform: translateY(-5px);
        fill: lightblue;
    }

/* ================= TOOLTIP ================= */

.tooltip-container {
    position: relative;
    cursor: pointer;
}

.custom-tooltip {
    width: 70px;
    text-align: center;
    font-size: 12px;
    visibility: hidden;
    color: lightblue !important;
    position: absolute;
    bottom: 65%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    background-color: transparent;
    padding: 2px 2px;
    border-radius: 0px;
}

.tooltip-container:hover .custom-tooltip {
    visibility: visible;
}

/* ================= HAMBURGER ================= */

.hamburgerbutton-container {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #6495ED;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: 0.2s;
}

    .hamburgerbutton-container:hover {
        background: #f0f5ff;
        transform: scale(1.05);
    }

#hamburgerMenuButton svg,
#hamburgerMenuButton svg line {
    stroke: navy !important;
}

/* DROPDOWN CONTAINER */

.dropdown-menu-Centre {
    width: 320px;
    border: 1px solid #6495ED;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-radius: 0;
    padding: 4px 0;
    right: 0;
    right: 0 !important;
    left: auto !important;
}

.dropdown {
    position: relative;
}

/* MAIN MENU ITEMS */

.dropdown-menu-Centre .parent-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: navy !important;
}

/* ICONS */

.menu-icon {
    width: 18px;
    height: 18px;
    stroke: navy !important;
    fill: none;
    stroke-width: 2;
}

/* CARET */

.caret {
    margin-left: auto;
    stroke: navy;
    transition: transform 0.2s ease;
}

.parent-item.active .caret {
    transform: rotate(90deg);
}

/* SUBMENU */

.submenu {
    display: none;
    background: white;
    border-left: 2px solid #6495ED;
}

    .submenu.open {
        display: block;
    }

    .submenu .dropdown-item {
        padding: 8px 36px;
        font-size: 13px;
        color: navy !important;
    }

        .submenu .dropdown-item:hover {
            background: #f0f5ff;
        }

/* DIVIDERS */

.dropdown-menu-Centre li {
    border-bottom: 1px solid #eef2ff;
}

    .dropdown-menu-Centre li:last-child {
        border-bottom: none;
    }

.dropdown-menu-Centre a {
    text-decoration: none;
}

/* ================= PROFILE ================= */
    .profilebutton-container {
        width: 40px;
        height: 40px;
        border: 1px solid #6495ED;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);        
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden; /* allow image to go outside */
    }

    .profile-img {
        width: 52px; /* larger than container */
        height: 52px;
        object-fit: cover;
        border-radius: 50%;
    }
    /* ================= SOCIAL BAR ================= */

    .socialbutton-container {
        width: 50px;
        height: 50px;
        background: #004aad;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .social-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .social-box {
        background: white;
        border: none;
        cursor: pointer;
        padding: 2px;
    }

    .inst {
        fill: #cc39a4;
    }

    .face {
        fill: #03A9F4;
    }

    .whats {
        fill: forestgreen;
    }

    .gm {
        fill: #f14336;
    }
    /* ===============================
   ACTIVATION PAGE WRAPPER
================================ */

    .login-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 15px;
        margin-top: 50px;
    }
    /* ===============================
   CARD
================================ */

    .cobalt-login {
        width: 100%;
        max-width: 420px;
        background: #ffffff;
        box-shadow: 0 6px 22px rgba(0,0,0,0.25);
        border: 1px solid rgba(255,255,255,0.3);
    }
    /* ===============================
   HEADER
================================ */

    .login-header {
        background: #003399; /* Cobalt Blue */
        padding: 25px 30px;
    }

        .login-header h2 {
            color: #ffffff;
            font-weight: 600;
            margin-bottom: 3px;
        }

        .login-header p {
            color: #cdd7ff;
            margin: 0;
            font-size: 14px;
        }
    /* ===============================
   BODY
================================ */

    .login-body {
        padding: 30px;
    }

    .activate-link-modern {
        display: block;
        text-align: center;
        margin-top: 5px;
        margin-bottom: 15px;
        font-size: 15px;
        font-weight: bold;
        color: #003399; /* Cobalt */
        text-decoration: none;
        transition: 0.3s;
    }
    /* ===============================
   INPUT GROUP
================================ */

    .input-group-login {
        display: flex;
        align-items: stretch;
        margin-top: 18px;
        border: 1px solid #d0d6e5;
        background: #ffffff;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .input-group-login .login-icon {
            width: 42px;
            min-width: 42px;
            background: #003399;
            stroke: white;
            fill: none;
            stroke-width: 2;
            padding: 10px;
        }

        .input-group-login input {
            flex: 1;
            border: none;
            outline: none;
            padding: 12px 14px;
            font-size: 15px;
            background: transparent;
        }

        .input-group-login:focus-within {
            border-color: #003399;
            box-shadow: 0 0 0 2px rgba(0,51,153,0.2);
        }
    /* ===============================
   VALIDATION
================================ */

    .text-danger {
        font-size: 13px;
        margin-top: 4px;
        display: block;
    }
    /* ===============================
   BUTTON
================================ */

    .btn-login-modern {
        width: 100%;
        margin: 25px 0 10px;
        padding: 12px;
        background: #003399;
        color: white;
        border: none;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

        .btn-login-modern:hover {
            background: #0044cc;
        }
    /* ===============================
   LINKS
================================ */

    .forgot-link-modern {
        display: block;
        text-align: center;
        padding: 10px 0 15px;
        font-size: 14px;
        color: #003399;
        text-decoration: none;
    }

        .forgot-link-modern:hover {
            text-decoration: underline;
        }

    .cobalt-banner {
        background: linear-gradient(90deg, #003580, #0047AB);
        color: white;
        padding: 25px 40px;
    }

        .cobalt-banner h2 {
            margin: 0;
            font-weight: 600;
        }

        .cobalt-banner p {
            margin: 4px 0 0;
            opacity: 0.85;
        }

    .cobalt-section {
        background: white;
        padding: 25px;
        border-left: 6px solid #0047AB;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
        border-radius: 0px;
        width: 100% !important;
    }

    .section-header h5 {
        font-weight: 600;
        margin-bottom: 15px;
        color: #003580;
    }

    .cobalt-modern-table thead {
        background: #f0f4ff;
    }

    .cobalt-modern-table tbody tr:hover {
        background-color: #f9fbff;
    }

    .status-pill {
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
    }

        .status-pill.active {
            background: #0047AB;
            color: white;
        }

        .status-pill.draft {
            background: #e0e6f5;
            color: #003580;
        }

    .link-cobalt {
        color: #0047AB;
        font-weight: 500;
        text-decoration: none;
    }

        .link-cobalt:hover {
            text-decoration: underline;
        }



    .btn-cobalt-solid {
        background-color: #0047AB;
        color: white;
        border: none;
    }

        .btn-cobalt-solid:hover {
            background-color: #003580;
        }
    /* FULL PAGE BACKGROUND */
    .auth-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #003580, #0047AB);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    /* CARD */
    .auth-card {
        background: white;
        padding: 40px;
        width: 100%;
        max-width: 420px;
        border-radius: 8px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    /* HEADER */
    .auth-header {
        text-align: center;
        margin-bottom: 25px;
    }

        .auth-header h2 {
            font-weight: 600;
            color: #003580;
            margin-bottom: 5px;
        }

        .auth-header p {
            color: #666;
            font-size: 14px;
        }
    /* BUTTON */
    .btn-cobalt-solid {
        background-color: #0047AB;
        color: white;
        border: none;
        padding: 10px;
        font-weight: 500;
    }

        .btn-cobalt-solid:hover {
            background-color: #003580;
        }
    /* LINKS */
    .auth-links {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
    }

        .auth-links a {
            color: #0047AB;
            text-decoration: none;
        }

            .auth-links a:hover {
                text-decoration: underline;
            }

    .auth-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #003580, #0047AB);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .auth-card {
        background: white;
        padding: 40px;
        width: 100%;
        max-width: 420px;
        border-radius: 8px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .auth-header {
        text-align: center;
        margin-bottom: 25px;
    }

        .auth-header h2 {
            font-weight: 600;
            color: #003580;
        }

        .auth-header p {
            color: #666;
            font-size: 14px;
        }

    .lblnavy {
        color: navy;
        font-size: 13px;
        margin-bottom:0!important;
    }

    select.form-select.cobalt-field {
        border: 0.6px solid #6495ED !important;
        border-radius: 0 !important;
    }

    .cobalt-field:Focus {
        border: 1px solid #6495ED;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
        padding: 0.375rem 0.75rem;
        border-radius: 0;
    }

.cobalt-banner-border {
    border: 0.7px solid #FCFCFC;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

    .form-select.cobalt-field:focus {
        border-color: #6495ED !important;
        box-shadow: 0 0 2px rgba(100,149,237,0.4);
    }

    .cobalt-field {
        border: 0.6px solid #6495ED;
        padding: 0.375rem 0.75rem !important;
        border-radius: 0;
    }



    .btn-cobalt-solid {
        background-color: #0047AB;
        color: white;
        border: none;
        padding: 10px;
        vertical-align: middle;
        font-weight: 500;
        width: 200px;
        height: 40px;
        border-radius: 0 !important;
    }

    .btn_do {
        border-radius: 0 !important;
        font-weight: 500;
        padding: 10px;
        vertical-align: middle;
        width: 200px;
        height: 40px;
    }

    .bt_do_wd {
        width: 300px !important;
    }

    .btn-cobalt-solid:hover {
        background-color: #003580;
        color: white;
        font-weight: bold;
    }

    .auth-links {
        text-align: center;
        font-size: 13px;
    }

        .auth-links a {
            color: #0047AB;
            text-decoration: none;
        }

            .auth-links a:hover {
                text-decoration: underline;
            }

    .cobalt-search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        max-height: 250px;
        overflow-y: auto;
        z-index: 9999;
    }

    .cobalt-search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border: 1px solid #ddd;
        max-height: 250px;
        overflow-y: auto;
        z-index: 9999;
        border-radius: 4px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .dropdown-item-custom {
        padding: 8px 12px;
        cursor: pointer;
    }

        .dropdown-item-custom:hover {
            background-color: #0047AB;
            color: white;
        }

    .select2-container .select2-selection--single {
        height: 34px !important;
        border: 0.6px solid #6495ED !important;
        border-radius: 0 !important;
    }

    .select2-container .select2-selection__rendered {
        line-height: 36px !important;
        padding-left: 10px !important;
    }

    .select2-container .select2-selection__arrow {
        height: 36px !important;
    }

.nav-right-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

/*profile*/
.profile-wrapper {
    display: block;
    padding: 1px 0 0 1px; /* 1px from top & left */
}

.profile-card {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.profile-header {
    background: #003399;
    padding: 10px 16px; /* reduced height */
}

    .profile-header h3 {
        color: white;
        margin: 0;
        font-weight: 600;
        font-size: 16px; /* smaller font */
    }

    .profile-header span {
        color: #cdd7ff;
        font-size: 11px;
    }

/* BODY */
.profile-body {
    padding: 14px 16px; /* tighter padding */    
}

/* SECTION */

.profile-section {
    margin-bottom: 12px; /* closer sections */
}

    .profile-section h5 {
        color: #003399;
        font-weight: 600;
        font-size: 13px;
        border-bottom: 1px solid #e2e6ff;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }

/* VIEW MODE ROWS */
.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0; /* tighter rows */
    border-bottom: 1px dashed #e1e1e1;
    font-size: 12.5px; /* smaller text */
}

    .profile-row span {
        color: #666;
    }

    .profile-row strong {
        color: #003399;
        font-weight: 600;
    }

/* INPUTS (EDIT MODE) */
.profile-input {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    font-size: 12.5px;
}

    .profile-input:focus {
        border-color: #003399;
        box-shadow: 0 0 4px rgba(0,51,153,0.25);
        outline: none;
    }

/* ACTION BUTTONS */
.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.btn-edit,
.btn-save,
.btn-cancel {
    border-color: #003399;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}
/* ================= PROFILE PHOTO BLOCK ================= */

.profile-top {
    display: flex;    
    margin-bottom: 14px;
}

/* PHOTO */
.profile-photo {
    width: 110px;
    height: 110px;
    border: 1px solid #003399;    
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    overflow: hidden;
    background: #f8f9ff;
    flex-shrink: 4;
    
}

    .profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* EDIT MODE */
    .profile-photo.edit {
        position: relative;
    }

.photo-upload {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,51,153,0.85);
    color: white;
    font-size: 11px;
    text-align: center;
    padding: 4px 4px;
    cursor: pointer;
}

/* INFO NEXT TO PHOTO */
.profile-top-info {
    flex: 1;
}

    .profile-top-info .profile-row {
        font-size: 12px;
        width: 100%;
        padding: 3px 5px 5px 10px;
    }

.icon-flip-horizontal {
    transform: scaleX(-1);
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo {
        width: 90px;
        height: 90px;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .profile-card {
        width: 96%;
    }
    .profile-dashboard-wrapper {
        flex-direction: column;
    }
}

.profile-dashboard-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;    
    gap: 1%;
    width: 100%;
}

.profile-page-layout {
    display: flex;
    width: 100%;
    margin-top: 80px; /* below navbar */
    padding: 0 5px;
    gap: 10px; /* EXACT 5px gap */
    align-items: stretch; /* FORCE same height */
}

/* LEFT PANEL — EXACT 60% */
.profile-left {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
}

/* RIGHT PANEL — EXACT 40% */
.profile-right {
    flex: 0 0 39%;
    max-width: 40%;
    display: flex;
}

/* BOTH CARDS SAME HEIGHT */

.profile-card,
.stats-card {
    width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
/* STAT BOX */
.stat-box {
    background: #f8f9ff;
    border: 1px solid #dfe5ff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.stats-grid {
    flex: 1; /* fills remaining height */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 boxes per row */
    grid-template-rows: repeat(3, 1fr); /* 3 rows */
    gap: 10px;
    padding: 14px;
    flex-direction: column;
}
/* 🔥 THIS is the fix */
.stat-icon {
    width: 40px;
    height: 40px;
    line-height: 0; /* KILLS SVG baseline shift */
    text-align: center;
}

    /* SVG normalization */
    .stat-icon svg {
        width: 40px;
        height: 40px;
        display: inline-block; /* NOT block, NOT absolute */
        vertical-align: middle; /* CRITICAL */
    }


.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.stat-countt {
    font-size: 19px;
    font-weight: 700;
    color: #003399;
}


.stat-count {
    font-size: 20px;
    font-weight: 700;
    color: #003399;
}

.stat-label {
    font-size: 12px;
    color: #555;
}

.directory-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    border-bottom: 1px solid #eee;
}

.directory-photo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.directory-details {
    flex: 1;
}

.directory-name {
    font-weight: 600;
}

.unit-badge {
    background: #003399;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.occupancy-badge {
    background: #e9f2ff;
    color: #003399;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.directory-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.directory-search {
    flex: 1;
}
