/* Stexo layout: dark sidebar + light header + main content */
:root {
    --stexo-sidebar-width: 260px;
    --stexo-sidebar-bg: #078789;
    --stexo-sidebar-hover: rgba(255, 255, 255, 0.06);
    --stexo-sidebar-active: rgba(12, 66, 82, 0.35);
    --stexo-topbar-height: 70px;
    --stexo-topbar-bg: #ffc80b;
    --stexo-primary: #078789;
    --stexo-primary-dark: #0a3642;
    --stexo-body-bg: #fff;
    --stexo-card-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
}

.table-light {
    --bs-table-color: #000;
    --bs-table-bg: #0c425236;
    
}
.form-control {
    font-size: 13px;
}
.stexo-page-title {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.btn-primary.stexo-btn-primary, .stexo-btn-primary {
    font-size: 14px !important;
}
button.btn.btn-primary.stexo-btn-primary {
    font-size: 12px !important;
}
a.btn.btn-light {
    font-size: 14px;
}
.stexo-table {
     font-size: 12px !important;
}
.stexo-table thead th
{
    font-size: 12px !important;
    padding: 14px 14px !important;
}
.px-3.py-2.bg-primary.text-white.fw-semibold.small {
    background: var(--stexo-sidebar-bg) !important;
}
button.btn.btn-secondary {
    font-size: 12px;
}
.stexo-sidebar-nav .nav-link.active {
    background: rgb(87 192 224 / 35%) !important;
    color: #fff;
    border-left-color: var(--stexo-primary);
}
.stexo-table tbody td {
    padding: 16px 16px !important;
    vertical-align: middle;
}
.form-select {
    font-size: 12px !important;
}
button.btn.btn-light {
    font-size: 12px;
}
body.stexo-body {
    background: var(--stexo-body-bg);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 12px;
}

/* Layout wrapper: sidebar + right side */
.stexo-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== LEFT SIDEBAR (dark) ========== */
.stexo-sidebar {
    width: var(--stexo-sidebar-width);
    min-width: var(--stexo-sidebar-width);
    background: var(--stexo-sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, margin 0.2s;
}

.stexo-sidebar-brand {
    height: var(--stexo-topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stexo-sidebar-brand a {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.stexo-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.stexo-sidebar-nav .nav-section {
    margin-bottom: 8px;
}

.stexo-sidebar-nav .nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    padding: 12px 24px 8px;
}

.stexo-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.stexo-sidebar-nav .nav-link:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}

.stexo-sidebar-nav .nav-link.active {
    background: var(--stexo-sidebar-active);
    color: #fff;
    border-left-color: var(--stexo-primary);
}

.stexo-sidebar-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 12px;
    opacity: 0.9;
}

/* Expandable menu */
.stexo-sidebar-nav .nav-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.stexo-sidebar-nav .nav-section-toggle:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}

.stexo-sidebar-nav .nav-section-toggle i:first-child {
    margin-right: 12px;
}

.stexo-sidebar-nav .nav-section-toggle .bi-chevron-down {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.stexo-sidebar-nav .nav-section-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.stexo-sidebar-nav .nav-section-menu {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 0;
}

.stexo-sidebar-nav .nav-section-menu .nav-link {
    padding-left: 48px;
    font-size: 0.875rem;
}

/* Level 1 / Level 2 sidebar */
.stexo-sidebar-nav .nav-link-l1 {
    font-weight: 600;
}
.stexo-sidebar-nav .nav-l1-group .nav-section-toggle.nav-l1 {
    font-weight: 600;
}
.stexo-sidebar-nav .nav-l2-wrap {
    background: rgba(0, 0, 0, 0.08);
    margin: 0 8px 4px;
    border-radius: 4px;
    padding: 2px 0;
}
.stexo-sidebar-nav .nav-link.nav-l2 {
    padding: 8px 24px 8px 44px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Compact + grouped modules (reduce sidebar length) */
.stexo-sidebar-nav .sidebar-module-group-toggle {
    padding: 8px 24px 8px 44px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.stexo-sidebar-nav .sidebar-module-group-toggle i:first-child {
    margin-right: 10px;
    opacity: 0.95;
}
.stexo-sidebar-nav .nav-l3-wrap {
    padding: 2px 0 6px 0;
}
.stexo-sidebar-nav .nav-link.nav-l3,
.stexo-sidebar-nav .nav-link-nested.nav-l3 {
    padding: 6px 24px 6px 62px;
    font-size: 0.82rem;
    font-weight: 500;
}
.stexo-sidebar-nav .nav-link.nav-l3 i,
.stexo-sidebar-nav .nav-link-nested.nav-l3 i {
    margin-right: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Tighten vertical rhythm a bit to avoid scrolling */
.stexo-sidebar-nav .nav-section-title {
    padding: 10px 24px 6px;
}
.stexo-sidebar-nav .nav-link {
    padding-top: 9px;
    padding-bottom: 9px;
}
.stexo-sidebar-nav .sidebar-product-group .nav-section-toggle {
    padding-top: 9px;
    padding-bottom: 9px;
}
.stexo-sidebar-nav .nav-section-level1 .nav-section-title {
    margin-top: 8px;
}

/* Product → Modules: Product = main menu, Modules = sub-menus */
.stexo-sidebar-nav .sidebar-product-group {
    padding: 0;
    margin-bottom: 2px;
}
.stexo-sidebar-nav .sidebar-product-group .nav-section-toggle {
    padding: 10px 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}
.stexo-sidebar-nav .sidebar-product-group .nav-section-toggle:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}
.stexo-sidebar-nav .sidebar-product-group .sidebar-product-name {
    flex: 1;
    text-align: left;
}
.stexo-sidebar-nav .sidebar-product-group .sidebar-product-chevron {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: transform 0.2s;
}
.stexo-sidebar-nav .sidebar-product-group .nav-section-toggle[aria-expanded="false"] .sidebar-product-chevron {
    transform: rotate(-90deg);
}
.stexo-sidebar-nav .nav-group-collapse {
    padding: 0 0 4px 0;
}
.stexo-sidebar-nav .nav-link-nested {
    padding-left: 44px;
    font-size: 0.875rem;
}
.stexo-sidebar-nav .nav-link-nested .nav-link-tree-char {
    display: inline-block;
    width: 1em;
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}
.stexo-sidebar-nav .nav-link-nested i {
    font-size: 1rem;
}

.stexo-sidebar-nav .nav-section-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* ========== RIGHT SIDE: Topbar + Content ========== */
.stexo-right {
    flex: 1;
    margin-left: var(--stexo-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top header bar (light grey) */
.stexo-topbar {
    height: var(--stexo-topbar-height);
    background: var(--stexo-topbar-bg);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.stexo-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stexo-topbar .btn-sidebar-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
}

.stexo-topbar .btn-sidebar-toggle:hover {
    background: #f9fafb;
    color: #111827;
}

.stexo-topbar-search {
    position: relative;
    width: 280px;
}

.stexo-topbar-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}

.stexo-topbar-search input::placeholder {
    color: #9ca3af;
}

.stexo-topbar-search .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.stexo-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stexo-topbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    position: relative;
}

.stexo-topbar-icon:hover {
    background: #fff;
    color: #111827;
}

.stexo-topbar-icon .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stexo-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.stexo-topbar-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--stexo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Topbar: User impersonation notice */
.stexo-topbar-impersonation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    padding: 6px 14px 6px 12px;
    background: rgba(10, 54, 66, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(10, 54, 66, 0.2);
    font-size: 12px;
    line-height: 1.3;
}
.stexo-topbar-impersonation .stexo-topbar-impersonation-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--stexo-primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.stexo-topbar-impersonation .stexo-topbar-impersonation-text {
    color: var(--stexo-primary-dark);
    font-weight: 500;
}
.stexo-topbar-impersonation .stexo-topbar-impersonation-text strong {
    font-weight: 600;
}
.stexo-topbar-impersonation .stexo-topbar-impersonation-leave {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 999px;
    background: var(--stexo-primary-dark);
    color: #fff !important;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.stexo-topbar-impersonation .stexo-topbar-impersonation-leave:hover {
    background: #061f26;
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 991px) {
    .stexo-topbar-impersonation .stexo-topbar-impersonation-label {
        display: none;
    }
    .stexo-topbar-impersonation .stexo-topbar-impersonation-text {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Main content area */
.stexo-main {
    flex: 1;
    padding: 0;
}

.stexo-content {
    padding: 24px;
    background: #fff;
    min-height: calc(100vh - var(--stexo-topbar-height));
}

/* Page title & breadcrumb (like image: big title left, breadcrumb right) */
.stexo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.stexo-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #374151;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-page-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filter bar (search + dropdown + Search button) - same style across Client, Media, Display, User, Role, Report */
.stexo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.stexo-filter-bar .form-control,
.stexo-filter-bar .form-select {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    min-height: 38px;
    width: auto;
    min-width: 200px;
}
.stexo-filter-bar .form-control:focus,
.stexo-filter-bar .form-select:focus {
    border-color: var(--stexo-primary, #0d9488);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}
.stexo-filter-bar .btn.stexo-btn-primary {
    min-height: 38px;
    border-radius: 6px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Report request: multiple-choice dropdowns */
.stexo-multiselect {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 6px 10px !important;
    min-height: 100px !important;
    font-size: 13px !important;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.stexo-multiselect:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff !important;
}
.stexo-multiselect:focus {
    border-color: var(--stexo-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(12, 66, 82, 0.2) !important;
    outline: none !important;
}
.stexo-multiselect option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}
.stexo-multiselect option:hover {
    background-color: rgba(12, 66, 82, 0.08);
}
.stexo-multiselect option:checked {
    background: linear-gradient(0deg, rgba(12, 66, 82, 0.15), rgba(12, 66, 82, 0.12));
    color: var(--stexo-primary-dark);
    font-weight: 500;
}
/* Scrollbar for multiselect (WebKit) */
.stexo-multiselect::-webkit-scrollbar {
    width: 8px;
}
.stexo-multiselect::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cards */
.stexo-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--stexo-card-shadow);
    border: 1px solid #eff2f7;
}

/* Dashboard stat cards (Stexo style: same font, same size box, icon, progress) */
.stexo-dashboard-cards .stexo-stat-card {
    min-height: 110px;
}
.stexo-dashboard-cards .stexo-stat-card .card-body {
    padding: 24px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stexo-stat-title {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #374151;
    letter-spacing: 0;
}
.stexo-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stexo-stat-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6b7280;
}
.stexo-stat-pct {
    font-weight: 500;
    color: #6b7280;
}
/* Circular icon top-right on stat cards */
.stexo-stat-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}
.stexo-stat-icon-primary { background: var(--stexo-primary); }
.stexo-stat-icon-success { background: #10b981; }
.stexo-stat-icon-warning { background: #f59e0b; }
.stexo-stat-icon-danger { background: #ef4444; }
/* Progress bar in stat cards */
.stexo-stat-progress {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
}
.stexo-stat-progress .progress-bar {
    border-radius: 3px;
    background: var(--stexo-primary);
}

.stexo-card .card-body { padding: 24px; }
.stexo-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eff2f7;
    padding: 16px 24px;
    font-weight: 600;
    color: #495057;
}

/* Buttons - blue like image */
a.btn.btn-primary.stexo-btn-primary {
    font-size:13px;
}
.btn-primary.stexo-btn-primary,
.stexo-btn-primary {
    background: var(--stexo-primary);
    border-color: var(--stexo-primary);
    border-radius: 6px;
}
.btn-primary.stexo-btn-primary:hover,
.stexo-btn-primary:hover {
    background: var(--stexo-primary-dark);
    border-color: var(--stexo-primary-dark);
}

/* Pagination - theme-aligned Previous/Next and page links (Bootstrap 5 markup) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    gap: 4px;
}
.pagination .page-item {
    display: inline-block;
}
.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    min-width: 2.25rem;
    text-align: center;
}
.pagination .page-link:hover {
    background: #f8fafc;
    border-color: var(--stexo-primary, #0d9488);
    color: var(--stexo-primary, #0d9488);
}
.pagination .page-item.active .page-link {
    background: var(--stexo-primary, #0d9488);
    border-color: var(--stexo-primary, #0d9488);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* User dropdown */
.stexo-user-dropdown .dropdown-toggle::after { margin-left: 8px; color:white;}
.stexo-user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
}
.stexo-user-dropdown .dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Tables */
.stexo-table { margin-bottom: 0; }
.stexo-table thead th {
    border-bottom: 1px solid #eff2f7;
    color: #495057;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
}
.stexo-table tbody td {
    padding: 16px 24px;
    vertical-align: middle;
}
.stexo-table tbody tr:hover { background: #f8f9fa; }

/* Alerts */
.stexo-alert { border: none; border-radius: 8px; }

/* Badges */
.badge.bg-soft-success { background: rgba(40, 199, 111, 0.15); color: #28a745; }
.badge.bg-soft-secondary { background: rgba(108, 117, 125, 0.15); color: #6c757d; }
.badge.bg-soft-danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.badge.bg-soft-primary { background: rgba(74, 123, 255, 0.15); color: var(--stexo-primary); }

/* Sidebar collapse on mobile */
@media (max-width: 991.98px) {
    .stexo-sidebar {
        transform: translateX(-100%);
    }
    .stexo-sidebar.show {
        transform: translateX(0);
    }
    .stexo-right {
        margin-left: 0;
    }
}

/* Vertical menu toggle (desktop): collapsed sidebar */
.stexo-sidebar-collapsed .stexo-sidebar {
    width: 72px;
    min-width: 72px;
}
.stexo-sidebar-collapsed .stexo-right {
    margin-left: 72px;
}
.stexo-sidebar-collapsed .stexo-sidebar-brand a {
    font-size: 1.25rem;
    overflow: hidden;
    text-indent: -999px;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-title {
    padding: 12px 16px 8px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link {
    padding: 12px 16px;
    justify-content: center;
    font-size: 0;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link i {
    margin-right: 0;
    font-size: 1.1rem;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link span,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link .nav-section-badge {
    display: none;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu .nav-link {
    padding-left: 16px;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .sidebar-product-group .nav-section-toggle {
    padding: 12px 16px;
    justify-content: center;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .sidebar-product-group .sidebar-product-name,
.stexo-sidebar-collapsed .stexo-sidebar-nav .sidebar-product-group .sidebar-product-chevron {
    display: none;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .sidebar-product-group .nav-link-nested {
    padding-left: 16px;
    justify-content: center;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .sidebar-product-group .nav-link-nested-text,
.stexo-sidebar-collapsed .stexo-sidebar-nav .sidebar-product-group .nav-link-tree-char {
    display: none;
}

/* Login page */
.stexo-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a3240 0%, #1a2030 100%);
    padding: 24px;
}
.stexo-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}
.stexo-auth-header {
    background: var(--stexo-primary);
    color: #fff;
    padding: 32px 24px;
    text-align: center;
}
.stexo-auth-header h4 { margin: 0; font-weight: 600; font-size: 1.5rem; }
.stexo-auth-body { padding: 32px 24px; }
.stexo-auth-body .form-control { border-radius: 6px; padding: 10px 14px; }
.stexo-auth-body .btn-primary {
    padding: 10px 24px;
    border-radius: 6px;
    width: 100%;
    background: var(--stexo-primary);
    border-color: var(--stexo-primary);
}

/* Themed confirm modal (replaces browser confirm) */
.stexo-confirm-modal .modal-content.stexo-confirm-modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(7, 135, 137, 0.2);
}
.stexo-confirm-modal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--stexo-primary-dark, #0a3642);
}
.stexo-confirm-modal .modal-body {
    font-size: 14px;
    color: #333;
}
.stexo-confirm-modal .stexo-confirm-btn {
    min-width: 90px;
}
.stexo-confirm-modal .modal-backdrop.show { opacity: 0.5; }

/* Role permissions: product-wise tabs */
.nav-tabs-roles.nav-tabs {
    border-bottom-color: rgba(7, 135, 137, 0.2);
}
.nav-tabs-roles .nav-link {
    position: relative;
    color: #555;
    border-color: transparent;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    font-weight: 500;
}
.nav-tabs-roles .nav-link:hover {
    border-color: transparent;
    color: var(--stexo-primary);
}
.nav-tabs-roles .nav-link.active {
    color: var(--stexo-primary);
    background-color: #fff;
    border-color: rgba(7, 135, 137, 0.2) rgba(7, 135, 137, 0.2) #fff;
    border-bottom-color: transparent;
}
.nav-tabs-roles .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--stexo-primary);
}
.nav-tabs-roles .nav-item {
    position: relative;
}
