/* Modern, Premium CSS for ChapConnect */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #f59e0b;
    --secondary-hover: #d97706;
    --bg-gradient: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

/* Header & Nav */
.nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* background: rgba(15, 52, 96, 0.82) url('nav_bg.jpg') center/cover no-repeat; */
    background: rgb(0, 102, 254) url(nav_bg.jpg);

    /* Controls the scale of the honeycomb cells */
    background-size: 50px 86.6px, 50px 86.6px, 50px 86.6px, 50px 86.6px, 50px 86.6px, 50px 86.6px, 50px 86.6px, auto;


    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* background-blend-mode: overlay; */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: background 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.tname {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icon {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    font-weight: 700;
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.nav-btn-home,
.nav-btn-login {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.nav-btn-home i {
    color: #6366f1;
}

.nav-btn-home:hover,
.nav-btn-login:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: var(--primary) !important;
}

.nav-btn-register {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}

.nav-btn-register:hover {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
    color: #ffffff !important;
}

.nav-btn-install {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.nav-btn-install:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}

.nav-btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.nav-btn-logout:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
    color: #ffffff !important;
}

/* Hidden on desktop, shown only in mobile toggle */
.nav-mobile-list {
    display: none;
}

/* Mobile Hamburger Toggle Button */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Navbar Rules */
@media (max-width: 820px) {
    .nav {
        padding: 8px 14px;
        gap: 10px;
    }

    .logo img {
        height: 55px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .Srch {
        width: 130px;
    }

    .Srch:focus {
        width: 160px;
    }
}

@media (max-width: 680px) {
    .nav {
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 14px;
        gap: 0;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

    .logo {
        flex: 1;
        width: auto;
        justify-content: flex-start;
    }

    /* Hide helpdesk badges on mobile (shown in toggle menu instead) */
    .tname>div[style] {
        display: none !important;
    }

    /* Show hamburger button */
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    /* Hide desktop auth container and search wrapper on mobile */
    .nav-actions-wrapper,
    .nav-auth {
        display: none !important;
    }

    .nav>.Search {
        display: none !important;
    }
}

.nav-actions-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Left Side Off-Canvas Navigation Drawer System (Picture 1 style)
   ========================================================================== */

/* Full Screen Dark Backdrop Overlay */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Left Side Drawer Off-Canvas Container */
.icon#navIconMenu,
.icon {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, #00569e 0%, #003666 100%) !important;
    box-shadow: none !important;
    z-index: 99999 !important;
    transform: translateX(-120%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.icon#navIconMenu.open,
.icon.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.45) !important;
}

/* Drawer Header Section */
.drawer-header {
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.drawer-logo-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}

.drawer-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drawer-title-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-title-box h2 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.drawer-title-box p {
    font-size: 0.72rem;
    font-weight: 600;
    color: #38bdf8;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

/* Drawer Language Switcher Bar */
.drawer-lang-row {
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.drawer-lang-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-lang-btns {
    display: flex;
    gap: 6px;
}

.drawer-lang-btn {
    padding: 4px 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-lang-btn.active {
    background: #ffffff;
    color: #00569e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.drawer-lang-btn.inactive {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Drawer Body (Scrollable Menu List) */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 85px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.drawer-body::-webkit-scrollbar {
    width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.drawer-section-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    padding: 14px 10px 6px 10px;
}

.nav-mobile-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent !important;
}

.nav-mobile-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 11px 14px !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    font-size: 0.91rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-bottom: 3px !important;
    background: transparent !important;
    box-sizing: border-box !important;
    position: relative !important;
    opacity: 1 !important;
    filter: none !important;
}

.nav-mobile-link i {
    font-size: 1.15rem !important;
    width: 22px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #38bdf8 !important;
    transition: transform 0.2s ease !important;
    margin: 0 !important;
}

.nav-mobile-link:hover,
.nav-mobile-link.is-hovered {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

/* Active Highlight Pill matching Picture 1 */
.nav-mobile-link.active,
.nav-mobile-link.is-active-tab {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-mobile-link.active i,
.nav-mobile-link.is-active-tab i {
    color: #ffffff !important;
}

.nav-mobile-link .chevron-arrow {
    margin-left: auto !important;
    font-size: 0.75rem !important;
    opacity: 0.6 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    width: auto !important;
}

/* Drawer Footer Section (User Profile & Actions at bottom) */
.drawer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #00264d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 20;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.drawer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00569e;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.drawer-user-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-user-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.drawer-user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.drawer-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-action-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.drawer-action-logout:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}
}

@media (max-width: 480px) {
    .logo img {
        height: 48px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .btn {
        padding: 8px 14px;
    }
}


.menu {
    max-width: 600px;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
}

/* Centered category menu (when placed directly under body) */
/* Centered category menu (when placed directly under body) */
body>.menu {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 8px auto 0 auto;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Mobile category Select2 picker — hidden on desktop */
.menu-filter-wrap {
    display: none;
    width: 100%;
    padding: 6px 0 6px;
}

.menu-select {
    width: 100%;
}

/* Select2 Premium Styles for Mobile Categories Dropdown */
.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    font-family: inherit !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    line-height: 42px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding-left: 4px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
    color: white !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    outline: none !important;
}

/* Category Scroll Wrapper with Left & Right Arrows */
.category-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin: 2px 0;
}

.category-scroll-track {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 2px 0;
}

.category-scroll-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.category-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    z-index: 5;
    padding: 0;
}

.category-arrow-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.category-arrow-btn:active {
    transform: scale(0.95);
}

body>.menu ul,
#menuList {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 2px 0;
    margin: 0;
    width: max-content;
}

@media (max-width: 680px) {
    .menu-filter-wrap {
        display: none !important;
    }

    .category-arrow-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    body>.menu {
        width: calc(100% - 20px) !important;
        margin: 8px auto 0 auto !important;
        padding: 6px 8px !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid #e2e8f0 !important;
    }
}

.menu ul::-webkit-scrollbar {
    height: 4px;
}

.menu ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.menu ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu ul li a:hover,
.menu ul li.active a,
.menu ul li a.active {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.nav .menu ul li a {
    color: rgba(255, 255, 255, 0.9);
}

.nav .menu ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.Search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 3px 3px 3px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.Search:focus-within {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.5);
    background: #ffffff;
}

.Srch {
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    width: 170px;
    transition: width 0.3s ease;
    padding: 4px 0;
}

.Srch::placeholder {
    color: #64748b;
}

.Srch:focus {
    width: 210px;
}

.Search .btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
    flex-shrink: 0;
}

.Search .btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
    transform: scale(1.08);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.45);
}

.Search .btn i,
.Search .btn span {
    font-size: 14px;
    color: #ffffff;
}

font-weight: 500;
cursor: pointer;
font-size: 14px;
transition: background 0.3s;
}

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

/* Main Content Area */
.main {
    flex-grow: 1;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Container & Cards Grid */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.imagea {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.imagea:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.imagea img,
.image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: top center;
    background: radial-gradient(circle at center, #f0f9ff 0%, #e0f2fe 60%, #bae6fd 100%);
    display: block;
}

.details {
    padding: 24px;
    text-align: center;
}

.details h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-quick-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    flex-wrap: wrap;
}

.card-quick-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-quick-links a:hover {
    color: var(--primary-hover);
}

/* Responsive Rules for Small Devices */
@media (max-width: 640px) {
    .main {
        padding: 20px 12px;
    }

    .talent-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 10px 0;
    }

    .imagea img,
    .image img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .details {
        padding: 16px 12px;
    }

    .details h2 {
        font-size: 20px;
    }

    .details h5 {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .like-container {
        padding: 8px 2px;
        gap: 4px;
    }

    .like-btn,
    .comment-btn,
    .follow-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .like-count,
    .comment-count,
    .followers-count {
        font-size: 11px;
    }

    .vbtn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .card-quick-links {
        gap: 10px;
        font-size: 12px;
        margin-top: 12px;
    }
}

@media (max-width: 380px) {
    .talent-grid {
        grid-template-columns: 1fr;
    }

    .like-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-around;
    }
}

/* Interactions Layout */
.like-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 20px;
}

.like,
.comment,
.follow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.like-btn,
.comment-btn,
.follow-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s, color 0.3s;
    width: auto;
    margin: 0;
}

.like-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.comment-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.follow-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.like-btn.liked {
    color: #ef4444;
}

.follow-btn.following {
    color: #10b981;
}

.comment-btn.has-comments,
.comment-btn.commented {
    color: #6366f1;
}

.comment-count.has-comments {
    color: #6366f1;
}

.like-count,
.comment-count,
.followers-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

/* Action Button */
.vbtn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.vbtn:hover {
    background: var(--primary-hover);
}

/* Profile Page Details & Side-by-Side Layout */
.profile-wrapper {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 16px;
    width: 100%;
}

@media (max-width: 768px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }

    .profile-sidebar .menu ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-sidebar .menu ul li {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }

    .profile-sidebar .menu ul li a {
        text-align: center;
        padding: 8px 12px;
    }
}

.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: fit-content;
}

.pimage img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.pimage img:hover {
    transform: scale(1.05);
}

/* Tab Navigation Menu in Sidebar */
.profile-sidebar .menu {
    width: 100%;
    margin-top: 20px;
}

.profile-sidebar .menu ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: visible;
}

.profile-sidebar .menu ul li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.profile-sidebar .menu ul li a:hover,
.profile-sidebar .menu ul li a.active {
    background: var(--primary);
    color: white;
}

/* Profile Content Panel (Right) */
.profile-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.profile-tab-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.profile-tab-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdetails h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.pdetails h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 15px;
    margin-bottom: 4px;
}

.pdetails h5 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 15px;
}

.pdetails ul,
.pdetails li {
    list-style: none;
}

.pdetails a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.pdetails a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Photos Section layout */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.photo-item:hover img {
    transform: scale(1.08);
}

/* Premium Hover Overlay for Photo Items */
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    pointer-events: none;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-overlay h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.photo-overlay p {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    text-align: left;
}

/* Video Card details info */
.video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-top: 20px;
}

.video-info {
    margin-top: 14px;
    text-align: left;
}

.video-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.video-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Video Section layout */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* News & Information Styles */
.news-box {
    background: var(--bg-gradient);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.news-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    text-align: left;
    margin: 0;
}

/* Login/Register Form Styles */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
    margin: auto;
}

.auth-wrapper .container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-box {
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    display: none;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.4s ease-out;
}

.form-box.active {
    display: block;
}

.form-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    text-align: left;
}

.form-box input,
.form-box select {
    width: 100%;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid transparent;
    outline: none;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 0;
    transition: all 0.3s;
}

.form-box input:focus,
.form-box select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    margin-bottom: 0 !important;
    padding-right: 45px !important;
}

.form-box .toggle-password,
.password-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer;
    font-size: 18px !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
    opacity: 0.85;
    box-shadow: none !important;
    outline: none !important;
    transition: transform 0.2s, color 0.2s, opacity 0.2s;
}

.form-box .toggle-password:hover,
.password-wrapper .toggle-password:hover {
    color: var(--primary) !important;
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    background: transparent !important;
}

.form-box .toggle-password i,
.password-wrapper .toggle-password i {
    font-size: 18px;
    color: inherit;
    pointer-events: none;
}

/* Form Inputs & Responsive Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    display: block;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: #ffffff;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f3f4f6;
    opacity: 0.75;
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 36px;
}

.form-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.form-box button:hover {
    background: var(--primary-hover);
}

.form-box p {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.form-box p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-box p a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.error-message {
    padding: 12px;
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    font-size: 14px;
    color: #b91c1c;
    text-align: left;
    margin-bottom: 20px;
}

.back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

/* Dashboard pages welcome design */
.dashboard-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    border: 1px solid var(--border-color);
}

.dashboard-box h1 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.dashboard-box p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Select2 Custom Theme */
.select2-container {
    width: 100% !important;
    margin-bottom: 16px !important;
    display: block;
}

.select2-container--default .select2-selection--single {
    background-color: #f3f4f6 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    height: 46px !important;
    line-height: 46px !important;
    position: relative !important;
    display: block !important;
    padding: 0 !important;
    transition: all 0.3s;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    font-size: 15px !important;
    line-height: 46px !important;
    padding-left: 16px !important;
    padding-right: 35px !important;
    text-align: left !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    position: absolute !important;
    top: 0 !important;
    right: 12px !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    top: 50% !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent !important;
}

.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-hover) !important;
    font-family: inherit !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    background: #ffffff !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 0 !important;
    background: #f9fafb !important;
    outline: none !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
}

.select2-results__options {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    max-height: 220px !important;
    overflow-y: auto !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 16px !important;
    font-size: 14px !important;
    text-align: left !important;
    color: #1f2937 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Premium Dashboard Panel Styles */
.dashboard-container {
    max-width: 100%;
    width: 100%;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 30px;
}

.dashboard-header {
    background: white;
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.dashboard-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #a5b4fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.dashboard-welcome-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.dashboard-welcome-text p {
    font-size: 14px;
    color: var(--text-muted);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.secondary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
    }
}

.dashboard-panel {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: left;
}

.dashboard-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.action-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-card i {
    font-size: 26px;
    color: var(--primary);
    transition: transform 0.3s;
}

.action-card span {
    font-size: 14px;
    font-weight: 600;
}

.action-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.action-card:hover i {
    transform: scale(1.15);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-dot.success {
    background: #10b981;
}

.activity-dot.warning {
    background: var(--secondary);
}

.activity-dot.info {
    background: var(--primary);
}

.activity-text {
    flex-grow: 1;
    color: var(--text-muted);
}

.activity-text strong {
    color: var(--text-main);
}

.activity-time {
    color: #9ca3af;
    font-size: 11px;
    white-space: nowrap;
}

/* ==========================================
   Admin Panel Layout & SPA Tabs
   ========================================== */
body.admin-body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

/* ==========================================
   ChapConnect Modern Admin Sidebar Layout
   ========================================== */
.admin-layout-container {
    display: flex;
    min-height: calc(100vh - 70px);
    width: 100%;
    position: relative;
}

.admin-sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
    z-index: 100;
    position: fixed;
    top: 75px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

/* Custom Sleek Scrollbar for Sidebar */
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    display: block;
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 2px;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-group-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin: 16px 12px 6px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.sidebar-link i {
    font-size: 1.15rem;
    color: #64748b;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
}

.sidebar-link:hover i {
    color: #6366f1;
}

.sidebar-link.active,
.tab-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
    border-color: transparent !important;
}

.sidebar-link.active i,
.tab-link.active i {
    color: #ffffff !important;
}

.admin-main-wrapper {
    flex: 1;
    min-width: 0;
    margin-left: 270px;
    background-color: var(--bg-color);
    padding: 0;
    box-sizing: border-box;
}

/* Mobile Responsive Sidebar */
@media (max-width: 992px) {
    .admin-layout-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 75px);
        position: relative;
        top: 0;
        left: 0;
        bottom: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px;
        display: none;
    }

    .admin-sidebar.mobile-open {
        display: flex !important;
        animation: fadeIn 0.25s ease-out;
    }

    .admin-main-wrapper {
        margin-left: 0;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

.admin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
}

.quick-action-btn:hover {
    background: var(--primary, #6366f1);
    color: #ffffff;
    border-color: transparent;
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.admin-modal.active,
.admin-modal[style*="display: block"],
.admin-modal[style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.admin-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    margin: auto !important;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.admin-table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 15px;
}

.dataTables_wrapper,
table.dataTable,
.admin-table,
.admin-table-container table {
    width: 100% !important;
    box-sizing: border-box;
}

.dataTables_wrapper .dataTables_scrollHeadInner,
.dataTables_wrapper .dataTables_scrollHeadInner table.dataTable {
    width: 100% !important;
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Professional Auto-Disappearing Toast Alerts */
.toast-alert-container {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-alert {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.4s ease;
}

.toast-alert.toast-hiding {
    animation: toastSlideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
    }
}

.toast-success {
    border-left: 5px solid #10b981;
}

.toast-error {
    border-left: 5px solid #ef4444;
}

.toast-success .toast-icon {
    color: #10b981;
    font-size: 22px;
    line-height: 1;
}

.toast-error .toast-icon {
    color: #ef4444;
    font-size: 22px;
    line-height: 1;
}

.toast-body {
    flex-grow: 1;
}

.toast-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.toast-error-list {
    margin: 4px 0 0 0;
    padding-left: 16px;
    font-size: 12px;
    color: #b91c1c;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #0f172a;
}

/* Progress bar animation for auto-disappearing */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.5px;
    width: 100%;
    animation: toastProgressBar 10s linear forwards;
}

.toast-progress-success {
    background: #10b981;
}

.toast-progress-error {
    background: #ef4444;
}

@keyframes toastProgressBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* DataTables Modern Custom Styling */
.dataTables_wrapper {
    padding: 15px 0;
    color: var(--text-main);
    font-size: 14px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    outline: none;
    font-size: 13px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 8px;
    outline: none;
    background: #ffffff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    color: var(--text-main) !important;
    padding: 5px 12px !important;
    margin: 0 2px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3) !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Executive Floating Bulk Action Bar */
.bulk-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.bulk-action-bar.active {
    display: flex !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bulk-action-info {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bulk-action-info #selected-count {
    background: var(--primary);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.bulk-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.bulk-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bulk-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.bulk-btn-publish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bulk-btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.bulk-btn-unpublish {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bulk-btn-unpublish:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.bulk-btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bulk-btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}
}

.bulk-btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Executive Header Admin Tab & Action Buttons */
.nav-auth .tab-link,
.nav-auth .nav-admin-link {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px !important;
    padding: 7px 16px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.nav-auth .tab-link:hover,
.nav-auth .nav-admin-link:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-auth .tab-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

/* Executive Select2 Modern Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    height: 44px !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding-left: 4px !important;
    line-height: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    outline: none !important;
    font-size: 0.88rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #6366f1 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.select2-results__option {
    padding: 9px 14px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
}

/* ==========================================
   Admin Panel Mobile Responsiveness Rules
   ========================================== */
.admin-two-col-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-two-col-grid>* {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 992px) {
    .admin-two-col-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {

    main.main.admin-main-container,
    main.main {
        padding: 0 12px !important;
        margin: 10px 0 !important;
    }

    .dashboard-header {
        padding: 18px 16px !important;
        border-radius: 14px !important;
        gap: 14px !important;
    }

    .dashboard-welcome {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .dashboard-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }

    .dashboard-welcome-text h2 {
        font-size: 1.2rem !important;
    }

    .dashboard-welcome-text p {
        font-size: 0.82rem !important;
    }

    .admin-card,
    .dashboard-panel {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .admin-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .admin-header h1 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-welcome {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex !important;
        margin-left: auto;
    }

    .nav-auth {
        display: none !important;
    }
}

/* ==========================================================================
   DataTables & Admin Table Mobile & Responsive Refinements
   ========================================================================== */

/* DataTables Responsive Extension Expand Control Styling */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    background-color: #6366f1 !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4) !important;
    border-radius: 6px !important;
    line-height: 18px !important;
    height: 18px !important;
    width: 18px !important;
}

/* Mobile & Small Device Table Layout Enhancements */
@media (max-width: 768px) {
    .admin-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .admin-card button,
    .admin-card a {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .admin-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        margin-top: 10px !important;
        border-radius: 10px !important;
    }

    .admin-table {
        min-width: 520px;
        font-size: 12px !important;
    }

    .admin-table th {
        padding: 10px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .admin-table td {
        padding: 10px 10px !important;
        font-size: 12px !important;
    }

    /* DataTables Controls Layout on Mobile */
    .dataTables_wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        margin-bottom: 8px !important;
        margin-top: 0 !important;
    }

    .dataTables_wrapper .dataTables_length {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 13px !important;
        color: #64748b !important;
    }

    .dataTables_wrapper .dataTables_filter label {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        font-size: 13px !important;
        color: #475569 !important;
        font-weight: 600 !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    .dataTables_wrapper .dataTables_length select {
        padding: 4px 8px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    .dataTables_wrapper .dataTables_info {
        float: none !important;
        text-align: center !important;
        margin-top: 10px !important;
        font-size: 12px !important;
        color: #64748b !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        margin-top: 8px !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 4px 10px !important;
        font-size: 12px !important;
        margin: 2px !important;
    }

    /* Floating Bulk Action Bar Mobile Styling */
    .bulk-action-bar {
        width: calc(100vw - 24px) !important;
        max-width: 480px !important;
        bottom: 15px !important;
        padding: 10px 12px !important;
        border-radius: 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .bulk-action-buttons {
        width: 100% !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .bulk-btn {
        padding: 6px 10px !important;
        font-size: 0.76rem !important;
        flex: 1 1 auto !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .admin-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }

    .dataTables_wrapper .dataTables_length {
        font-size: 12px !important;
    }

    .dataTables_wrapper .dataTables_filter label {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }
}

/* DataTables Collapsed Child Details Card Styling for Mobile */
table.dataTable>tbody>tr.child {
    background: #f8fafc !important;
}

table.dataTable>tbody>tr.child td.child {
    padding: 12px 14px !important;
}

table.dataTable>tbody>tr.child ul.dtr-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

table.dataTable>tbody>tr.child ul.dtr-details>li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.83rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

table.dataTable>tbody>tr.child span.dtr-title {
    font-weight: 700 !important;
    color: #475569 !important;
    margin-right: 12px !important;
}

table.dataTable>tbody>tr.child span.dtr-data {
    color: #0f172a !important;
    font-weight: 600 !important;
    text-align: right !important;
    word-break: break-word !important;
}

/* ==========================================
   ChapConnect Modern User Dashboard Layout
   ========================================== */
.profile-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    align-items: start;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 1200px;
}

.profile-menu-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.profile-menu-vertical a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: #f8fafc;
}

.profile-menu-vertical a i {
    font-size: 1.1rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.profile-menu-vertical a:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.profile-menu-vertical a:hover i {
    color: #6366f1;
}

.profile-menu-vertical a.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
    border-color: transparent !important;
}

.profile-menu-vertical a.active i {
    color: #ffffff !important;
}

/* Mobile Responsiveness for User Dashboard */
@media (max-width: 820px) {
    .profile-hero {
        grid-template-columns: 1fr !important;
        margin: 15px auto !important;
        padding: 0 12px !important;
        gap: 15px !important;
    }

    .profile-menu-vertical {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding-bottom: 6px !important;
        white-space: nowrap !important;
    }

    .profile-menu-vertical a {
        flex-shrink: 0 !important;
        padding: 9px 14px !important;
        font-size: 0.82rem !important;
    }

    .pdetails {
        padding: 18px 15px !important;
    }
}

/* Custom Row & Column Grid Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -4px;
    margin-left: -4px;
    width: calc(100% + 8px);
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 4px;
    padding-left: 4px;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 4px;
    padding-left: 4px;
}

/* Media Preview Sidebar Styles */
.media-preview-sidebar {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.media-preview-title {
    position: sticky;
    top: -16px;
    background: var(--card-bg);
    z-index: 10;
    margin-top: -16px;
    padding-top: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.media-preview-title i {
    color: var(--primary);
}

.media-feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-feed-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.media-feed-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.media-feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--primary);
}

.media-feed-user-info {
    display: flex;
    flex-direction: column;
}

.media-feed-username {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.media-feed-username:hover {
    color: var(--primary);
}

.media-feed-userrole {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.media-feed-content {
    position: relative;
    width: 100%;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 650px;
}

.media-feed-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.media-feed-image {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.media-feed-content:hover .media-feed-image {
    transform: scale(1.02);
}

.media-feed-video {
    width: 100%;
    background: #000000;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.media-feed-video .video-container,
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000000;
}

.media-feed-video iframe,
.media-feed-video video,
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain;
    background: #000000;
}

/* Local & Vertical Video Responsive Overrides */
.local-video-wrapper,
.media-feed-video .local-video-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 0 !important;
    height: auto !important;
    max-height: 650px !important;
    background: #000000 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.local-video-wrapper video,
.media-feed-video video.local-video-player {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 650px !important;
    object-fit: contain !important;
    display: block !important;
    background: #000000 !important;
    border-radius: 10px !important;
}

.media-feed-info {
    padding: 12px;
}

.media-feed-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.media-feed-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.media-feed-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.media-feed-badge.photo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.media-feed-badge.video {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

/* Scrollbar for sidebar */
.media-preview-sidebar::-webkit-scrollbar {
    width: 6px;
}

.media-preview-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.media-preview-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.media-preview-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .row {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
    .col-4 {
        display: none;
    }
}

/* ==========================================================================
   Admin Profile Picture Lightbox Zoom System
   ========================================================================== */
.zoomable-profile-img {
    cursor: pointer !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.zoomable-profile-img:hover {
    transform: scale(1.22) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
    z-index: 5 !important;
    position: relative !important;
}

.profile-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.profile-zoom-modal.show {
    display: flex !important;
    opacity: 1;
}

.profile-zoom-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    max-width: 520px;
    width: 92%;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-zoom-modal.show .profile-zoom-content {
    transform: scale(1);
}

.profile-zoom-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.15s;
}

.profile-zoom-close:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.profile-zoom-img-wrapper {
    width: 100%;
    max-height: 480px;
    min-height: 250px;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-zoom-img-wrapper img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.profile-zoom-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-zoom-meta h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-zoom-badge {
    font-size: 0.76rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.profile-zoom-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.profile-zoom-btn:hover {
    opacity: 0.9;
    color: #ffffff !important;
}

/* ============================================================
   GLOBAL PAGINATION STYLING
   Fixes unstyled Laravel pagination lists across the application
   ============================================================ */
.pagination-wrapper,
nav[role="navigation"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 20px 0 !important;
}

/* Reset inner containers generated by Laravel pagination */
nav[role="navigation"] > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    nav[role="navigation"] > div {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
}

/* Remove default browser bullet points and padding on ul */
.pagination,
ul.pagination,
nav[role="navigation"] ul,
.custom-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Page items (list items) */
.pagination li,
.pagination .page-item,
nav[role="navigation"] ul li,
.custom-pagination li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

/* Remove bullet points from list item pseudo-elements */
.pagination li::before,
nav[role="navigation"] ul li::before,
.custom-pagination li::before {
    content: none !important;
}

/* Page links and active/disabled spans */
.pagination .page-link,
.pagination li a,
.pagination li span,
nav[role="navigation"] ul li a,
nav[role="navigation"] ul li span,
.custom-pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--text-main, #334155) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease-in-out !important;
    user-select: none !important;
}

/* Hover state for normal links */
.pagination li a:hover,
.pagination .page-link:hover,
nav[role="navigation"] ul li a:hover:not(.disabled),
.custom-pagination a.page-link:hover {
    background: #f8fafc !important;
    color: var(--primary, #6366f1) !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Active page item */
.pagination .active .page-link,
.pagination li.active a,
.pagination li.active span,
nav[role="navigation"] ul li.active span,
nav[role="navigation"] ul li.active a,
.custom-pagination li.active .page-link {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
}

/* Disabled state */
.pagination .disabled .page-link,
.pagination li.disabled a,
.pagination li.disabled span,
nav[role="navigation"] ul li.disabled span,
.custom-pagination li.disabled .page-link {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Text info ("Showing 1 to 12 of 20 results") */
nav[role="navigation"] p,
nav[role="navigation"] .text-muted,
nav[role="navigation"] small,
.pagination-info-text {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 !important;
    text-align: center !important;
}

nav[role="navigation"] p span,
nav[role="navigation"] .text-muted span,
.pagination-info-text span {
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* SVG icons inside pagination buttons */
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}