/* Base Variables & Overrides */
:root {
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 16px;
    --primary: #1E3A8A;
    --violet: #7C3AED;
    --cyan: #06B6D4;
}

body {
    background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background: #f4f7fe;
    /* Fallback */
    background: linear-gradient(135deg, #f0f4fd 0%, #ffffff 100%);
}

/* Glassmorphism Classes */
.glass-panel,
.glass-header,
.glass-card {
    position: relative;
    z-index: 1;
    /* Establish stacking context for content */
}

.glass-panel::before,
.glass-header::before,
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.glass-panel::before {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.glass-header {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-header::before {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.03);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card::before {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card:hover {
    box-shadow: 0 12px 30px 0 rgba(31, 38, 135, 0.07);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.75);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(124, 58, 237, 0.1);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* AI Speaking Waveform Animation base classes */
.waveform-bar {
    animation: waveform 1.2s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes waveform {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 100%;
    }
}

/* Typing Indicator Animation */
.typing-dot {
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Ambient Background Gradients (Shared across pages) */
.ambient-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(244, 247, 254, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(244, 247, 254, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Avatar processing rings */
@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes ping-slow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.ring-1 {
    animation: spin-slow 12s linear infinite;
    border-top-color: transparent;
    border-right-color: transparent;
}

.ring-2 {
    animation: spin-reverse 8s linear infinite;
    border-bottom-color: transparent;
    border-left-color: transparent;
}


/* Ambient Glow */
.ambient-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.08);
}

/* OTP Inputs */
.otp-input {
    width: 3.5rem;
    height: 4rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hide arrows on number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* DataTables (Tailwind integration) — light admin theme; avoid OS dark-mode `dark:` styles */
:root {
    --dt-row-stripe: 241, 245, 249;
    --dt-row-hover: 248, 250, 252;
    --dt-column-ordering: 71, 85, 105;
}

.dt-container.dt-tailwindcss {
    width: 100%;
    min-width: 0;
    color: rgb(51 65 85);
}

.dt-container .dt-length,
.dt-container .dt-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(71 85 105);
}

.dt-container .dt-length select,
.dt-container .dt-search input {
    color-scheme: only light;
}

.dt-container .pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
}

table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:after,
table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:after,
table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order:before,
table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order:after,
table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order:before,
table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order:after {
    opacity: 0.4;
}

table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order:after,
table.dataTable thead>tr>td.dt-ordering-asc span.dt-column-order:before,
table.dataTable thead>tr>td.dt-ordering-desc span.dt-column-order:after {
    opacity: 0.85;
    color: rgb(109 40 217);
}

/* Custom SweetAlert2 Backdrop (Full Page Glass Overlay) */
div:where(.swal2-container) {
    background: rgba(15, 23, 42, 0.4) !important;
    /* slate-900 with opacity */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Custom SweetAlert2 Glassmorphism Theme */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 40px -10px rgba(30, 58, 138, 0.12) !important;
    border-radius: 1rem !important;
    color: #1e293b !important;
    padding: 0.875rem 1.25rem !important;
}

/* ── Toast Notification Overrides ────────────────────────────── */

/* Toast container – remove blurred backdrop overlay */
body.swal2-toast-shown .swal2-container {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Toast popup – sleek, compact glassmorphism card */
div:where(.swal2-container) .swal2-toast.swal2-popup {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        0 8px 32px rgba(30, 58, 138, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border-radius: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    min-width: 280px !important;
    max-width: 420px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    border-left: 4px solid rgba(124, 58, 237, 0.6) !important;
    z-index: 99999 !important;
}

/* Success accent */
div:where(.swal2-container) .swal2-toast.swal2-popup.swal2-icon-success {
    border-left-color: #10b981 !important;
}

/* Error accent */
div:where(.swal2-container) .swal2-toast.swal2-popup.swal2-icon-error {
    border-left-color: #ef4444 !important;
}

/* Warning accent */
div:where(.swal2-container) .swal2-toast.swal2-popup.swal2-icon-warning {
    border-left-color: #f59e0b !important;
}

/* Info accent */
div:where(.swal2-container) .swal2-toast.swal2-popup.swal2-icon-info {
    border-left-color: #3b82f6 !important;
}

/* Toast icon – properly sized and aligned */
div:where(.swal2-container) .swal2-toast .swal2-icon {
    width: 1.75rem !important;
    min-width: 1.75rem !important;
    height: 1.75rem !important;
    margin: 0 0.75rem 0 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 55% !important;
    display: block !important;
}

/* Hide default animated shapes for toast icons to prevent distortion/overflow */
div:where(.swal2-container) .swal2-toast .swal2-icon > * {
    display: none !important;
}

/* Success Toast Icon */
div:where(.swal2-container) .swal2-toast .swal2-icon.swal2-success {
    background-color: #ecfdf5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Error Toast Icon */
div:where(.swal2-container) .swal2-toast .swal2-icon.swal2-error {
    background-color: #fef2f2 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Warning Toast Icon */
div:where(.swal2-container) .swal2-toast .swal2-icon.swal2-warning {
    background-color: #fffbeb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='7' x2='12' y2='13'%3E%3C/line%3E%3Ccircle cx='12' cy='17' r='0.5' fill='%23f59e0b' stroke='%23f59e0b' stroke-width='1.5'%3E%3C/circle%3E%3C/svg%3E") !important;
}

/* Info Toast Icon */
div:where(.swal2-container) .swal2-toast .swal2-icon.swal2-info {
    background-color: #eff6ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='11' x2='12' y2='17'%3E%3C/line%3E%3Ccircle cx='12' cy='7' r='0.5' fill='%233b82f6' stroke='%233b82f6' stroke-width='1.5'%3E%3C/circle%3E%3C/svg%3E") !important;
}

/* Question Toast Icon */
div:where(.swal2-container) .swal2-toast .swal2-icon.swal2-question {
    background-color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'%3E%3C/path%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Toast title – clean compact text */
div:where(.swal2-container) .swal2-toast .swal2-title {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

/* Toast HTML container */
div:where(.swal2-container) .swal2-toast .swal2-html-container {
    margin: 0.125rem 0.75rem !important;
    padding: 0 !important;
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

/* Timer progress bar for toast */
div:where(.swal2-container) .swal2-toast .swal2-timer-progress-bar-container {
    border-bottom-left-radius: 0.875rem !important;
    border-bottom-right-radius: 0.875rem !important;
}

div:where(.swal2-container) .swal2-toast .swal2-timer-progress-bar {
    background: rgba(124, 58, 237, 0.25) !important;
    height: 3px !important;
}

/* Success toast – green progress bar */
div:where(.swal2-container) .swal2-toast.swal2-icon-success .swal2-timer-progress-bar {
    background: rgba(16, 185, 129, 0.3) !important;
}

/* Error toast – red progress bar */
div:where(.swal2-container) .swal2-toast.swal2-icon-error .swal2-timer-progress-bar {
    background: rgba(239, 68, 68, 0.3) !important;
}

/* Warning toast – amber progress bar */
div:where(.swal2-container) .swal2-toast.swal2-icon-warning .swal2-timer-progress-bar {
    background: rgba(245, 158, 11, 0.3) !important;
}

/* Smooth slide-in animation for toast */
div:where(.swal2-container) .swal2-toast.swal2-show {
    animation: toast-slide-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) !important;
}

div:where(.swal2-container) .swal2-toast.swal2-hide {
    animation: toast-slide-out 0.2s ease-in forwards !important;
}

@keyframes toast-slide-in {
    0% {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
}

/* ── Non-Toast (Modal) Title Styling ────────────────────────── */
div:where(.swal2-container) .swal2-title {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    font-family: inherit !important;
}

/* Progress bar inside modal (non-toast) */
div:where(.swal2-container) div:where(.swal2-timer-progress-bar) {
    background: rgba(124, 58, 237, 0.3) !important;
}

/* Make Select2 match Tailwind input styling */
.select2-container {
    width: 100% !important;
}

/* Match standard tailwind bg-white/60 focus:border-violet/50 inputs */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    min-height: 55px;
    border-radius: 0.75rem;
    border: 1px solid rgb(226, 232, 240);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.35rem 0.65rem;
    /* Base vertical and right padding */
    cursor: text;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    transition: all 0.3s ease;
}

/* Icon wrapper shifts content right to avoid icon overlap */
.select2-icon-wrapper .select2-container--default .select2-selection--multiple,
.select2-icon-wrapper .select2-container--default .select2-selection--single {
    padding-left: 2.5rem;
}

/* Focus states */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(124, 58, 237, 0.5);
    /* focus:border-violet/50 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* focus:shadow-md */
    background-color: rgba(255, 255, 255, 1);
    /* focus:bg-white */
}

/* Beautiful violet pills for selected multiple items */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    position: relative;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: rgb(76 29 149);
    border-radius: 0.5rem;
    padding: 0.15rem 0.5rem 0.15rem 1.6rem;
    margin-top: 0.45rem;
    margin-right: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.25rem;
}

/* Remove 'x' button inside pill */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(109 40 217);
    border: 0;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: rgb(76 29 149);
    background: transparent;
}

/* The clear ALL 'x' button far right */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-top: 0.6rem;
    margin-right: 0.25rem;
    color: rgb(100 116 139);
    font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
    color: rgb(225 29 72);
}

/* Base text styling for search field */
.select2-container--default .select2-search--inline .select2-search__field {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: rgb(51 65 85);
    font-family: inherit;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: rgb(148 163 184);
}

/* Dropdown pane styling */
.select2-container--default .select2-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.select2-container--default .select2-results__option {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    color: rgb(71 85 105);
    transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(124, 58, 237, 0.08);
    /* violet/8 */
    color: rgb(30 41 59);
}

.select2-container--default .select2-results__option--selected {
    background: rgba(241, 245, 249, 0.8);
    /* slate-100 */
    color: rgb(30 41 59);
    font-weight: 500;
}

/* Abstract Glows */
.ambient-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-2 {
    position: absolute;
    top: 20%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #1E3A8A 0%, #7C3AED 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism setup */
.glass-nav {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 1.5s infinite;
}

.animate-float-slow {
    animation: float 8s ease-in-out 0.5s infinite;
}

/* Custom Clip path for section */
.clip-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

/* Progress Stepper (Custom Design) */
.progress-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.progress-stepper::before {
    content: '';
    position: absolute;
    top: 28px;
    /* Half of circle width (56px) */
    left: 40px;
    /* offset slightly so it doesn't extend past the first/last circles */
    right: 40px;
    height: 4px;
    background-color: #e2e8f0;
    /* slate-200 */
    z-index: 1;
}

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

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f8fafc;
    /* slate-50 */
    border: 2px solid #e2e8f0;
    /* slate-200 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
    /* slate-500 */
    transition: all 0.3s ease;
    box-shadow: 0 0 0 6px white;
    /* acts as a border to "cut" the line */
}

.step-item.active .step-circle {
    border-color: #10b981;
    /* emerald-500 */
    border-width: 3px;
    color: #10b981;
    background-color: #ffffff;
}

/* If a step is completed */
.step-item.completed .step-circle {
    border-color: #10b981;
    background-color: #10b981;
    color: #ffffff;
}

.step-label {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    /* slate-600 */
}

.step-item.active .step-label {
    color: #10b981;
    font-weight: 600;
}

@media (min-width: 768px) {
    #sidebar.sidebar-collapsed {
        width: 5.5rem !important;
    }

    #sidebar.sidebar-collapsed .sidebar-text,
    #sidebar.sidebar-collapsed .sidebar-header {
        display: none !important;
    }

    #sidebar.sidebar-collapsed .p-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: center !important;
    }

    #sidebar.sidebar-collapsed a {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.profile-tab-panel {
    display: none;
}

#ptab-info:checked~.profile-tabs-grid .profile-tab-panel[data-panel="info"],
#ptab-assessment:checked~.profile-tabs-grid .profile-tab-panel[data-panel="assessment"],
#ptab-shortlist:checked~.profile-tabs-grid .profile-tab-panel[data-panel="shortlist"],
#ptab-password:checked~.profile-tabs-grid .profile-tab-panel[data-panel="password"] {
    display: block;
}

.profile-tab-btn {
    cursor: pointer;
    user-select: none;
}

#ptab-info:checked~.profile-tabs-grid label[for="ptab-info"],
#ptab-assessment:checked~.profile-tabs-grid label[for="ptab-assessment"],
#ptab-shortlist:checked~.profile-tabs-grid label[for="ptab-shortlist"],
#ptab-password:checked~.profile-tabs-grid label[for="ptab-password"] {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.45);
}

#ptab-info:checked~.profile-tabs-grid label[for="ptab-info"] .profile-tab-count,
#ptab-assessment:checked~.profile-tabs-grid label[for="ptab-assessment"] .profile-tab-count,
#ptab-shortlist:checked~.profile-tabs-grid label[for="ptab-shortlist"] .profile-tab-count,
#ptab-password:checked~.profile-tabs-grid label[for="ptab-password"] .profile-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.profile-tab-input:focus-visible~.profile-tabs-grid label[for="ptab-info"],
.profile-tab-input:focus-visible~.profile-tabs-grid label[for="ptab-assessment"],
.profile-tab-input:focus-visible~.profile-tabs-grid label[for="ptab-shortlist"],
.profile-tab-input:focus-visible~.profile-tabs-grid label[for="ptab-password"] {
    outline: none;
}

#ptab-info:focus-visible~.profile-tabs-grid label[for="ptab-info"],
#ptab-assessment:focus-visible~.profile-tabs-grid label[for="ptab-assessment"],
#ptab-shortlist:focus-visible~.profile-tabs-grid label[for="ptab-shortlist"],
#ptab-password:focus-visible~.profile-tabs-grid label[for="ptab-password"] {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Styling to render HTML tags in page detail beautifully, overriding Tailwind resets */
.page-content p {
    margin-bottom: 1.25rem;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content ul {
    list-style-type: disc !important;
    padding-left: 1.75rem !important;
    margin-bottom: 1.25rem !important;
}

.page-content ol {
    list-style-type: decimal !important;
    padding-left: 1.75rem !important;
    margin-bottom: 1.25rem !important;
}

.page-content li {
    margin-bottom: 0.5rem !important;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: #0f172a;
    /* slate-900 */
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-content h1 {
    font-size: 1.875rem;
}

.page-content h2 {
    font-size: 1.5rem;
}

.page-content h3 {
    font-size: 1.25rem;
}

.page-content h4 {
    font-size: 1.125rem;
}

.page-content strong {
    font-weight: 700;
    color: #0f172a;
}

.page-content em {
    font-style: italic;
}

.page-content u {
    text-decoration: underline;
}

.page-content a {
    color: #7c3aed;
    /* violet-600 */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: #4c1d95;
    /* violet-900 */
}

.ambient-blur {
    position: absolute;
    border-radius: 9999px;
    filter: blur(140px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Custom Frontend Index Styles */
@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-marquee-left {
    animation: marquee-left 40s linear infinite;
}

.animate-marquee-right {
    animation: marquee-right 40s linear infinite;
}

.reviews-slide-track:hover {
    animation-play-state: paused;
}

/* Hide raw select; Select2 replaces it */
#bankQuestionsPicker {
    display: none;
}

/* Select2 trigger button */
.qb-picker-wrap .select2-container {
    width: 100% !important;
}

.qb-picker-wrap .select2-selection--single {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    background: #fff !important;
    transition: border-color .15s, box-shadow .15s;
}

.qb-picker-wrap .select2-container--open .select2-selection--single {
    border-color: #a78bfa !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .15) !important;
}

.qb-picker-wrap .select2-selection__rendered {
    line-height: 42px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    padding: 0 !important;
}

.qb-picker-wrap .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.qb-picker-wrap .select2-selection__arrow {
    height: 42px !important;
    top: 0 !important;
    right: 8px !important;
}

.qb-picker-wrap .select2-selection__clear {
    margin-top: 10px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Dropdown (appended to <body> by Select2) */
.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
    overflow: hidden;
    margin-top: 3px !important;
}

.select2-search--dropdown {
    padding: 6px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 7px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    outline: none !important;
    width: 100% !important;
    color: #334155;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #a78bfa !important;
}

.select2-results {
    padding: 4px !important;
}

.select2-results__option {
    border-radius: 7px !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    color: #334155 !important;
    cursor: pointer;
}

.select2-results__option--highlighted[aria-selected] {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
}

/* Hiring & Candidate Interview Process Section - Interactive Steps */
.step-tab-btn {
    transition: all 0.3s ease-out;
}
.step-tab-btn:not(.active-step) {
    background-color: rgba(248, 250, 252, 0.6) !important;
    border-color: rgba(226, 232, 240, 0.5) !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.step-tab-btn:not(.active-step):hover {
    background-color: #ffffff !important;
    border-color: rgba(124, 58, 237, 0.2) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}
.step-tab-btn:not(.active-step) .step-number {
    color: #94a3b8 !important;
}
.step-tab-btn:not(.active-step) .step-subtitle {
    color: #64748b !important;
}
.step-tab-btn:not(.active-step):hover .step-subtitle {
    color: #475569 !important;
}
.step-tab-btn:not(.active-step) .step-caret {
    color: #94a3b8 !important;
}

.step-tab-btn.active-step {
    background-color: #7c3aed !important;
    border-color: rgba(124, 58, 237, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15) !important;
}
.step-tab-btn.active-step .step-number {
    color: #ddd6fe !important;
}
.step-tab-btn.active-step .step-subtitle {
    color: #ede9fe !important;
}
.step-tab-btn.active-step:hover .step-subtitle {
    color: #ffffff !important;
}
.step-tab-btn.active-step .step-caret {
    color: #ddd6fe !important;
}

/* AI Creator Modal Styles */
.ai-glow-border:focus-within {
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 0 12px rgba(124, 58, 237, 0.1);
}

.loading-pulse-active {
    color: #7c3aed !important;
}

.loading-pulse-active .loading-icon {
    border-color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.05) !important;
    animation: pulse-border 1.5s infinite ease-in-out;
}

.loading-pulse-active .loading-icon span {
    background-color: #7c3aed !important;
}

.loading-pulse-success {
    color: #10b981 !important;
}

.loading-pulse-success .loading-icon {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

#jdCreatorModal:target #jdCreatorModalContent {
    transform: scale(1);
}

#jdCreatorModalContent>.flex.space-x-3 {
    display: none !important;
}

#jdQuestionTypeContainer .select-icon i,
#jdDifficultyContainer .select-icon i {
    display: none;
}

#jdQuestionTypeContainer input:checked+div,
#jdDifficultyContainer input:checked+div {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
}

#jdQuestionTypeContainer input:checked+div .select-icon,
#jdDifficultyContainer input:checked+div .select-icon {
    border-color: #10b981 !important;
    background-color: #10b981 !important;
}

#jdQuestionTypeContainer input:checked+div .select-icon i,
#jdDifficultyContainer input:checked+div .select-icon i {
    display: block !important;
}

#jdQuestionTypeContainer input:checked+div .select-label,
#jdDifficultyContainer input:checked+div .select-label {
    color: #10b981 !important;
}

.swal2-container {
    z-index: 999999 !important;
}

