:root {
    --primary-color: #8A5A44;
    /* Pecan Pie / Wedding Brown */
    --secondary-color: #c5a059;
    /* Wedding Gold */
    --accent-color: #E97451;
    /* Burnt Sienna */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(139, 94, 60, 0.2);
    --text-color: #4a3b32;
    --card-bg: rgba(255, 255, 255, 0.85);

    --wedding-bg: #fdfbf7;
    --wedding-brown: #8b5e3c;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--wedding-bg);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 94, 60, 0.15);
    /* #8A5A44 */
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(197, 160, 89, 0.15);
    /* Gold */
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(233, 116, 81, 0.15);
    /* Burnt Sienna */
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(253, 251, 247, 0.85);
    /* #fdfbf7 with opacity */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.glass-modal {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 20px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 10px;
}

.glass-input:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: none;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 94, 60, 0.15);
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-family: 'Great Vibes', cursive;
    font-weight: 400 !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn-primary:hover {
    background: #734A38;
}

.btn-glow {
    box-shadow: 0 0 15px rgba(139, 94, 60, 0.3);
    transition: box-shadow 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(139, 94, 60, 0.5);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

/* Post Card */
.post-header {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
}

.post-img-container {
    width: 100%;
    position: relative;
    background: #000;
}

.post-actions {
    padding: 0.8rem 1rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.like-btn.liked {
    color: #ff4b1f;
}

.post-content {
    padding: 0 1rem 1rem 1rem;
}

.caption {
    font-size: 0.95rem;
    opacity: 0.9;
}

.timestamp {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    display: block;
}

.main-container {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* Toast */
.glass-toast {
    background: rgba(25, 25, 35, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.toast-header {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-bottom: 1px solid var(--glass-border);
}

.btn-close {
    filter: invert(1);
}

/* --- NEW STYLES FOR MULTI-IMAGE GRID --- */

/* Image Grid Layouts */
.image-grid {
    display: grid;
    gap: 2px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.image-grid img:hover {
    opacity: 0.9;
}

/* 1 Image */
.grid-1 {
    grid-template-columns: 1fr;
    height: 400px;
}

/* 2 Images */
.grid-2 {
    grid-template-columns: 1fr 1fr;
    height: 300px;
}

/* 3 Images */
.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 400px;
}

.grid-3 img:first-child {
    grid-column: 1 / -1;
    /* Span full width */
    height: 200px;
}

/* 4 Images */
.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 400px;
}

/* 5+ Images (Facebook Style) */
.grid-5-plus {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    /* 6 columns for flexibility */
    grid-template-rows: 250px 150px;
    /* Top row taller */
    height: 400px;
}

/* Top Row: 2 images, 50% width each */
.grid-5-plus .grid-img-0 {
    grid-column: 1 / 4;
    /* Span 3 cols (50%) */
    grid-row: 1;
}

.grid-5-plus .grid-img-1 {
    grid-column: 4 / 7;
    /* Span 3 cols (50%) */
    grid-row: 1;
}

/* Bottom Row: 3 images, 33% width each */
.grid-5-plus .grid-img-2 {
    grid-column: 1 / 3;
    /* Span 2 cols (33%) */
    grid-row: 2;
}

.grid-5-plus .grid-img-3 {
    grid-column: 3 / 5;
    /* Span 2 cols (33%) */
    grid-row: 2;
}

.grid-5-plus .grid-img-4 {
    grid-column: 5 / 7;
    /* Span 2 cols (33%) */
    grid-row: 2;
    position: relative;
}

/* Overlay for +N images */
.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
}

/* Lightbox Modal */
#galleryModal .modal-content {
    background: #000;
    color: #fff;
}

#galleryModal .modal-body {
    padding: 0;
    display: flex;
    height: 100vh;
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-sidebar {
    width: 350px;
    background: #111;
    border-left: 1px solid #222;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.gallery-sidebar .avatar-placeholder {
    color: #fff;
}

.gallery-sidebar h6,
.gallery-sidebar p {
    color: #fff;
}

.gallery-sidebar .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 992px) {
    #galleryModal .modal-body {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .gallery-sidebar {
        width: 100%;
        height: auto;
    }

    .gallery-main {
        height: 50vh;
    }
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* --- Layout & Sidebar --- */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 80px;
    /* Narrow sidebar */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Circular hover */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1);
}

.sidebar .nav-link i {
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    margin-left: 80px;
    /* Width of sidebar */
    padding-top: 2rem;
    padding-bottom: 5rem;
    /* Space for bottom nav on mobile */
}

/* Mobile Bottom Nav */
.bottom-nav {
    height: 60px;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
}

.bottom-nav .nav-link {
    color: rgba(74, 59, 50, 0.5);
    padding: 10px;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0;
        padding-top: 1rem;
        padding-bottom: 80px;
    }

    .sidebar {
        display: none;
    }
}

/* --- Comments Section --- */
.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.comment-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comment-input-group {
    position: relative;
}

.comment-input-group input {
    padding-right: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.comment-input-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    box-shadow: none;
}

.comment-input-group .btn-send {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
}

.comment-input-group .btn-send:hover {
    color: var(--text-color);
}

/* --- Optimistic Posting --- */
.uploading-post {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.uploading-post::after {
    content: "Posting...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
}

/* --- Feed Adjustments --- */
.glass-card {
    /* Ensure card is wide enough */
    width: 100%;
}

.comment-list::-webkit-scrollbar {
    width: 4px;
}

/* --- Layout & Sidebar --- */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 80px;
    /* Narrow sidebar */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Circular hover */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1);
}

.sidebar .nav-link i {
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    margin-left: 80px;
    /* Width of sidebar */
    padding-top: 2rem;
    padding-bottom: 5rem;
    /* Space for bottom nav on mobile */
}

/* Mobile Bottom Nav */
.bottom-nav {
    height: 60px;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
}

.bottom-nav .nav-link {
    color: rgba(74, 59, 50, 0.5);
    padding: 10px;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0;
        padding-top: 1rem;
        padding-bottom: 80px;
    }

    .sidebar {
        display: none;
    }
}

/* --- Comments Section --- */
.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.comment-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comment-input-group {
    position: relative;
}

.comment-input-group input {
    padding-right: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.comment-input-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    box-shadow: none;
}

.comment-input-group .btn-send {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
}

.comment-input-group .btn-send:hover {
    color: var(--text-color);
}

/* --- Optimistic Posting --- */
.uploading-post {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.uploading-post::after {
    content: "Posting...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
}

/* --- Feed Adjustments --- */
.glass-card {
    /* Ensure card is wide enough */
    width: 100%;
}

/* Scrollbar for comments */
.comment-list::-webkit-scrollbar {
    width: 4px;
}

.comment-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.comment-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* --- Mention Autocomplete --- */
.mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(25, 25, 35, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.mention-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.mention-item:hover,
.mention-item.active {
    background: rgba(139, 94, 68, 0.1);
    color: var(--primary-color);
}

.mention-item .mention-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.8rem;
}

.mention-item .mention-name {
    font-weight: 500;
}

/* Mention Button */
.btn-mention {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.btn-mention:hover {
    color: var(--text-color);
}

/* Reply Input Container */
.reply-input-container {
    margin-top: 10px;
    margin-left: 34px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 2px solid var(--primary-color);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-input-container .comment-input-group {
    margin-top: 0;
}

.reply-input-container .cancel-reply-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.reply-input-container .cancel-reply-btn:hover {
    color: var(--text-color);
}

/* Scrollbar for mention dropdown */
.mention-dropdown::-webkit-scrollbar {
    width: 4px;
}

.mention-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.comment-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Comment Input Group - Main container */
.comment-input-group {
    position: relative;
    padding: 0 1rem 1rem 1rem;
}

/* --- Optimistic Posting --- */
.uploading-post {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.uploading-post::after {
    content: "Posting...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
}

/* --- Feed Adjustments --- */
.glass-card {
    /* Ensure card is wide enough */
    width: 100%;
}

/* Scrollbar for comments */
.comment-list::-webkit-scrollbar {
    width: 4px;
}

.comment-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.comment-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* --- Mention Autocomplete --- */
/* Mention Dropdown - Cleaner design */
.mention-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 -8px 32px rgba(139, 94, 60, 0.2);
    z-index: 1000;
    padding: 8px;
}

.mention-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    border-radius: 10px;
    margin-bottom: 4px;
}

.mention-item:hover,
.mention-item.active {
    background: rgba(139, 94, 68, 0.1);
    color: var(--primary-color);
}

.mention-item .mention-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mention-item .mention-name {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Mention Button - Cleaner design */
.btn-mention {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mention:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-color);
}

/* Reply Input Container - Match image design */
.reply-input-container {
    margin-top: 12px;
    margin-left: 40px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--primary-color);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-input-container .comment-input-wrapper {
    margin-bottom: 8px;
}

.reply-input-container .cancel-reply-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}

.reply-input-container .cancel-reply-btn:hover {
    color: var(--text-color);
}

/* Scrollbar for mention dropdown */
.mention-dropdown::-webkit-scrollbar {
    width: 6px;
}

.mention-dropdown::-webkit-scrollbar-track {
    background: rgba(139, 94, 60, 0.05);
    border-radius: 3px;
}

.mention-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0.5;
}

/* Sidebar Navigation Labels - Correct visibility and positioning */
.sidebar .nav-label {
    position: absolute;
    left: 60px;
    white-space: nowrap;
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.2) !important;
    z-index: 1000;
}

.sidebar .nav-link:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.sidebar .nav-label::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--primary-color);
}

/* Comment Input wrapper refinements */
.comment-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 25px;
    padding: 1px;
    box-shadow: 0 2px 10px rgba(139, 94, 60, 0.05);
    margin: 8px 0;
}

.comment-input-wrapper .comment-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 10px 15px !important;
    padding-right: 45px !important;
    font-size: 0.95rem;
    color: var(--text-color);
    outline: none !important;
}

.comment-input-wrapper .btn-send {
    position: absolute;
    right: 4px;
    background: var(--primary-color) !important;
    color: #fff !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.comment-input-wrapper .btn-send:hover {
    background: var(--wedding-brown) !important;
    transform: scale(1.1);
}

/* Modal and Close Button */
.modal-header .btn-close {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    opacity: 1 !important;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-header .btn-close::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
}

/* Sidebar Navigation Items */
.sidebar .nav-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    position: relative;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.05);
}

.sidebar .nav-link.active {
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3) !important;
}

/* Mention Dropdown - Light Theme */
.mention-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(139, 94, 60, 0.15) !important;
    z-index: 2000;
    padding: 8px;
}

.mention-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color) !important;
    border-radius: 10px;
}

.mention-item:hover, .mention-item.active {
    background: rgba(139, 94, 68, 0.1) !important;
    color: var(--primary-color) !important;
}

.mention-item .mention-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Highlights */
.mention-highlight {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: rgba(138, 94, 68, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.hashtag-highlight {
    color: var(--accent-color) !important; /* Burnt Sienna */
    font-weight: 500;
}

.btn-hashtag, .btn-mention {
    color: var(--accent-color) !important;
    transition: transform 0.2s, opacity 0.2s;
    background: none;
    border: none;
    padding: 2px;
}

.btn-hashtag:hover, .btn-mention:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Remove blue focus borders globally */
.form-control:focus, 
.caption-editable:focus, 
.comment-input:focus,
input:focus, 
textarea:focus, 
.glass-input:focus-within {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25) !important;
    outline: none !important;
}

/* Ensure contenteditable doesn't show blue outline */
[contenteditable="true"]:focus {
    outline: none !important;
}