/* ============================================
   Training Center Admin Dashboard - Custom CSS
   Primary: #7C3AED (purple)
   Secondary CTA: #F59E0B (orange/amber)
   Sidebar: #6D28D9
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #EDE9FE;
    --primary-lighter: #EDE9FE;
    --primary-bg: #F5F3FF;
    --secondary: #F59E0B;
    --secondary-hover: #D97706;
    --sidebar-bg: #6D28D9;
    --sidebar-active: rgba(255,255,255,0.15);
    --sidebar-hover: rgba(255,255,255,0.08);
    --bg-main: #F3F4F6;
    --bg-card: #fdfdfd;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius: 10px;
    --radius-lg: 14px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-hover: #6D28D9;
    --secondary-cta: #F59E0B;
    --secondary-cta-hover: #D97706;
    --border-default: #D1D5DB;
    --text-primary: #111827;
    --text-muted: #6B7280;
    --radius-input: 10px;
    --radius-card: 14px;
    /* Additional variables for wizard and form elements */


    --bg: #F3F4F6;
    --card-bg: #FFFFFF;
    --border: #D1D5DB;
    --text: #111827;
    --muted: #6B7280;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -5px rgba(0,0,0,0.06);
    --fc-border-color: var(--border);
    --fc-page-bg-color: var(--bg-card);
    --fc-page-color: var(--text-dark);
}


* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* background-color: var(--bg-main); */
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: linear-gradient(180deg, #7C3AED 0%, #6D28D9 40%, #5B21B6 100%);
    color: #fff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand .brand-icon {
    width: 6rem;
    height: 6rem;
    margin: auto;
    background: #fff;
    border-radius: 50rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sidebar-brand .brand-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sidebar-brand span {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    position: absolute;
    left: auto;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    transition: var(--transition);
    font-size: 14px;
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.25); }

.sidebar-quick-actions {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-quick-actions .qa-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}
.sidebar-quick-actions .qa-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow:  hidden auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border-left: 3px solid transparent;
}

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

.sidebar-nav .nav-item.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: #FBBF24;
    font-weight: 600;
}

.sidebar-nav .nav-item i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-bottom {
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
}

.topbar-greeting {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-gray);
}
.topbar-greeting strong {
    font-weight: 700;
    color: var(--text-dark);
}

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

.topbar-flag {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
}
.topbar-flag:hover { background: #F9FAFB; }
.topbar-flag img { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; }

/* ===== DROPDOWN BACKDROP (outside-click close) ===== */
.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
}

/* ===== CONTEXT SWITCHER BAR ITEMS ===== */
.context-switcher-wrapper {
    position: relative;
    display: inline-flex;
}

.context-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: none;
    font-family: inherit;
    line-height: 1.4;
}

.context-switcher:hover {
    background: #F9FAFB;
}

.context-switcher .switcher-icon {
    font-size: 1rem;
    color: #6B7280;
    display: flex;
    align-items: center;
}

.context-switcher .switcher-label {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.context-switcher .switcher-chevron {
    font-size: 12px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
}

.context-switcher img.switcher-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.topbar-notification {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-gray);
    font-size: 18px;
}
.topbar-notification:hover { background: var(--primary-lighter); color: var(--primary); }
.topbar-notification .notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: var(--transition);
}
.topbar-user:hover { background: #F9FAFB; }
.topbar-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-lighter);
}
.topbar-user-info { line-height: 1.3; }
.topbar-user-info .name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.topbar-user-info .role { font-size: 11px; color: var(--text-light); }

/* ===== TOPBAR DROPDOWNS ===== */
.topbar-actions .dropdown-toggle::after {
    display: none;
}

.topbar-actions .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
}

.topbar-actions .dropdown-item {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-dark);
    transition: var(--transition);
}

.topbar-actions .dropdown-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.topbar-actions .dropdown-divider {
    margin: 6px 0;
    border-color: var(--border-color);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 220px;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    padding: 28px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0 20px;
    font-weight: 500;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 4px;
}
.breadcrumb-custom a {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 700;
    transition: var(--transition);
}
.breadcrumb-custom a:hover { color: var(--primary); }
.breadcrumb-custom .separator { color: var(--text-light); font-weight: 400; }
.breadcrumb-custom .current { color: var(--text-light); font-weight: 400; }

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }

.btn-secondary-custom {
    background: var(--secondary);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary-custom:hover { background: var(--secondary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

.btn-outline-custom {
    background: #fff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: var(--transition);
}
.btn-outline-custom:hover { background: var(--primary-lighter); color: var(--primary); }

.btn-cta-full {
    background: var(--secondary);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-cta-full:hover { background: var(--secondary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px;
    min-height: 65vh;
}

.empty-state-illustration {
    width: 320px;
    max-width: 100%;
    margin-bottom: 24px;
    animation: floatSoft 4s ease-in-out infinite;
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.category-card .card-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #F3F4F6;
    transition: var(--transition);
}

.category-card:hover .card-img {
    border-color: var(--primary-lighter);
    transform: scale(1.03);
}

.category-card .card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-card .card-desc {
    font-size: 12.5px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card .card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== DETAIL CARDS ===== */
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 18px 18px;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    position: relative;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.detail-card .card-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 3px solid #F3F4F6;
    transition: var(--transition);
}

.detail-card:hover .card-img {
    border-color: var(--primary-lighter);
}

.detail-card .card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.detail-card .card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.detail-card .card-desc {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== BADGES ===== */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #F3F4F6;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.badge-pill .badge-count {
    font-weight: 700;
    color: var(--text-dark);
}

.badge-subcategory {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-lighter);
    color: var(--primary);
}

.badge-course {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #E0E7FF;
    color: #4338CA;
}

.card-wrapper {
    position: relative;
}

.card-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
}

.dropdown-card .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.dropdown-card .action-btn:hover,
.dropdown-card .action-btn:focus {
    background: #F9FAFB;
    color: var(--text-dark);
}

.dropdown-card .action-menu {
    position: absolute;
    top: 42px;
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    pointer-events: none;
    overflow: hidden;
}

.dropdown-card:focus-within .action-menu,
.dropdown-card:hover .action-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.action-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition), color var(--transition);
}

.action-menu-item:hover {
    background: var(--primary-bg);
    color: var(--text-dark);
}

.dropdown-card .action-btn:focus + .action-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 4px;
}

/* ===== STATUS DROPDOWN ===== */
.status-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-filter label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    margin: 0;
}

.status-filter select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 36px 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    min-width: 140px;
    appearance: auto;
}
.status-filter select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* ===== MODAL CUSTOM ===== */
.modal-custom .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-custom .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-custom .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-custom .modal-body {
    padding: 24px;
}

.modal-custom .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    justify-content: flex-end;
    gap: 12px;
}

.upload-zone {
    border: 2px dashed var(--primary-light);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-bg);
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
}

.upload-zone.has-image {
    padding: 0;
    border-style: solid;
    overflow: hidden;
}

.upload-zone .upload-icon {
    font-size: 42px;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.upload-zone .upload-text {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.upload-zone .preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.upload-zone .edit-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.upload-zone .edit-overlay:hover { background: rgba(0,0,0,0.7); }

.form-label-custom {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control-custom {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
    outline: none;
}

.form-control-custom::placeholder { color: var(--text-light); }

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-text {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
/*----------------------courses----------------------*/

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}
     /* Card and Panel Styling */
        .wizard-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--primary-bg);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            padding: 30px;
            margin-bottom: 30px;
            width:100%;
        }

        .bordered-box {
            border: 1.5px solid var(--border-default);
            border-radius: var(--radius-input);
            padding: 16px;
            background-color: #FFFFFF;
            transition: border-color 0.2s ease;
        }

        .bordered-box:focus-within {
            border-color: var(--primary);
        }

        /* Inputs, Textareas, Selects Styling */
        .form-control-wiz, .form-select-wiz {
            border: 1.5px solid var(--border-default);
            border-radius: var(--radius-input);
            padding: 10px 14px;
            font-size: 14px;
            color: var(--text-primary);
            background-color: #FFFFFF;
            transition: all 0.2s ease-in-out;
        }

        .form-control-wiz:focus, .form-select-wiz:focus {
            outline: none !important;
            border: 1.5px solid var(--primary) !important;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
            background-color: #FFFFFF;
        }

        .form-control-wiz::placeholder {
            color: #9CA3AF;
        }

        .form-label-wiz {
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
            display: inline-block;
        }

        /* Custom Bootstrap Toggle Swtich (Green & Purple) */
        .form-switch .form-check-input {
            width: 2.5em;
            height: 1.25em;
            background-color: #E5E7EB;
            border-color: #D1D5DB;
            cursor: pointer;
        }

        .form-switch .form-check-input:checked {
            background-color: var(--primary) !important;
            border-color: var(--primary) !important;
        }

        .form-switch-green .form-check-input:checked {
            background-color: #22C55E !important;
            border-color: #22C55E !important;
        }

        /* Checkbox & Radio Purple customization */
        .form-check-input {
            cursor: pointer;
            border: 1.5px solid var(--border-default);
        }

        .form-check-input:checked {
            background-color: var(--primary) !important;
            border-color: var(--primary) !important;
        }

        .form-check-input:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
        }

        /* Buttons Styling */
        .btn-purple-custom {
            background-color: var(--primary);
            color: #FFFFFF;
            border: none;
            border-radius: var(--radius-input);
            font-weight: 600;
            padding: 10px 24px;
            transition: all 0.2s ease;
        }

        .btn-purple-custom:hover {
            background-color: var(--primary-hover);
            color: #FFFFFF;
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
        }

        .btn-orange-custom {
            background-color: var(--secondary-cta);
            color: #FFFFFF;
            border: none;
            border-radius: var(--radius-input);
            font-weight: 600;
            padding: 10px 24px;
            transition: all 0.2s ease;
        }

        .btn-orange-custom:hover {
            background-color: var(--secondary-cta-hover);
            color: #FFFFFF;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
        }

        .btn-outline-wiz {
            background-color: #FFFFFF;
            color: var(--text-muted);
            border: 1.5px solid var(--border-default);
            border-radius: var(--radius-input);
            font-weight: 600;
            padding: 10px 24px;
            transition: all 0.2s ease;
        }

        .btn-outline-wiz:hover:not(:disabled) {
            border-color: var(--primary);
            color: var(--primary);
            background-color: rgba(124, 58, 237, 0.04);
        }

        .btn-outline-wiz:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Step Progress Bar Layout */
        .progress-bar-container {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-bottom: 25px;
            padding: 0 10px;
        }

        .progress-line-bg {
            position: absolute;
            top: 18px;
            left: 20px;
            right: 20px;
            height: 2px;
            background-color: #E5E7EB;
            z-index: 1;
        }

        .progress-line-fill {
            height: 100%;
            background-color: var(--primary);
            width: 0%;
            transition: width 0.3s ease;
        }

        .step-indicator-wrapper {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .step-circle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #FFFFFF;
            border: 1.5px solid var(--border-default);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-muted);
            transition: all 0.3s ease;
            cursor: default;
        }

        .step-indicator-wrapper.active .step-circle {
            border-color: var(--primary);
            color: var(--primary);
        }

        .step-indicator-wrapper.completed .step-circle {
            background-color: var(--primary);
            border-color: var(--primary);
            color: #FFFFFF;
        }

        .page-title-purple {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary);
            margin: 10px 0 20px 0;
        }

        /* Image Upload Box style */
        .photo-upload-wrapper {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 24px;
        }

        .photo-square-placeholder {
            width: 120px;
            height: 120px;
            background-color: #F3F4F6;
            border-radius: 12px;
            border: 1.5px dashed var(--border-default);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            color: #9CA3AF;
        }

        .photo-square-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-square-placeholder .icon-broken {
            font-size: 32px;
            color: #9CA3AF;
        }

        /* Tag Input Styles */
        .tag-input-container {
            position: relative;
            display: flex;
            align-items: center;
            border: 1.5px solid var(--border-default);
            border-radius: var(--radius-input);
            padding: 4px 12px;
            background-color: #FFFFFF;
            min-height: 44px;
        }

        .tag-input-container:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
        }

        .tag-chips-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            width: 100%;
        }

        .tag-chip {
            background-color: rgba(124, 58, 237, 0.08);
            color: var(--primary);
            border: 1px solid rgba(124, 58, 237, 0.15);
            border-radius: 20px;
            padding: 3px 10px;
            font-size: 12.5px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .tag-chip .remove-chip {
            cursor: pointer;
            font-weight: bold;
            color: var(--primary);
            font-size: 14px;
        }

        .tag-chip .remove-chip:hover {
            color: var(--primary-hover);
        }

        .tag-input-field {
            border: none;
            outline: none;
            flex-grow: 1;
            font-size: 14px;
            min-width: 120px;
            padding: 4px 0;
            color: var(--text-primary);
        }

        .tag-input-clear {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        /* Steppers styling */
        .stepper-control-box {
            display: inline-flex;
            align-items: center;
            background-color: #F3F4F6;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-default);
        }

       .stepper-btn {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    border: none;
    color: var(--bg-card);
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .stepper-btn:hover {
            background-color: #D1D5DB;
        }

        .stepper-btn:active {
            background-color: #9CA3AF;
        }

        .stepper-value {
            width: 44px;
            text-align: center;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
        }

        /* Custom Multiselect Dropdown */
        .multiselect-dropdown-container {
            position: relative;
            width: 100%;
        }

        .multiselect-trigger-box {
            border: 1.5px solid var(--border-default);
            border-radius: var(--radius-input);
            padding: 8px 12px;
            min-height: 44px;
            cursor: pointer;
            background-color: #FFFFFF;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            transition: all 0.2s ease;
        }

        .multiselect-trigger-box:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
        }

        .multiselect-menu-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: #FFFFFF;
            border: 1.5px solid var(--border-default);
            border-radius: var(--radius-input);
            margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            z-index: 999;
            display: none;
            max-height: 250px;
            overflow-y: auto;
        }

        .multiselect-menu-list.show {
            display: block;
        }

        .multiselect-menu-item {
            padding: 10px 14px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.2s ease;
            font-size: 13.5px;
            color: var(--text-primary);
        }

        .multiselect-menu-item:hover, .multiselect-menu-item.active-hover {
            background-color: #EFF6FF; /* Custom soft blue highlight */
            color: #1D4ED8;
        }

        .multiselect-menu-item.active-hover {
            background-color: #DBEAFE !important;
        }

        .multiselect-menu-item label {
            width: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            margin: 0;
        }

        .multiselect-pill {
            background-color: rgba(124, 58, 237, 0.08);
            color: var(--primary);
            border: 1px solid rgba(124, 58, 237, 0.15);
            border-radius: 20px;
            padding: 2px 10px;
            font-size: 12px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .multiselect-pill .remove-pill {
            cursor: pointer;
            font-weight: bold;
        }

        /* Success screen checkcircle */
        .success-circle-large {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: rgba(124, 58, 237, 0.08);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px auto;
        }
/* ===== TABLE PAGE STYLES ===== */
.table-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.table-header-left {
    display: flex;
    align-items: center;
}

.table-subtitle {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

.table-header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== BURGER MENU BUTTON ===== */
.burger-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.burger-menu-btn:hover {
    background: #F9FAFB;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== RESPONSIVE TABLET (768px to 1024px) ===== */
@media (max-width: 1024px) {
    .topbar-greeting {
        font-size: 16px;
    }
    
    .topbar-actions {
        gap: 12px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .sidebar { width: 200px; }
    .topbar { left: 200px; }
    .main-content { margin-left: 200px; }
    .category-card .card-img,
    .detail-card .card-img { width: 100px; height: 100px; }
}

/* ===== RESPONSIVE MOBILE & TABLET (≤ 768px) ===== */
@media (max-width: 768px) {
    /* SIDEBAR */
    .sidebar {
        width: 260px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: hidden;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .sidebar-quick-actions {
        display: none;
    }
    
    /* TOPBAR */
    .topbar {
        left: 0;
        right: 0;
        padding: 0 16px;
    }
    
    .burger-menu-btn {
        display: flex;
    }
    
    .topbar-greeting {
        display: none;
    }
    
    .topbar-actions {
        gap: 10px;
    }
    
    .topbar-flag {
        padding: 5px 8px;
    }
    
    /* MAIN CONTENT */
    .main-content {
        margin-left: 0;
        margin-top: 64px;
        padding: 16px;
    }
    
    /* PAGE ELEMENTS */
    .page-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .page-title-purple {
        font-size: 18px;
    }
    
    .category-card .card-img,
    .detail-card .card-img { 
        width: 100px; 
        height: 100px; 
    }
    
    .topbar-user-info {
        display: none;
    }
}

/* ===== RESPONSIVE SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .page-title-purple {
        font-size: 16px;
    }
    
    .page-subtitle {
        font-size: 12px;
    }
    
    .topbar {
        height: 56px;
        padding: 0 12px;
    }
    
    .main-content {
        margin-top: 56px;
    }
    
    .topbar-notification,
    .topbar-user {
        width: 36px;
        height: 36px;
    }
    
    .topbar-user img {
        width: 32px;
        height: 32px;
    }
    
    .category-card .card-img,
    .detail-card .card-img { 
        width: 80px; 
        height: 80px; 
    }
}
