body {
    font-family: "Manrope", sans-serif;
    background-color: var(--bs-body-bg);
    /* ... rest of the styles ... */
}

/* Floating Glass Effect */
.custom-navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s ease-in-out;
    padding: 0.75rem 0;
}

/* Logo scaling */
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Clean Toggler */
.navbar-toggler {
    padding: 0.25rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Profile & Theme Icons */
.nav-icon-btn {
    color: var(--nav-text);
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-icon-btn:hover {
    background: rgba(100, 116, 139, 0.1);
    color: var(--btn-indigo);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 54px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #cbd5e1;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px; /* Adjusted for SVGs */
}

.svg-icon {
z-index: 1;
transition: opacity 0.3s ease;
stroke: white; /* Default color for icons on the track */
}

.icon-sun {
opacity: 1;
}

.icon-moon {
opacity: 1;
}

.slider .ball {
background-color: #fff;
bottom: 3px;
height: 22px;
left: 3px;
position: absolute;
transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
width: 22px;
border-radius: 50%;
z-index: 2;
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Dark Mode State logic */
input:checked + .slider {
background-color: #4f46e5; /* Your primary indigo color */
}

input:checked + .slider .ball {
transform: translateX(26px);
}

/* Subtle touch: fade icons slightly when covered by the ball */
input:not(:checked) + .slider .icon-sun { opacity: 0.5; }
input:checked + .slider .icon-moon { opacity: 0.5; }

/* body.dark-mode .slider { */
/*     background-color: #334155; */
/* } */

/* Mobile adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        background: var(--nav-bg);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 15px;
        border: 1px solid var(--nav-border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .action-divider { display: none; }
}

.hero-banner {
    background: var(--bg-banner);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.community-title {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* Icons maintain their identity but get a glow in dark mode */
.icon-male { color: #00a8ff; }
.icon-female { color: #ff4d6d; }

body.dark-mode .icon-male { filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.4)); }
body.dark-mode .icon-female { filter: drop-shadow(0 0 8px rgba(255, 77, 109, 0.4)); }

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--feature-text);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Specific Icon Backgrounds - work in both modes */
.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.bg-reviews { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.bg-rating { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.bg-ranking { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

.feature-text { font-weight: 600; }


.default-avatar {
    width: 100px;
    height: 100px;
    background-color: #ccc; /* Grey background */
    color: #fff;           /* White letter */
    display: flex;
    align-items: center;   /* Vertical center */
    justify-content: center; /* Horizontal center */
    font-size: 40px;       /* Adjust size of the letter */
    font-weight: bold;
    text-transform: uppercase;
}

/* Custom styling to emulate the minimal, slightly blurry Tailwind effect */
.navbar-minimal {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.nav-link:hover {
    border-bottom: 2px solid #107ab0; /* Indigo color for hover underline */
    color: #107ab0 !important;
}

.text-indigo {
    color: #107ab0;
}

.btn-outline-indigo {
    color: #107ab0;
    border-color: #107ab0;
    border-radius: 10px; /* Pill shape */
    font-weight: 500;
    transition: all 0.2s;
    font-weight: 700;
}
.btn-outline-indigo:hover {
    background-color: #107ab0;
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
}

.btn-primary-indigo {
    color: #eee;
    background-color: #107ab0;
    border-radius: 10px; /* Pill shape */
    font-weight: 500;
    transition: all 0.2s;
    font-weight: 700;
}
.btn-primary-indigo:hover {
    background-color: #107ab0;
    color: white;
    opacity: 0.9;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
}

.app-logo {
    color: #107ab0;
    font-weight: 800;
}


/* Smaller size for the icon container and icon for inline display */
.feature-icon-container {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 0.6rem; /* Slightly smaller padding */
    border-radius: 0.5rem; /* Smaller rounded corners */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* Smaller icon size */
    /* Ensure it does not shrink if text is long */
    flex-shrink: 0;
}

[data-bs-theme="dark"] {
  --custom-shadow-color: rgba(255, 255, 255, 0.05); /* Dark Mode Shadow */
}
[data-bs-theme="light"] {
  --custom-shadow-color: rgba(10, 10, 10, 0.05); /* Dark Mode Shadow */
}

.feature-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 0.75rem;
    box-shadow: 0 0.7rem 1rem var(--custom-shadow-color) !important;
}
.card-body-horizontal {
    /* Use flex for horizontal layout of icon and title */
    display: flex;
    align-items: center; /* Keep everything vertically centered */
    padding: 0 !important;
    /* Removed 'justify-content: space-between;' to keep icon and text grouped on the left */
}

/* Custom styles for the interactive directory structure */
.country-header {
    background-color: #529EC5;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    border-radius: 0.3rem;
    font-size: 1.5rem; /* h4 equivalent */
    font-weight: 700;
}

.state-name {
    font-size: 1.25rem; /* h5 equivalent */
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    /* color: #495057; /\* Bootstrap text-secondary *\/ */
    color: var(--custom-text-color) !important;
}
.city-name {
    font-size: 1.2rem;
    padding: 0.2rem 0;
    color: #6c757d; /* Bootstrap text-muted */
    margin-right:10px;
}

[data-bs-theme="dark"] {
    --custom-text-color: #aaa; /* Dark Mode Shadow */
}
[data-bs-theme="light"] {
    --custom-text-color: #303030; /* Dark Mode Shadow */
}

/* Custom classes for the collapse transition (used by custom JS) */
.list-container {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    margin-left:5%;
}
.expanded {
    max-height: 100%; /* Large enough value to ensure full expansion */
}

/* Ensure State/City content is fully visible inside the Country collapse target */
.no-collapse {
    display: block !important;
    max-height: none !important;
}


.forum-home-btn:hover {
    opacity: 0.7;
}

.post-list-item {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: background-color 0.2s;
    border-bottom: 1px dotted #808080;
}

.post-title-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}
.post-title-link:hover {
    text-decoration: underline;
}
.post-meta-data {
    font-size: 0.9rem;
    color: #6c757d;
}
.rating-metric {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}
.rating-badge {
    font-size: 1rem;
    min-width: 60px;
    text-align: center;
}
.recommendation-icon {
    font-size: 1.2rem;
}

/* Mobile Adjustments (Stacks columns vertically) */
@media (max-width: 768px) {
    .rating-metric {
        justify-content: flex-start; /* Align metrics to the left on mobile */
        margin-top: 10px;
    }
    .post-meta-data {
        margin-top: 5px;
    }
}


.post-box {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    margin-top:-10px;
    padding: 1rem;
    transition: background-color 0.2s;
    border-bottom: 1px dotted #808080;
}

/* Default State: Hide the filled heart */
.like-btn .heart-filled {
    display: none !important;
}

.like-btn .heart-outline {
    display: inline-block !important;
}

/* Liked State: Swap them */
.like-btn.liked .heart-outline {
    display: none !important;
}

.like-btn.liked .heart-filled {
    display: inline-block !important;
}

/* The Animation Definition */
@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); } /* Scale up */
    100% { transform: scale(1); } /* Back to normal */
}

/* Apply the animation when the class is present */
.heart-pop-animation {
    animation: heart-pop 0.2s ease-in-out;
}

/* Ensure the SVGs can scale properly */
.like-btn svg {
    transition: transform 0.1s ease;
    display: inline-block;
    vertical-align: middle;
}

.like-btn.liked .heart-filled path {
    fill: #107AB0; /* A nice Instagram-style red */
}


.pagination-container .page-link {
        border: none;
        margin: 0 3px;
        border-radius: 8px !important; /* Rounded corners */
        color: #495057;
        transition: all 0.2s ease-in-out;
        font-weight: 500;
        padding: 8px 16px;
    }

.pagination-container .page-item.active .page-link {
    background-color: #107AB0; /* Brand color */
    color:#ddd;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.pagination-container .page-item.disabled .page-link {
    background-color: transparent;
    opacity: 0.5;
}

.pagination-container .page-link:hover:not(.disabled) {
    color: #107AB0;
    transform: translateY(-1px);
}

.page-info {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 0.9rem;
    color: #6c757d;
}


.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.pricing-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-header {
    background: none;
    border-bottom: none;
    padding-top: 2rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
}

.recommended {
    border: 2px solid #0d6efd;
    position: relative;
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d6efd;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-select {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
}


.modern-post-card {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Left Accent Header */
.status-sidebar {
    padding: 0.5rem;
}

/* Clean Data Grid */
.meta-item {
    margin-bottom: 1.25rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05rem;
    margin-bottom: 4px;
    display: block;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
}

/* The Content Area */
.content-body {
    padding: 0.5rem;
}

.rose-badge {
    display: inline-flex;
    align-items: center;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 6px 16px;
    border-radius: 99px;
    color: #c53030;
    font-weight: 700;
}

.experience-text {
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
    border-left: 3px dotted grey;
}

.pill-tag {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Custom Threading */
.replies-container {
    border-bottom-left-radius: 25px;
    border-left: 1px solid darkgrey;

}

.comment-card {
    transition: all 0.2s ease-in-out;
}

/* User Meta sub-text */
.user-meta {
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

/* Rounded avatars with borders */
.rounded-circle {
    object-fit: cover;
    border: 2px solid white;
}

/* OP Badge specific styling */
.badge.bg-dark-subtle {
    background-color: #f1f3f5 !important;
    color: #495057 !important;
}

.membership-section {
    min-height: 100vh;
}

.membership-card {
    transition: all 0.4s ease;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.bg-primary-subtle {
    background-color: #e7f1ff !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.profile-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-top: -10px;
}
.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.stats-badge {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
}

.form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.step-link {
    cursor: pointer;
    pointer-events: none; /* Disable clicking on steps */
    color: #6c757d !important;
    border-radius: 15px;
}
.step-link.active {
    color: #fff !important;
    border-bottom: 3px solid #107AB0;
    background-color: #107AB0;
    font-weight: bold;
}

.bbcode-toolbar .btn:hover {
    border-color: #0d6efd !important;
    color: #0d6efd;
    z-index: 2; /* Keeps border visible on group hover */
}

/* Tooltip hint for users */
.bbcode-info-pill {
    cursor: help;
    transition: opacity 0.2s;
}
.bbcode-info-pill:hover {
    opacity: 0.8;
}

.leaderboard-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.rank-badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    background: #f8f9fa;
    color: #6c757d;
}
/* Style for Top 3 */
.rank-1 { background: #ffd700; color: #000; } /* Gold */
.rank-2 { background: #c0c0c0; color: #000; } /* Silver */
.rank-3 { background: #cd7f32; color: #fff; } /* Bronze */

.rating-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}
.meta-text { font-size: 0.85rem; color: #6c757d; }

/* Dynamic Chat Container */
#chat-window {
    /* Uses Bootstrap's default background or dark mode background */
    background-color: var(--bs-tertiary-bg);
    height: 60vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Speech Bubbles */
.message {
    max-width: 75%;
    margin-bottom: 15px;
    padding: 8px 15px;
    border-radius: 18px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Received Message (Dynamic Background) */
.received {
    align-self: flex-start;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-bottom-left-radius: 4px;
}

/* Sent Message (Stays Blue, or use primary) */
.sent {
    align-self: flex-end;
    background-color: var(--bs-primary);
    color: #fff; /* White text looks better on blue in both modes */
    border-bottom-right-radius: 4px;
}

.msg-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.6;
}

/* Sticky Footer (Dynamic) */
.chat-input-area {
    background-color: var(--bs-body-bg);
    padding: 15px;
    border-top: 1px solid var(--bs-border-color);
}

.rounded-input {
    border-radius: 25px !important;
    padding-left: 20px;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

/* User Header (Dynamic) */
.user-header {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 10px 20px;
}

/* Responsive Tab Styling */
@media (max-width: 576px) {
    #profileActivityTabs {
        display: flex;
        width: 100%;
        margin: 0;
    }

    #profileActivityTabs .nav-item {
        flex: 1; /* Forces each tab to take up equal width (33.33%) */
        text-align: center;
    }

    #profileActivityTabs .nav-link {
        padding: 8px 4px; /* Reduced vertical and horizontal padding */
        font-size: 14px;  /* Smaller font for tight screens */
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    #profileActivityTabs .badge {
        display: block;   /* Moves the count below the text for more space */
        margin: 2px auto 0;
        width: fit-content;
        font-size: 12px;
    }
}
