/* ===== FAMILY REUNION DASHBOARD - MERGED STYLES ===== */


/* Includes all pages: Dashboard, Announcements, Obituaries, Birthday Calendar,
   Family Tree, Marketplace (Browse, Add Listing, My Listings, My Inquiries),
   Add Gallery Image, Chatroom, Users, Profile */


/* ---------- COLOR VARIABLES (YOUR THEME) ---------- */

:root {
    /* Core Colors */
    --primary: #197ed1;
    /* main blue */
    --accent: #ffca28;
    /* warm gold */
    --secondary: #26c6da;
    /* soft cyan */
    --danger: #ea1c18;
    /* vibrant red */
    --extra: #26c6da;
    /* duplicate secondary */
    /* Element-Specific Colors */
    --icon-default: var(--secondary);
    /* icons cyan */
    --icon-accent: var(--accent);
    /* special icons gold */
    --icon-danger: var(--danger);
    /* warning icons red */
    --heading-primary: var(--primary);
    /* main headings blue */
    --heading-secondary: var(--secondary);
    /* subheadings cyan */
    --heading-accent: var(--accent);
    /* featured headings gold */
    --button-primary-bg: var(--primary);
    /* primary button blue */
    --button-primary-text: #ffffff;
    --button-secondary-bg: var(--secondary);
    /* secondary button cyan */
    --button-secondary-text: #ffffff;
    --button-accent-bg: var(--accent);
    /* accent button gold */
    --button-accent-text: #000000;
    --button-danger-bg: var(--danger);
    /* danger button red */
    --button-danger-text: #ffffff;
    --border-primary: var(--primary);
    /* primary borders blue */
    --border-soft: var(--secondary);
    /* soft borders cyan */
    --border-light: #cddfff;
    /* light borders */
    --shadow-primary: rgba(25, 126, 209, 0.2);
    /* blue shadow */
    --shadow-accent: rgba(255, 202, 40, 0.3);
    /* gold shadow */
    --shadow-secondary: rgba(38, 198, 218, 0.3);
    /* cyan shadow */
    /* Backgrounds */
    --bg-light: #f6f6f6;
    --bg-soft: #f0f7ff;
    --bg-sidebar-hover: #f6f6f6;
    --bg-card: #ffffff;
    --bg-main: #f4f7fb;
    /* Text Colors */
    --text-dark: #334155;
    --text-muted: #5f6f89;
    --text-light: #ffffff;
}

a {
    text-decoration: none;
}


/* ---------- GLOBAL & BASE STYLES (shared) ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f4f7fb;
    height: 100vh;
    overflow: hidden;
}

.dashboard-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: capitalize !important;
}


/* ---------- SIDEBAR (identical on all pages) ---------- */

.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.sidebar-logo {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f0f2f6;
    margin-bottom: 0.5rem;
}

.sidebar-logo img {
    max-width: 60%;
    height: auto;
    display: block;
    margin: auto;
}

.nav-main {
    list-style: none;
    padding: 0 1rem 1.5rem 1rem;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.nav-main::-webkit-scrollbar {
    width: 5px;
}

.nav-main::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.nav-main::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 12px;
}

.nav-main li {
    margin: 0.25rem 0;
}

.nav-main li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    color: var(--dark-text);
    font-weight: 450;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.1s;
    white-space: nowrap;
}

.nav-main li a i {
    width: 22px;
    font-size: 1.2rem;
    color: var(--sidebar-icon);
    transition: color 0.2s;
}

.nav-main li a:hover {
    background: var(--sidebar-hover);
    color: var(--primary);
}

.nav-main li a:hover i {
    color: var(--primary);
}

.nav-main li a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 500;
}

.nav-main li a.active i {
    color: var(--sidebar-active-text);
}

.nav-main ul {
    list-style: none;
    padding-left: 2.5rem;
    margin: 0.25rem 0;
    display: none;
}

.nav-main ul.show-submenu {
    display: block;
}

.nav-main ul li a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    border-radius: 12px;
}

#user-unread-count {
    background: var(--accent);
    color: #000;
    border-radius: 30px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 202, 40, 0.3);
}

.main-panel {
    flex: 1;
    background: #f9fcff;
    overflow-y: auto;
    padding: 2rem 2.5rem;
}


/* ---------- UTILITY CLASSES ---------- */

.text-small {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.divider-light {
    height: 1px;
    background: #e6edf6;
    margin: 1rem 0;
}


/* ---------- RESPONSIVE (sidebar collapse) ---------- */

@media (max-width: 800px) {
    .sidebar {
        width: 90px;
        overflow: visible;
    }
    .sidebar .sidebar-mini-hide {
        display: none;
    }
    .sidebar-logo img {
        width: 100%;
    }
    .nav-main li a {
        justify-content: center;
        padding: 0.8rem 0;
    }
    .nav-main li a i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    .main-panel {
        padding: 1.5rem;
    }
}


/* ========== PAGE-SPECIFIC STYLES ========== */


/* ----- FAMILY DASHBOARD (first page) ----- */

.welcome-card {
    background: white;
    border-radius: 32px;
    padding: 2rem 2.5rem;
    box-shadow: 0 12px 40px -10px rgba(0, 40, 80, 0.1);
    border: 1px solid #ffffff80;
    backdrop-filter: blur(2px);
    margin-bottom: 2rem;
}

.welcome-card h1 {
    font-weight: 600;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: 26px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 70, 120, 0.06);
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 25px -10px rgba(25, 126, 209, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
}

.stat-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.stat-content p {
    font-size: 1.6rem;
    font-weight: 650;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.page-links-hint {
    background: #eef4ff;
    border-radius: 26px;
    padding: 1.2rem 2rem;
    margin-top: 2.5rem;
    color: var(--primary);
    font-size: 1rem;
    border: 1px solid var(--border-light);
}


/* ----- ANNOUNCEMENTS PAGE ----- */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-create:hover,
.btn-add-listing:hover,
.btn-add-photo:hover,
.btn-add-memorial:hover {
    background: var(--hover-bg);
    border-color: #9bb9f0;
}

.announcement-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 8px 22px -8px rgba(0, 30, 60, 0.08);
    transition: 0.2s;
}

.announcement-card:hover {
    border-color: #b1d0fb;
    box-shadow: 0 15px 30px -12px #a0c0f0;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.announcement-meta {
    flex: 1;
}

.announcement-author {
    font-weight: 600;
    color: #1a2b44;
    margin-bottom: 2px;
}

.announcement-date {
    font-size: 0.8rem;
    color: #6c819e;
}

.announcement-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0.5rem 0 0.75rem 0;
}

.announcement-content {
    color: #2d3f5e;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.announcement-stats {
    display: flex;
    gap: 20px;
    color: #62748c;
    font-size: 0.9rem;
    border-top: 1px solid #eef3fa;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.announcement-stats i {
    margin-right: 6px;
    color: var(--primary);
}


/* ----- OBITUARIES PAGE ----- */

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.memorial-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem 1.5rem 1.8rem 1.5rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 8px 22px -8px rgba(0, 30, 60, 0.08);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.memorial-card:hover {
    border-color: #b1d0fb;
    box-shadow: 0 15px 30px -12px #a0c0f0;
}

.memorial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e6eefc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 6px 14px rgba(0, 40, 70, 0.1);
    font-size: 3rem;
    color: #7f9fbb;
}

.memorial-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.memorial-dates {
    font-size: 0.95rem;
    color: #5a6f8c;
    background: #f0f5fd;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 1rem;
}

.memorial-tribute {
    color: #2d3f5e;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0.8rem 0 1.2rem 0;
    flex: 1;
}

.memorial-footer {
    width: 100%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eef3fa;
    padding-top: 1rem;
    color: #62748c;
    font-size: 0.9rem;
}

.memorial-footer i {
    margin-right: 5px;
    color: var(--primary);
}

.btn-remember {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 0.4rem 1.4rem;
    font-size: 0.9rem;
    color: var(--primary);
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-remember:hover {
    background: var(--hover-bg);
}


/* ----- BIRTHDAY CALENDAR PAGE ----- */

.next-birthday-banner {
    background: var(--bg-light);
    border-radius: 40px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 8px 18px -8px rgba(38, 198, 218, 0.5);
}

.next-birthday-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.next-birthday-icon {
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 202, 40, 0.2);
}

.next-birthday-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.next-birthday-info p {
    margin: 0;
    color: #2b2b2b;
}

.next-birthday-countdown {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 6px 14px rgba(25, 126, 209, 0.5);
}

.next-birthday-countdown i {
    color: #fff !important;
}

.month-section {
    margin-bottom: 2.5rem;
}

.month-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.birthday-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.birthday-card {
    background: white;
    border-radius: 26px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 6px 14px rgba(0, 30, 60, 0.04);
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.birthday-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 22px -12px var(--accent);
}

.birthday-avatar {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    font-weight: 500;
}

.birthday-details {
    flex: 1;
}

.birthday-name {
    font-weight: 600;
    color: #1a2b44;
    font-size: 1.1rem;
    line-height: 1.2;
}

.birthday-date {
    font-size: 0.9rem;
    color: #121212;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.birthday-date i {
    font-size: 0.8rem;
    color: var(--danger);
}

.birthday-age {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    margin-top: 5px;
    text-transform: capitalize;
}


/* ----- FAMILY TREE PAGE ----- */

.tree-container {
    background: white;
    border-radius: 40px;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 40px -10px rgba(0, 40, 80, 0.1);
    border: 1px solid #ffffff80;
}

.gen-label {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c819e;
    margin-bottom: 0.5rem;
}

.tree-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    margin: 1rem 0 2rem 0;
    position: relative;
}

.tree-card {
    background: #f9fcff;
    border-radius: 30px;
    padding: 1.2rem 1.5rem;
    border: 1px solid #e2ecfe;
    box-shadow: 0 8px 20px -10px rgba(25, 126, 209, 0.1);
    min-width: 160px;
    text-align: center;
    transition: 0.15s;
}

.tree-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 25px -10px rgba(25, 126, 209, 0.3);
}

.tree-card .avatar {
    width: 70px;
    height: 70px;
    background: #e2ecfe;
    border-radius: 35px;
    margin: 0 auto 0.8rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 500;
}

.tree-card .name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.tree-card .birth-year {
    font-size: 0.9rem;
    color: #62748c;
    margin-top: 4px;
}

.tree-card .relation {
    font-size: 0.8rem;
    background: var(--bg-light);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    margin-top: 8px;
    color: var(--primary);
}

.connector-line {
    width: 2px;
    height: 30px;
    background: var(--border-light);
    margin: 0 auto;
}

.connector-horizontal {
    height: 2px;
    background: var(--border-light);
    flex: 1;
    max-width: 80px;
}

.partner-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.note-banner {
    background: #ecf3ff;
    border-radius: 60px;
    padding: 0.8rem 1.8rem;
    margin-top: 2.5rem;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
}


/* ----- MARKETPLACE (Browse) ----- */

.marketplace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 300px;
    max-width: 500px;
}

.search-bar input {
    border-radius: 40px;
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.5rem;
    background: white;
    flex: 1;
}

.search-bar button {
    border-radius: 40px;
    border: none;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
}

.filter-dropdown {
    border-radius: 40px;
    border: 1px solid var(--border-light);
    background: white;
    padding: 0.6rem 1.8rem;
    color: var(--primary);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pill {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--dark-text);
    cursor: default;
    transition: 0.2s;
}

.pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pill:hover {
    background: var(--hover-bg);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.listing-card {
    background: white;
    border-radius: 28px;
    padding: 1.2rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 8px 22px -8px rgba(0, 30, 60, 0.08);
    transition: 0.2s;
    position: relative;
}

.listing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px -12px rgba(25, 126, 209, 0.3);
}

.listing-image {
    width: 100%;
    height: 160px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #7f9fbb;
    margin-bottom: 1rem;
}

.listing-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--bg-light);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    margin-bottom: 0.6rem;
}

.listing-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    padding-right: 4rem;
    /* for badge */
}

.listing-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.listing-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #62748c;
    border-top: 1px solid #eef3fa;
    padding-top: 0.8rem;
    margin: 0.5rem 0 0.8rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--dark-text);
    text-decoration: none;
}

.page-item.active-page {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


/* ----- ADD NEW LISTING PAGE (form styles) ----- */

.form-card {
    background: white;
    border-radius: 40px;
    padding: 2rem 2.5rem;
    box-shadow: 0 12px 40px -10px rgba(0, 40, 80, 0.1);
    border: 1px solid #ffffff80;
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eef3fa;
    padding-bottom: 0.5rem;
}

.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    background: #f9fcff;
    transition: 0.2s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.upload-area i {
    font-size: 3rem;
    color: #7f9fbb;
}

.upload-area p {
    margin-top: 0.5rem;
    color: #4f658d;
}

.image-preview-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-item {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f9fbb;
    border: 1px solid var(--border-light);
    position: relative;
}

.preview-item .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    border: 2px solid white;
}

.preview-item .remove-btn i.fas.fa-times {
    color: #ffff !important;
}

.form-label {
    font-weight: 500;
    color: #2d3f5e;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    border-radius: 30px;
    border: 1px solid var(--border-light);
    padding: 0.7rem 1.2rem;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(25, 126, 209, 0.1);
}

textarea.form-control {
    border-radius: 24px;
}

.btn-submit {
    background: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 18px -6px var(--primary);
    transition: 0.2s;
}

.btn-submit:hover {
    background: var(--primary);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-cancel {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 0.8rem 2rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-right: 1rem;
}


/* ----- MY LISTINGS PAGE ----- */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2ecfe;
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--dark-text);
    cursor: default;
    text-decoration: none;
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #e0f2e1;
    color: #2e7d32;
}

.status-sold {
    background: #ffecb3;
    color: #b26a00;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: white;
    color: #4b6e9f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    color: var(--primary);
}


/* ----- MY INQUIRIES PAGE ----- */

.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.inquiry-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 8px 22px -8px rgba(0, 30, 60, 0.08);
    transition: 0.2s;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.inquiry-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px -12px rgba(25, 126, 209, 0.2);
}

.inquiry-avatar {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

.inquiry-content {
    flex: 1;
    min-width: 250px;
}

.inquiry-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.inquiry-user {
    font-weight: 600;
    color: var(--primary);
}

.inquiry-item {
    background: #f0f5fd;
    border-radius: 30px;
    padding: 0.2rem 1rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.inquiry-date {
    font-size: 0.85rem;
    color: #6c819e;
    margin-left: auto;
}

.inquiry-message {
    color: #2d3f5e;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.inquiry-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.badge-status {
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unread {
    background: #ffecb3;
    color: #b26a00;
}

.badge-replied {
    background: #e0f2e1;
    color: #2e7d32;
}

.badge-archived {
    background: #e9eef2;
    color: #546e7a;
}


/* ----- ADD GALLERY IMAGE PAGE ----- */

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}


/* ----- CHATROOM PAGE ----- */

.chat-container {
    background: white;
    border-radius: 40px;
    box-shadow: 0 12px 40px -10px rgba(0, 40, 80, 0.1);
    border: 1px solid #ffffff80;
    height: calc(110vh - 9rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eef3fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title h3 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.chat-title p {
    margin: 0;
    color: #6c819e;
    font-size: 0.9rem;
}

.chat-actions {
    display: flex;
    gap: 0.8rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-row {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.message-row.incoming {
    align-self: flex-start;
}

.message-row.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.message-content {
    background: #f4f9ff;
    border-radius: 24px 24px 24px 4px;
    padding: 1rem 1.5rem;
    position: relative;
}

.outgoing .message-content {
    background: var(--primary);
    color: white;
    border-radius: 24px 24px 4px 24px;
}

.outgoing .message-content .message-text {
    color: white;
}

.outgoing .message-content .message-meta {
    color: rgba(255, 255, 255, 0.7);
}

.message-sender {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.outgoing .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.message-text {
    color: #2d3f5e;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.message-meta {
    font-size: 0.7rem;
    color: #6c819e;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eef3fa;
    background: white;
    border-radius: 0 0 40px 40px;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 0.8rem 1.5rem;
    background: white;
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(25, 126, 209, 0.1);
}

.btn-send {
    background: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    color: white;
    transition: 0.2s;
}

.btn-send:hover {
    background: var(--primary);
    filter: brightness(1.1);
}


/* ----- USERS PAGE ----- */

.search-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    min-width: 250px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    color: white;
    font-weight: 500;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.user-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem 1.2rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 8px 22px -8px rgba(0, 30, 60, 0.08);
    transition: 0.2s;
    text-align: center;
}

.user-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px -12px rgba(25, 126, 209, 0.3);
}

.user-avatar {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 500;
}

.user-name {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.user-role {
    font-size: 0.9rem;
    color: var(--primary);
    background: var(--bg-light);
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 0.8rem;
}

.user-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #62748c;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.user-detail i {
    width: 18px;
    color: var(--primary);
}

.user-bio {
    font-size: 0.9rem;
    color: #2d3f5e;
    margin: 1rem 0;
    line-height: 1.4;
}

.user-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-outline-sm {
    border: 1px solid var(--border-light);
    background: white;
    color: var(--dark-text);
}


/* ----- PROFILE PAGE ----- */

.profile-card {
    background: white;
    border-radius: 40px;
    padding: 2rem 2.5rem;
    box-shadow: 0 12px 40px -10px rgba(0, 40, 80, 0.1);
    border: 1px solid #ffffff80;
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    font-weight: 500;
    border: 4px solid white;
    box-shadow: 0 6px 14px rgba(0, 40, 70, 0.1);
}

.avatar-upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
    cursor: pointer;
}

.profile-title h3 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.profile-title p {
    color: #6c819e;
    margin-bottom: 0.3rem;
}


/* simple-line-icons fallback (if CDN fails) */

.si-user:before {
    content: "\e005";
}

.si-logout:before {
    content: "\e065";
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add-photo {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 60, 130, 0.05);
    transition: 0.2s;
}

.btn-add-photo:hover {
    background: var(--hover-bg);
    border-color: #9bb9f0;
}

.featured-section {
    margin-bottom: 3rem;
}

.featured-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.featured-item {
    background: white;
    border-radius: 24px;
    padding: 0.8rem;
    border: 1px solid #eef3fa;
    transition: 0.15s;
}

.featured-item:hover {
    border-color: var(--primary);
}

.featured-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--bg-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #7f9fbb;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.featured-caption {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3f5e;
    margin-bottom: 0.2rem;
}

.featured-meta {
    font-size: 0.75rem;
    color: #6c819e;
}

.albums-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background: white;
    border-radius: 28px;
    padding: 1.2rem;
    border: 1px solid rgba(0, 70, 120, 0.06);
    box-shadow: 0 8px 22px -8px rgba(0, 30, 60, 0.08);
    transition: 0.2s;
}

.album-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px -12px rgba(25, 126, 209, 0.2);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1/1;
    background: #d6e4ff;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    overflow: hidden;
}

.album-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.album-stats {
    font-size: 0.8rem;
    color: #62748c;
    display: flex;
    gap: 1rem;
}

@media (max-width: 800px) {
    .sidebar {
        width: 90px;
    }
    .sidebar .sidebar-mini-hide {
        display: none;
    }
    .sidebar-logo img {
        width: 100%;
    }
    .nav-main li a {
        justify-content: center;
        padding: 0.8rem 0;
    }
    .main-panel {
        padding: 1.5rem;
    }
}

i {
    color: var(--primary) !important;
}

a.small.text-decoration-none {
    color: #000;
}

.bg-white.p-4.rounded-4.shadow-sm.h-100.border.border-light a {
    text-transform: capitalize;
}

.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background: var(--primary) !important;
}

.btn-outline-primary:hover i {
    color: #fff !important;
}


/* ======================================================== */