/* Custom styles for JonTel Church Platform - Premium Canva Colors */

:root {
    /* Gold theme variables (keep purple variables for compatibility) */
    --primary-gold: #D4AF37;
    --primary-gold-dark: #B8860B;
    --accent-gold: #FFD966;
    --primary-purple: #5B51D8;
    --primary-purple-light: #7c3aed;
    --vibrant-red: #FF6B6B;
    --vibrant-green: #51CF66;
    --vibrant-orange: #FFA500;
    --light-bg: #FFF9F0;
    --text-primary: #0b0b0b;
    --text-secondary: #6E5A3A;
    --white: #FFFFFF;
}

/* Dark gold textured background with decorative image fallback */
body {
    background-color: #f8f9fb;
    background-image: none;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* Show the decorative background only on the login page */
body.login-page {
    background-color: #6b4a00;
    background-image: url('/dashboard/mutash/assets/one.jpg'), linear-gradient(135deg, #7a5300 0%, #b8860b 100%);
    background-size: cover, auto;
    background-position: center center, top left;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
}

.navbar-brand {
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
}

/* Brand title background using one.jpg for dashboards */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    border-radius: 8px;
    background-image: none;
    color: #fff !important;
    box-shadow: 0 6px 28px rgba(11,9,5,0.28);
    position: relative;
    overflow: hidden;
}
.navbar-brand::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 220%;
    background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
    transform: rotate(25deg);
    opacity: 0.14;
    pointer-events: none;
}

/* Navbar Styling */
.navbar {
    position: relative; /* establish stacking context */
    box-shadow: 0 4px 20px rgba(91, 81, 216, 0.15);
    backdrop-filter: blur(10px);
    /* keep navbar above page content and live-ads */
    z-index: 3200 !important;
}

/* Make navbar a gold->black blended bar for stronger contrast */
.navbar {
    background: linear-gradient(180deg, var(--primary-gold) 0%, #0b0b0b 100%);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
        background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
        color: #1a1200;
    /* ensure dropdown appears above all content */
    z-index: 2000 !important;
}

.dropdown-item {
    color: var(--text-primary);
    font-weight: 500;
        background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
        color: #1a1200;
    }
    .btn-primary:hover {
        background: linear-gradient(135deg, #C99E2E 0%, #A57208 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(217, 175, 55, 0.25);
        color: #fff;
/* Enhanced Card Styling */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(168,124,17,0.12);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    color: #1a1200;
    border: none;
    border-radius: 15px 15px 0 0;
    font-weight: 700;
    padding: 1.2rem;
}

.card-body {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255,250,240,0.95) 0%, rgba(11,9,5,0.04) 100%);
    color: var(--text-primary);
}

/* Small sparkle/shimmer for highlights */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 20%);
    transform: rotate(25deg);
    opacity: 0.12;
    pointer-events: none;
}

/* moving sheen across the page to create shining areas */
body:before {
    content: '';
    position: fixed;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.02) 100%);
    transform: rotate(20deg);
    animation: pageSheen 6s linear infinite;
    pointer-events: none;
    z-index: 1400;
}

@keyframes pageSheen {
    0% { transform: translateX(-30%) rotate(20deg); opacity: 0.08; }
    50% { transform: translateX(30%) rotate(20deg); opacity: 0.18; }
    100% { transform: translateX(-30%) rotate(20deg); opacity: 0.08; }
}

/* ensure good contrast in navbar and dropdowns */
.navbar, .dropdown-menu { background-blend-mode: overlay; }
.navbar .nav-link, .navbar-brand, .dropdown-item { color: #fff !important; }

.card:hover .card-header { box-shadow: 0 18px 60px rgba(168,124,17,0.18); }

/* Card header sheen for subtle gold shine */
.card-header {
    position: relative;
    overflow: hidden;
}
.card-header::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
    transform: rotate(25deg);
    opacity: 0.18;
    pointer-events: none;
}

/* Headings: gold-to-black blended text with subtle glow */
h1, h2, h3, h4, h5 {
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--primary-gold) 0%, #0b0b0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(212,175,55,0.06);
}

/* Forms: ensure readable text and warm white backgrounds */
.form-control, .form-select {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-gold-dark);
    box-shadow: 0 0 0 0.3rem rgba(212,175,55,0.12);
}

/* List items slightly warmer and readable */
.list-group-item {
    background-color: rgba(255,255,255,0.94);
    color: var(--text-primary);
}

/* Primary buttons use gold accents and dark text for contrast */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    color: #0b0b0b;
}
.btn-primary:hover { color: #fff; }

/* Button Styling */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4A3FB8 0%, #6B2BD9 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(91, 81, 216, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--vibrant-green) 0%, #47C569 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #47C569 0%, #3DA95E 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(81, 207, 102, 0.3);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--vibrant-red) 0%, #FF8888 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #FF5555 0%, #FF7777 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--vibrant-orange) 0%, #FFB84D 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FF9500 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.3);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline-primary:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.btn-outline-success {
    color: var(--vibrant-green);
    border: 2px solid var(--vibrant-green);
}

.btn-outline-success:hover {
    background: var(--vibrant-green);
    border-color: var(--vibrant-green);
    color: white;
}

.btn-outline-danger {
    color: var(--vibrant-red);
    border: 2px solid var(--vibrant-red);
}

.btn-outline-danger:hover {
    background: var(--vibrant-red);
    border-color: var(--vibrant-red);
    color: white;
}

/* List Group Styling */

.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background-color: var(--white);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(91,81,216,0.07);

}

/* Live ads / rotating tiles styling */
#live-ads { overflow: visible; }
    #live-ads .live-ads-inner { display:flex; gap:10px; align-items:center; overflow-x:auto; }
    /* Enforce very small, uniform tile size by default (desktop small) */
    .live-tile {
        box-sizing: border-box;
        width: 120px !important;
        height: 72px !important;
        flex: 0 0 120px !important;
        border-radius:10px;
        overflow: hidden;
        position: relative;
        margin-bottom: 6px;
        display: inline-block;
    }

    /* Animated glowing conic border (subtle) */
    /* glowing light border behind tile */
    .live-tile::before {
        content: '';
        position: absolute;
        top: -8px; left: -8px; right: -8px; bottom: -8px;
        border-radius: 16px;
        background: conic-gradient(from 0deg, rgba(212,175,55,0.95), rgba(255,220,120,0.85), rgba(11,9,5,0.6), rgba(212,175,55,0.95));
        filter: blur(12px);
        opacity: 0.95;
        pointer-events: none;
        z-index: 0;
        transform: rotate(0deg) scale(1.02);
        animation: rotateGlow 5.5s linear infinite;
    }

    .live-tile-inner { position: relative; z-index: 3; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,0.02); width:100%; height:100%; display:flex; }
    /* Show more of the photo: use contain so full image is visible with light padding */
    .poster-left { width: 50%; display:flex; align-items:center; justify-content:center; padding:4px; }
    .poster-right { width: 50%; }
    .live-tile img { width:100%; height:auto; object-fit:contain; display:block; padding:4px; background: rgba(255,255,255,0.02); }

    /* subtle floating animation to make tiles lively */
    .live-tile { animation: floatY 6s ease-in-out infinite; }
    @keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Desktop: place ads inside main column; they are part of page flow and will scroll with page */
@media (min-width: 992px) {
    #live-ads { padding: 8px 0; width: 100%; }
    #live-ads .live-ads-inner { flex-direction: row; gap: 18px; align-items: flex-start; overflow-x: auto; padding-left: 6px; }
    /* Desktop: keep tiles small but consistent */
    /* Desktop small tile */
    .live-tile { width: 140px !important; height: 100px !important; flex: 0 0 140px !important; border-radius: 12px; }
    .poster-left { width: 40%; }
    .poster-right { width: 60%; display: block; }
    .poster-ribbon { display: block; }
    .live-tile img { height: 100%; }
    .live-tile::before { filter: blur(10px); opacity: 0.95; }
    /* keep live-ads in normal document flow (no forced overlay) */
    #live-ads { z-index: auto !important; position: relative !important; }
}

/* Mobile: scale tiles down to ~40% of previous mobile size so they're much smaller */
@media (max-width: 767.98px) {
    /* Mobile: very small tiles (~40% of previous) */
    .live-tile { width: 48px !important; height: 30px !important; flex: 0 0 48px !important; }
    .live-tile .card-body { height: auto; padding: 6px; }
    .poster-right { display: none; }
    .poster-left img { width: 100%; height: 100%; object-fit: cover; }
}
    .live-tile .card-body { display:flex; flex-direction:column; justify-content:space-between; height:auto; padding: 8px; }
    .live-tile .card-title { font-weight: 800; font-size: 1.05rem; color: #1b1200; letter-spacing: -0.2px; }
    .live-tile .card-text { color: rgba(11,9,5,0.75); font-size: 0.92rem; margin-bottom:8px; }

    /* CTA styling */
    .live-tile .btn-sm.btn-primary { background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%); color: #0b0b0b; font-weight:700; border-radius: 999px; padding: 6px 12px; }
    .live-tile::before { 
        content: ''; 
        position: absolute; 
        top: -6px; left: -6px; right: -6px; bottom: -6px; 
        border-radius: 18px; 
        background: conic-gradient(from 0deg, rgba(212,175,55,0.95), rgba(255,220,120,0.9), rgba(11,9,5,0.9), rgba(212,175,55,0.95)); 
        filter: blur(10px); 
        opacity: 0.9; 
        pointer-events: none; 
        transform: rotate(0deg); 
        animation: rotateGlow 5s linear infinite; 
    }
    .live-tile .card-title { font-weight: 800; font-size: 1.06rem; letter-spacing: -0.3px; }
    .live-tile .card-text { color: rgba(11,9,5,0.72); font-size: 0.95rem; line-height:1.25; }

    /* stronger border glow outline animation tweak */
    .live-tile::before { mix-blend-mode: screen; }

    /* subtle pulse on CTA */
    .live-tile .btn-primary { transition: transform 220ms ease, box-shadow 220ms ease; }
    .live-tile .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(212,175,55,0.22); }

    @keyframes rotateGlow {
        0% { transform: rotate(0deg); }
        50% { transform: rotate(180deg); }
        100% { transform: rotate(360deg); }
    }

    /* Poster-style tile layout */
    .poster {
        height: 260px;
        background-size: cover;
        background-position: center center;
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
    }
    .poster-overlay {
        position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(11,9,5,0.56) 100%);
        display:flex; align-items:flex-end; padding: 16px;
    }
    .poster-content { color: #fff; width:100%; }
    .poster-title { font-size: 1.12rem; margin:0 0 6px 0; font-weight:800; line-height:1.05; text-shadow: 0 6px 18px rgba(0,0,0,0.5); }
    .poster-desc { margin:0 0 10px 0; font-size:0.92rem; opacity:0.95; color: rgba(255,255,255,0.92); }
    .poster-ribbon {
        position: absolute; top: 10px; left: 10px; background: linear-gradient(90deg, rgba(212,175,55,0.98), rgba(255,220,120,0.95));
        color:#1a1200; padding:6px 10px; border-radius: 6px; font-weight:700; box-shadow: 0 6px 16px rgba(11,9,5,0.28);
    }
    .poster-cta { font-weight:700; border-radius: 999px; padding: 8px 14px; }
    .poster-download { border-radius: 999px; }

    /* Poster styling polish for desktop: larger tiles */
    @media (min-width: 992px) {
        .poster { height: 300px; }
        .poster-title { font-size: 1.25rem; }
    }

    /* add an elegant frame around poster */
    .live-tile { padding: 6px; background: transparent; border-radius: 16px; overflow: hidden; }
    .live-tile::after { content: ''; position: absolute; inset: 6px; border-radius: 12px; pointer-events:none; z-index:1; }

    /* Hover interactions */
    .live-tile:hover { transform: translateY(-6px); transition: transform 280ms ease, box-shadow 280ms ease; box-shadow: 0 24px 60px rgba(11,9,5,0.25); }
    .live-tile:hover::before { filter: blur(12px); opacity: 1; transform: scale(1.04); }

    /* title emphasis with gold gradient text */
    .live-tile .card-title { background: linear-gradient(90deg, var(--primary-gold), #0b0b0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

    @media (max-width: 767.98px) {
        #live-ads .live-ads-inner { justify-content:center; }
        .live-tile { min-width: 92%; max-width: 92%; flex: 0 0 92%; }
    }

    /* Small visual polish */
    #live-ads { overflow: hidden; }
    #live-ads .live-tile { transition: transform 0.45s ease, opacity 0.45s ease; }

    /* Chat suggestions bottom bar (TikTok-like) */
    .chat-suggestions-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 10px;
        z-index: 2000;
        display: flex;
        justify-content: center;
        pointer-events: auto;
    }
    .chat-suggestions-inner {
        max-width: 1100px;
        width: calc(100% - 40px);
        background: rgba(255,255,255,0.96);
        border-radius: 12px;
        padding: 8px 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.18);
        overflow-x: auto;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    /* Right-aligned live ads container (placed in right column) */
    .live-ads-right { display:flex; justify-content:flex-end; align-items:flex-start; }
    .live-ads-right .live-ads-inner { justify-content:flex-end; }

    /* Remove background behind sidebar/menu items to match requested flat look */
        #sidebarMenu, #sidebarMenu.bg-white, .sidebar, #mobileSidebar, #mobileSidebarContent, #mobileSidebar .list-group, .list-group { background: #fff !important; }
    .list-group-item { background: transparent !important; box-shadow: none !important; border-left: 0 !important; color: var(--text-primary) !important; }
    /* Ensure mobile offcanvas menu matches and has no heavy background */
        #sidebarOffcanvas .offcanvas-body { background: transparent !important; }
        /* Override inline backgrounds or utility classes that set white backgrounds */
        #mobileSidebar[style], #mobileSidebar { background: #fff !important; }
        #mobileSidebarOverlay { background: rgba(0,0,0,0.5) !important; }
        nav#sidebarMenu.bg-white { background: transparent !important; }
    .chat-suggestion-item { display:flex; flex-direction:column; align-items:center; width:86px; padding:6px; text-align:center; cursor:pointer; }
    .chat-suggestion-item img { width:56px; height:56px; border-radius:50%; object-fit:cover; border:2px solid var(--primary-gold); }
    .chat-suggestion-name { font-size:0.82rem; margin-top:6px; color:var(--text-primary); }
    .chat-suggestion-role { font-size:0.7rem; color:var(--text-secondary); }

    @media (min-width: 992px) {
        .chat-suggestions-bottom { bottom: 18px; }
    }
}

/* Centered fade overlay between header and footer for dashboards */
.container.mt-4 { position: relative; }
.container.mt-4::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40vh;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,250,240,0.06) 25%, rgba(255,250,240,0.06) 75%, rgba(0,0,0,0) 100%);
    mix-blend-mode: overlay;
}

#sidebarMenu {
    background: transparent !important;
    border-right: none !important;
    min-height: 100vh;
}
.list-group-item.active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    border-color: var(--primary-purple-light);
    border-left-color: var(--primary-purple-light);
    color: white;
}
    .list-group-item i {
        font-size: 1.5rem;
        color: var(--primary-purple);
        vertical-align: middle;
        margin-right: 0.5rem;
    }

    /* Poster styles (split layout) */
    .poster-split { height: 100%; display:flex; border-radius: 10px; overflow: hidden; position: relative; }
    .poster-left { width: 36%; min-width: 40px; height:100%; }
    .poster-left img { width:100%; height:100%; object-fit:cover; display:block; }
    .poster-right { width:64%; padding:10px 10px 10px 12px; display:flex; flex-direction:column; justify-content:space-between; background: linear-gradient(90deg, rgba(0,0,0,0.0), rgba(0,0,0,0.18)); }
    .poster-ribbon { position: absolute; top: 10px; left: 12px; background: linear-gradient(90deg, rgba(212,175,55,0.98), rgba(255,220,120,0.95)); color:#1a1200; padding:6px 10px; border-radius: 6px; font-weight:700; box-shadow: 0 6px 16px rgba(11,9,5,0.28); z-index:5; }
    .poster-content { color: #fff; }
    .poster-title { font-size: 1rem; margin:0 0 6px 0; font-weight:800; line-height:1.05; color: #fff; text-shadow: 0 6px 18px rgba(0,0,0,0.5); }
    .poster-desc { margin:0 0 8px 0; font-size:0.86rem; opacity:0.95; color: rgba(255,255,255,0.95); }
    .poster-cta-row { margin-top: 6px; }
    .poster-cta { font-weight:700; border-radius: 999px; padding: 6px 12px; }
    .poster-download { border-radius: 999px; }
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #E8E8F0;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.3rem rgba(91, 81, 216, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.2rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.1) 0%, rgba(81, 207, 102, 0.05) 100%);
    color: #2D6A4F;
    border-left: 4px solid var(--vibrant-green);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: #8B0000;
    border-left: 4px solid var(--vibrant-red);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    color: #7F6000;
    border-left: 4px solid var(--vibrant-orange);
}

.alert-info {
    background: linear-gradient(135deg, rgba(91, 81, 216, 0.1) 0%, rgba(91, 81, 216, 0.05) 100%);
    color: #3D2E7F;
    border-left: 4px solid var(--primary-purple);
}

/* Badge Styling */
.badge {
    font-size: 0.8em;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--vibrant-green) 0%, #47C569 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--vibrant-red) 0%, #FF8888 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--vibrant-orange) 0%, #FFB84D 100%) !important;
    color: white;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%) !important;
}

.badge.bg-secondary {
    background: #95A3B3 !important;
}

/* Profile Photo */
.profile-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-purple);
    box-shadow: 0 5px 20px rgba(91, 81, 216, 0.2);
}

/* make all images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Post Card */
.post-card {
    margin-bottom: 20px;
    border-radius: 15px;
}

/* Like Button */
.like-btn {
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.like-btn:hover {
    color: var(--vibrant-red);
}

/* DESKTOP SIDEBAR: Ensure proper display with icon + text on desktop */
@media (min-width: 768px) {
    /* Desktop sidebar */
    #sidebarMenu {
        background: rgba(255, 255, 255, 0.98) !important;
        border-right: 1px solid rgba(91, 81, 216, 0.1) !important;
        padding: 0 !important;
        min-height: 100vh;
        display: flex !important;
        flex-direction: column;
    }
    
    #sidebarMenu .list-group {
        background: transparent !important;
        display: flex;
        flex-direction: column;
    }
    
    #sidebarMenu .list-group-item {
        background: transparent !important;
        border: none !important;
        border-left: 4px solid transparent !important;
        padding: 12px 16px !important;
        color: var(--text-primary) !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 4px 8px;
    }
    
    #sidebarMenu .list-group-item:hover {
        background: rgba(91, 81, 216, 0.08) !important;
        border-left-color: var(--primary-purple) !important;
        transform: translateX(4px);
    }
    
    #sidebarMenu .list-group-item.active {
        background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%) !important;
        color: white !important;
        border-left-color: white !important;
    }
    
    #sidebarMenu .list-group-item i {
        font-size: 1.3rem;
        color: var(--primary-purple);
        width: 28px;
        text-align: center;
        flex-shrink: 0;
    }
    
    #sidebarMenu .list-group-item.active i {
        color: white !important;
    }
    
    #sidebarMenu .list-group-item span {
        display: inline !important;
        flex: 1;
        font-weight: 500;
        white-space: nowrap;
    }
    
    #sidebarMenu .list-group-item a {
        color: inherit;
        text-decoration: none;
    }
    
    /* Hide mobile icon bar on desktop */
    .d-md-none {
        display: none !important;
    }
}

/* MOBILE: Hide desktop sidebar, show mobile menu */
@media (max-width: 767.98px) {
    #sidebarMenu {
        display: none !important;
    }
    
    /* Mobile icon bar should be visible */
    .list-group.d-md-none {
        display: flex !important;
    }
}
    transform: scale(1.2);
}

.like-btn.liked {
    color: var(--vibrant-red);
}

/* Comment Section */
.comment-section {
    max-height: 300px;
    overflow-y: auto;
}

/* Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.table thead th {
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 2px solid #E8E8F0;
    padding: 1rem;
}

.table tbody tr {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    box-shadow: 0 5px 15px rgba(91, 81, 216, 0.15);
    transform: translateY(-2px);
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    background-color: #E8E8F0;
    height: 25px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    /* allow horizontal scrolling for wide tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive td,
    .table-responsive th {
        white-space: nowrap;
    }
}

/* hide sidebar list on phones - replaced by a hamburger menu */
@media (max-width: 767.98px) {
    .col-md-3 > .list-group {
        display: none;
    }
    
    /* hide text in list group items on mobile, show only icons */
    .list-group-item span {
        display: none;
    }
    
    .list-group-item i {
        display: inline;
        margin-right: 0;
    }
    
    /* offcanvas menu adjustment for mobile: align icons and text cleanly */
    #mobileSidebarContent .list-group-item,
    #mobileSidebar .list-group-item,
    #mobileSidebarContent .list-group .list-group-item {
        padding: 0.6rem 0.9rem;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    #mobileSidebarContent .list-group-item i,
    #mobileSidebar .list-group-item i { min-width: 28px; text-align: center; }
    
    /* compact dashboard layout on mobile */
    .col-md-9 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* make stats cards smaller on mobile, use 2 columns */
    .col-md-3 {
        min-width: 50%;
        width: 50%;
        padding: 5px !important;
    }
    
    .col-md-4 {
        min-width: 33.33%;
        width: 33.33%;
        padding: 5px !important;
    }
    
    .col-md-6 {
        min-width: 50%;
        width: 50%;
        padding: 5px !important;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }
    
    h4 {
        font-size: 0.95rem;
    }
    
    /* compress stats cards content */
    .card.text-center .card-body {
        padding: 0.5rem !important;
    }
    
    .card.text-center .card-body p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .card.text-center .card-body h4 {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
    }
    
    /* welcome card should be full width */
    .col-md-12 {
        padding: 0 5px !important;
    }
    
    /* quick actions on mobile */
    .col-md-6 .btn {
        width: 100% !important;
        font-size: 0.85rem;
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #2A2847;
        --text-primary: #E8E8F0;
        --text-secondary: #B0B0C0;
        --white: #1A1829;
    }
    
    body {
        background: linear-gradient(135deg, #1A1829 0%, #2A2847 100%);
        color: var(--text-primary);
    }
    
    .card {
        background-color: #2A2847;
        box-shadow: 0 10px 40px rgba(91, 81, 216, 0.2);
    }
    
    .card-header {
        background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    }
    
    .form-control, .form-select {
        background-color: #3A3857;
        border-color: #4A4867;
        color: var(--text-primary);
    }
    
    .form-control:focus, .form-select:focus {
        background-color: #3A3857;
        border-color: var(--primary-purple);
        color: var(--text-primary);
    }
    
    .list-group-item {
        background-color: #2A2847;
        color: var(--text-primary);
    }
    
    .table tbody tr {
        background-color: #2A2847;
    }
    
    .table tbody tr:hover {
        background-color: #3A3857;
    }
}

/* Show brand decorative background only on the login page */
.login-page .navbar-brand {
    background-image: url('/dashboard/mutash/assets/one.jpg');
    background-size: cover;
    background-position: center center;
}

/* Strong overrides: ensure sidebar/menu transparent except on login */
body:not(.login-page) #sidebarMenu,
body:not(.login-page) #sidebarMenu .list-group,
body:not(.login-page) .list-group,
body:not(.login-page) #mobileSidebarContent,
body:not(.login-page) #sidebarOffcanvas .offcanvas-body,
body:not(.login-page) .offcanvas,
body:not(.login-page) nav#sidebarMenu,
body:not(.login-page) .list-group-item {
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--text-primary) !important;
}

/* Live-tile dark background (dark green/black) to improve contrast */
.live-tile-inner {
    background: linear-gradient(180deg, #082814 0%, #021209 100%) !important;
    color: #e6f7ea !important;
}
.poster-right {
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(0,0,0,0.22)) !important;
}
.poster-content, .poster-title, .poster-desc {
    color: #e6f7ea !important;
    text-shadow: none !important;
}
.live-tile img {
    background: rgba(0,0,0,0.06) !important;
}

/* Reduce glow intensity to match dark background */
.live-tile::before { opacity: 0.6 !important; filter: blur(10px) !important; }

/* Ensure live-ads marginTop logic doesn't push too far on narrow viewports */
@media (max-width: 991.98px) {
    #live-ads { margin-top: 0 !important; padding-top: 6px !important; }
}