img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

:root {
    /* --- LUXURY COLOR PALETTE (HSL for precision) --- */
    --p-h: 262;
    /* Primary Hue (Violet) */
    --p-s: 83%;
    /* Primary Saturation */
    --p-l: 58%;
    /* Primary Lightness */

    --primary: hsl(var(--p-h), var(--p-s), var(--p-l));
    --primary-hover: hsl(var(--p-h), var(--p-s), calc(var(--p-l) - 10%));
    --primary-soft: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);

    --secondary: #64748b;
    --bg-main: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --success: #10b981;
    --error: #ef4444;

    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 16px;

    --hover-bg: rgba(99, 102, 241, 0.05);

    /* Shadows - Layered for depth */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-luxury: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --premium-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.dark-mode,
[data-theme="dark"] {
    --bg-main: #020203;
    /* Deep Obsidian */
    --sidebar-bg: #050507;
    --card-bg: #0c0c0e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);

    /* Dark Mode Glass */
    --glass-bg: rgba(10, 10, 12, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar Refinement */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    border-right: 1px solid var(--border);
    z-index: 100;
    position: relative;
}

.logo {
    margin-bottom: 40px;
    padding: 0 12px;
}

.sidebar-owl-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.premium-owl-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
}

.logo h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 4px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn i {
    width: 18px;
    height: 18px;
}

.nav-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-main);
}

.nav-btn.active {
    background-color: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.nav-btn.active i {
    color: var(--primary);
}

.nav-btn:hover:not(.active) {
    background-color: var(--hover-bg);
    color: var(--text-main);
}


/* Theme Toggle */
.theme-toggle {
    margin-top: auto;
    padding-top: 24px;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--border);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.theme-btn:hover {
    background-color: var(--border);
    filter: brightness(0.9);
}

/* Main Content Area */
.content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Top Bar - Clean & Floating Effect */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* Notification System */
.notification-section {
    position: relative;
    margin-right: 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn i {
    width: 20px;
    height: 20px;
}

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

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border: 1.5px solid var(--bg-main);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    width: 380px;
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left: 4px solid var(--success);
    box-shadow: 0 15px 45px rgba(16, 185, 129, 0.2);
}

.toast.error {
    border-left: 4px solid var(--error);
    box-shadow: 0 15px 45px rgba(239, 68, 68, 0.2);
}

.toast.warning {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 15px 45px rgba(245, 158, 11, 0.2);
}

.toast.info {
    border-left: 4px solid var(--primary);
    box-shadow: 0 15px 45px rgba(168, 85, 247, 0.2);
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.toast.info .toast-icon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
}

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

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

.toast.removing {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
}

.toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.notification-dropdown.show {
    display: flex;
}

.notification-dropdown .dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-dropdown .dropdown-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.mark-all-read:hover {
    background: rgba(99, 102, 241, 0.1);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.1);
}

.notification-item.unread .notification-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

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

.notification-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.empty-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-notifications i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: var(--hover-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.profile-section:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    padding: 2px;
    background: var(--bg-main);
    transition: all 0.3s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-section i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.profile-section:hover i {
    color: var(--primary);
    transform: rotate(180deg);
}


/* Profile Dropdown */
/* Profile Dropdown - LUXURY EDITION */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-luxury);
    display: none;
    flex-direction: column;
    z-index: 1000;
    transform-origin: top right;
    animation: dropdownEntrance 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.profile-dropdown.show {
    display: flex;
}

.dropdown-header {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.dropdown-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    padding: 2px;
    background: var(--bg-main);
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-header strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.dropdown-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--hover-bg);
}

.dropdown-item.logout {
    color: #f87171;
    margin-top: 4px;
}

.dropdown-item.logout:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* Adjust sections for top-bar */
section {
    padding: 32px 48px;
    position: relative;
    height: calc(100vh - 65px);
    overflow-y: auto;
}

#chat {
    padding: 0;
    overflow: hidden;
}


/* Background blobs for premium feel */
.content::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.content::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.active-section {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-section {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.header {
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    color: var(--text-main);
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Forms */
.form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-width: 640px;
}

.form-container.recruitment-container {
    max-width: 980px;
}

.form-container.recruitment-container .primary-btn {
    max-width: 460px;
}

.form-container.recruitment-container #job-description {
    min-height: 120px;
    resize: vertical;
}

/* Recruitment Two-Column Layout */
.recruitment-layout {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
}

.recruitment-layout .form-container.recruitment-container {
    max-width: 100%;
}

.recruitment-results-panel {
    position: sticky;
    top: 96px;
    /* below top-bar */
}

.recruitment-results-panel .screening-results {
    margin-top: 0;
    max-height: calc(100vh - 140px);
    overflow: auto;
}

.recruitment-results-panel .screening-results::-webkit-scrollbar {
    width: 6px;
}

.recruitment-results-panel .screening-results::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .recruitment-layout {
        grid-template-columns: 1fr;
    }

    .recruitment-results-panel {
        position: static;
    }

    .recruitment-results-panel .screening-results {
        max-height: none;
        overflow: visible;
        margin-top: 18px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s;
    line-height: 1.5;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.premium-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

.premium-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
    transform: translateY(-1px);
}

.premium-select option {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 12px;
}

.primary-btn {
    background: var(--purple-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.39) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #fff;
    padding: 16px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45) !important;
    transform: translateY(-1px);
}

.secondary-btn {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--bg-main);
    border-color: var(--text-muted);
}

.status-msg {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.status-msg.show {
    display: block;
}

.status-msg.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-msg.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Chat Section */
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: transparent;
}



.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    justify-content: center;
    max-width: 800px;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 12px 22px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.suggestion-chip:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 12px 22px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.suggestion-chip:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


.suggestion-chip:hover {
    background: var(--border);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-window {
    flex: 1;
    background: transparent;
    padding: 32px 48px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    scrollbar-width: none;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.chat-window::-webkit-scrollbar {
    display: none;
}




.chat-message-user {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
    padding: 18px 26px;
    border-radius: 24px 24px 4px 24px;
    max-width: 75%;
    align-self: flex-end;
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.3);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: pre-wrap;
    animation: messageSlideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


@keyframes messageSlideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.chat-message-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 24px 4px;
    padding: 24px 28px;
    max-width: 85%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
    font-size: 0.98rem;
    animation: messageSlideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

body.dark-mode .chat-message-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 24px 4px;
    padding: 24px 28px;
    max-width: 85%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
    font-size: 0.98rem;
    animation: messageSlideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}




@keyframes messageSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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


/* Markdown in AI messages */
.chat-message-ai h1,
.chat-message-ai h2 {
    margin: 16px 0 8px;
    color: var(--primary);
}

.chat-message-ai p {
    margin-bottom: 12px;
}

.chat-message-ai ul,
.chat-message-ai ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.chat-message-ai li {
    margin-bottom: 6px;
}

/* Loading Spinner */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: 100px;
    width: fit-content;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

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

@keyframes bounce {

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

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

.chat-input-area {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    align-items: flex-end;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 0 auto 20px;
    width: 90%;
    max-width: 800px;
}

body.dark-mode .chat-input-area {
    display: flex;
    gap: 14px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-end;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto 24px;
    width: 90%;
    max-width: 850px;
}

.chat-input-area:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}

.chat-input-area textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    font-family: inherit;
    max-height: 150px;
    overflow-y: auto;
}

.chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.attachment-chip {
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-chip .remove-btn {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.attachment-chip .remove-btn:hover {
    opacity: 1;
}

/* Delete Button & Container Styles */
.booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ind-creator-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-btn i {
    width: 18px;
    height: 18px;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.dark-mode .delete-btn {
    background: rgba(239, 68, 68, 0.2);
}

.dark-mode .delete-btn:hover {
    background: #ef4444;
}

/* Premium Induction UI Styles */
.inductions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.induction-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.induction-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.2);
}

.induction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #8b5cf6);
}

.ind-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ind-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.ind-type i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.ind-date-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ind-time-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
}

.ind-time-slot i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.ind-attendees-section {
    flex: 1;
}

.ind-attendees-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.ind-attendees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attendee-chip {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s;
}

.dark-mode .attendee-chip {
    background: rgba(255, 255, 255, 0.05);
}

.attendee-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.ind-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.ind-creator-info {
    display: flex;
    flex-direction: column;
}

.ind-creator-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ind-creator-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Chat Layout & Sidebar */
.chat-layout {
    display: flex;
    height: 100%;
    gap: 0;
    margin-top: 0;
    overflow: hidden;
}


.chat-sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

.dark-mode .chat-sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}


.new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--purple-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    margin: 0 8px 8px;
}

.new-chat-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
    filter: brightness(1.1);
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    padding-left: 12px;
}

.chat-history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.chat-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    margin: 0 4px;
    position: relative;
}

.chat-history-item:hover {
    background: var(--hover-bg);
    color: var(--text-main);
    transform: translateX(4px);
}

.chat-history-item.active {
    background: var(--hover-bg);
    color: var(--primary);
    font-weight: 600;
}

.chat-history-item.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

/* --- Onboarding Dispatch Styles --- */
.content-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
}

.onboarding-controls {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.toggle-group {
    display: flex;
    gap: 32px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    user-select: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
}

.toggle-label input:checked+.custom-checkbox {
    background: var(--primary);
}

.toggle-label input:checked+.custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.toggle-label input {
    display: none;
}

.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(var(--bg-rgb), 0.3);
    margin-bottom: 32px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.upload-zone i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.8;
}

.upload-zone h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.upload-zone p {
    color: var(--text-muted);
}

.staging-area {
    animation: fadeIn 0.4s ease-out;
}

.staging.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #ffffff;
}

.user-table th {
    padding: 16px 20px;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.user-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-main);
    vertical-align: middle;
}

.match-row.verified {
    background: rgba(34, 197, 94, 0.05);
}

.match-row.unknown {
    background: rgba(234, 179, 8, 0.05);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.unknown {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.email-input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-main);
    width: 100%;
    max-width: 250px;
}

.dispatch-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.chat-history-item .session-title {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.delete-session-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.chat-history-item:hover .delete-session-btn {
    opacity: 1;
}

.delete-session-btn:hover {
    color: var(--error);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-main);
    transition: background 0.8s ease;
}


.chat-main .header {
    flex: none;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}



.chat-main .header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 8px;
}



.chat-main .header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    font-weight: 400;
    line-height: 1.5;
}


.ai-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(168, 85, 247, 0.08);
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
}


.ai-branding i {
    width: 16px;
    height: 16px;
}

/* Scrollbar for chat history */
.chat-history-list::-webkit-scrollbar {
    width: 4px;
}

.chat-history-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Custom Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

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

.modal-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn {
    background: #ef4444;
    color: white;
    border: none;
}

.danger-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* Handbook Manager Styles */
.current-handbook-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.handbook-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.premium-owl-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.2));
    margin-bottom: 20px;
}

.handbook-info i {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handbook-info h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.handbook-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.upload-content i {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-content h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.upload-content p {
    color: var(--text-muted);
}

/* Recruitment Screening Styles */
.screening-results {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    animation: fadeIn 0.4s ease-out;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.results-header h2 {
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-header i {
    color: #fbbf24;
    /* Gold for trophy */
}

/* Markdown Content Styling for Results */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.markdown-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-muted);
}

.markdown-content li {
    margin-bottom: 6px;
}

.markdown-content strong {
    color: var(--primary);
    font-weight: 600;
}

.markdown-content pre,
.markdown-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.markdown-content pre {
    background: rgba(2, 6, 23, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
    overflow-x: auto;
}

body.dark-mode .markdown-content pre {
    background: rgba(255, 255, 255, 0.06);
}

.markdown-content code {
    background: rgba(2, 6, 23, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2px 8px;
    word-break: break-word;
}

body.dark-mode .markdown-content code {
    background: rgba(255, 255, 255, 0.06);
}

/* Recruitment Results (Structured) */
.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.results-toolbar .hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.results-btn {
    width: auto;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass-bg);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.results-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.candidate-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.candidate-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.candidate-left {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    flex: 0 0 auto;
}

.candidate-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.candidate-name-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.candidate-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(520px, 55vw);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.pill.matched {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--success);
}

.pill.mismatch {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--error);
}

.pill.neutral {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.25);
    color: var(--text-muted);
}

.candidate-right {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.score-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.score-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.score-bar {
    width: 160px;
    height: 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.2);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.score-bar>div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #a855f7);
}

.candidate-body {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.candidate-justification {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
}

.candidate-mismatch-reason {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    section {
        padding: 24px;
    }

    .form-container {
        padding: 24px;
    }

    .candidate-top {
        flex-direction: column;
        align-items: stretch;
    }

    .candidate-right {
        align-items: flex-start;
    }

    .score-block {
        align-items: flex-start;
    }

    .score-bar {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .recruitment-layout {
        grid-template-columns: 1fr;
    }

    .recruitment-results-panel {
        position: static;
    }

    .recruitment-results-panel .screening-results {
        max-height: none;
        overflow: visible;
        margin-top: 18px;
    }

    .chat-layout {
        flex-direction: column;
        height: auto;
    }

    .chat-sidebar {
        width: 320px;
        background: var(--sidebar-bg);
        border-right: 1px solid var(--border);
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        gap: 32px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        z-index: 10;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Dashboard Overview Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.recent-activity {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.recent-activity h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-type {
    font-weight: 600;
    font-size: 0.9375rem;
}

.activity-recipient {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.activity-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.activity-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.activity-status.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-status.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.no-activity {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* Login Page Styles - Enterprise Design */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-card {
    background: #0e0e0e;
    padding: 64px 48px;
    border-radius: 20px;
    border: 1px solid #1a1a1a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 520px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.login-header .logo img {
    width: 180px;
    /* Increased size */
    height: auto;
}

.login-header .logo h2 {
    font-size: 2.25rem;
    /* Increased size */
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.login-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.login-card .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.login-card .form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 12px;
    display: block;
}

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

.forgot-link {
    font-size: 0.9rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    transition: all 0.2s;
}

.login-card .input-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
}


.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    background: var(--bg-main);
}

.input-wrapper i:not(.toggle-password i) {
    position: absolute;
    left: 20px;
    color: #1e293b;
    width: 20px;
    height: 20px;
    z-index: 10;
}

.login-card .input-wrapper i:not(.toggle-password i) {
    color: #94a3b8;
    margin-left: 16px;
    margin-right: 0;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent !important;
}


.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 56px;
    background: transparent;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
}

.login-card .input-wrapper input {
    padding: 16px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    outline: none;
    height: 56px;
}


.login-card .input-wrapper input::placeholder {
    color: #94a3b8;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.toggle-password:hover {
    color: #64748b;
}

.form-options {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.login-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.login-btn i {
    width: 20px;
    height: 20px;
}

.social-auth {
    margin-top: 32px;
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.divider span {
    position: relative;
    background: var(--card-bg);
    padding: 0 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    z-index: 2;
}

/* If in glassmorphism card, the divider span needs to match card bg or be transparent with backdrop blur */
.login-card .divider span {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--bg-main);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.social-btn img {
    width: 18px;
    height: 18px;
}

/* Dark Mode Overrides for Login */
.dark-mode .login-overlay {
    background: #000000;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(192, 132, 252, 0.1) 0px, transparent 50%);
}

.dark-mode .login-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .login-header h1 {
    color: #f1f5f9;
}

.dark-mode .login-card .input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .login-card .input-wrapper:focus-within {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}


.dark-mode .login-card .input-wrapper input {
    background: transparent;
    color: #f1f5f9;
}

/* Fix browser autofill turning inputs white */
.dark-mode .login-card .input-wrapper input:-webkit-autofill,
.dark-mode .login-card .input-wrapper input:-webkit-autofill:hover,
.dark-mode .login-card .input-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    caret-color: #f1f5f9 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.dark-mode .social-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.dark-mode .social-btn:hover {
    background: #334155;
}

.dark-mode .divider::before {
    background: #334155;
}

.dark-mode .divider span {
    color: #64748b;
}


/* Bookings Grid Redesign */
#bookings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.booking-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #c084fc);
}

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

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.booking-cabin {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-cabin i {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.booking-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
}

.booking-time {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.booking-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.booking-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.booking-user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Premium Announcement Cards */
#announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid #f59e0b;
    /* Amber accent */
}

.announcement-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), transparent);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.announcement-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    background: var(--bg-main);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.announcement-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 52px;
    /* Align with title text */
}

.announcement-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.announcement-card:hover .announcement-actions {
    opacity: 1;
}

.delete-announcement-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-announcement-btn:hover {
    background: var(--error);
    color: white;
}

/* Premium Announcement Cards - Redesigned for Readability */
#announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 36px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 5px solid #f59e0b;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.03), transparent);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.announcement-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.announcement-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon i {
    width: 28px;
    height: 28px;
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.announcement-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-main);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.announcement-content {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    padding-left: 58px;
    font-weight: 400;
}

.announcement-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transition: opacity 0.2s;
}

.announcement-card:hover .announcement-actions {
    opacity: 1;
}

.delete-announcement-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-announcement-btn:hover {
    background: var(--error);
    color: white;
    transform: scale(1.05);
}

.delete-announcement-btn i {
    width: 18px;
    height: 18px;
}

/* Compact Dashboard Layout - Enterprise Grade */

/* Make the main content area more compact */
main {
    padding: 16px 24px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.header {
    margin-bottom: 16px;
}

.header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.header p {
    font-size: 0.9rem;
}

/* Compact Stats Cards */
.stats-grid {
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 16px 20px;
}

.stat-card h3 {
    font-size: 0.8rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
}

/* Compact Section Titles */
.recent-activity h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Compact Announcement Cards */
.announcement-card {
    padding: 20px 24px;
    gap: 12px;
    border-radius: 14px;
}

.announcement-icon {
    padding: 10px;
}

.announcement-icon i {
    width: 20px;
    height: 20px;
}

.announcement-title {
    font-size: 1.1rem;
}

.announcement-content {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 46px;
}

.announcement-date {
    font-size: 0.75rem;
    padding: 6px 12px;
}

#announcements-list {
    gap: 14px;
}

/* Compact Booking Cards */
.booking-card {
    padding: 16px 20px;
}

#bookings-list {
    gap: 12px;
}

/* Reduce spacing between sections */
.recent-activity {
    margin-bottom: 20px;
}

/* Make the grid more compact */
@media (min-width: 1024px) {
    .dashboard-grid {
        gap: 20px;
    }
}

/* Compact Sidebar - Show All HR Options */
aside.sidebar {
    width: 200px;
    padding: 16px 12px;
    overflow-y: auto;
}

.logo-section {
    padding: 12px;
    margin-bottom: 16px;
}

.logo-section h2 {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.logo-section p {
    font-size: 0.7rem;
}

.nav-btn {
    padding: 10px 14px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.nav-btn i {
    width: 18px;
    height: 18px;
}

.profile-section {
    padding: 12px;
    margin-top: 16px;
}

.profile-info h3 {
    font-size: 0.9rem;
}

.profile-info p {
    font-size: 0.75rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    background: #111;
    transform: translateZ(0);
}

/* Make sidebar scrollable */
aside.sidebar {
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

aside.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

aside.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

aside.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Make logo wider to fit sidebar */
.logo-section img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.logo-section {
    padding: 12px 8px;
}

/* Wider Sidebar - More Comfortable Navigation */
aside.sidebar {
    width: 240px;
    padding: 20px 16px;
}

.logo-section {
    padding: 16px 12px;
    margin-bottom: 20px;
}

.logo-section h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.logo-section p {
    font-size: 0.75rem;
}

.nav-btn {
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.nav-btn i {
    width: 20px;
    height: 20px;
}

.profile-section {
    padding: 14px;
    margin-top: 20px;
}

.profile-info h3 {
    font-size: 0.95rem;
}

.profile-info p {
    font-size: 0.8rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    background: #111;
    transform: translateZ(0);
}

/* Bigger Header Section */
.header {
    margin-bottom: 24px;
    padding: 24px 0;
}

.header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Make delete button always visible */
.announcement-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 1;
    /* Always visible now */
    transition: opacity 0.2s;
}

.secondary-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333 !important;
    padding: 16px 24px;
    border-radius: 8px !important;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: #222222;
    border-color: #444444 !important;
    transform: translateY(-1px);
}

.delete-announcement-btn {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-announcement-btn:hover {
    background: var(--error);
    color: white;
    transform: scale(1.05);
    border-color: var(--error);
}

.delete-announcement-btn i {
    width: 18px;
    height: 18px;
}

/* Balance Dashboard Layout */

/* Make stat cards bigger and more prominent */
.stat-card {
    padding: 24px 28px;
}

.stat-card h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Make announcement section more compact */
.announcement-card {
    padding: 16px 20px;
    gap: 10px;
    border-radius: 12px;
}

.announcement-icon {
    padding: 8px;
}

.announcement-icon i {
    width: 18px;
    height: 18px;
}

.announcement-title {
    font-size: 1rem;
    font-weight: 600;
}

.announcement-content {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 42px;
}

.announcement-date {
    font-size: 0.7rem;
    padding: 5px 10px;
}

#announcements-list {
    gap: 12px;
}

/* Fix delete button overlap - move it to the right side */
.announcement-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 1;
    z-index: 10;
}

.delete-announcement-btn {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-announcement-btn i {
    width: 16px;
    height: 16px;
}

/* Make sure date doesn't overlap with delete button */
.announcement-header {
    padding-right: 40px;
}

/* Compact section titles */
.recent-activity h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Compact Chat Layout - Show Input Box Without Scrolling */

#chat.active-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-layout {
    display: flex;
    gap: 0;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-main .header {
    margin-bottom: 12px;
    flex-shrink: 0;
}

.chat-main .header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.chat-main .header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.suggestions {
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.suggestion-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
}

#chatWindow {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 20px;
}

.chat-input-area {
    display: flex;
    gap: 14px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-end;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto 24px;
    width: 90%;
    max-width: 850px;
}

/* Compact chat sidebar */
.chat-sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

.new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--purple-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    margin: 0 8px 8px;
}

.sidebar-heading {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.chat-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    margin: 0 4px;
    position: relative;
}

/* Make typing indicator smaller */
#typingIndicator {
    padding: 12px 16px;
}

/* AI Chatbot Branding */
.ai-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.ai-branding i {
    width: 24px;
    height: 24px;
    color: #6366f1;
}

.ai-branding span {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Adjust header spacing */
.chat-main .header h1 {
    margin-top: 8px;
}

/* Settings Page Styles */
.settings-container {
    max-width: 900px;
}

.settings-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.settings-section-header i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.settings-section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.settings-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Chat Preview */
.chat-preview {
    margin-bottom: 28px;
}

.preview-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-preview-window {
    background: linear-gradient(135deg, #6ee7b7 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 24px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
}

.preview-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.preview-message-user {
    flex-direction: row-reverse;
}

.preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    flex-shrink: 0;
}

.preview-bubble {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
    font-size: 0.9rem;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-message-user .preview-bubble {
    background: rgba(255, 255, 255, 0.85);
}

/* Background Selector */
.background-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bg-option {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.bg-option:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.bg-option.active {
    border-color: var(--primary);
}

.bg-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
}

.check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    padding: 4px;
    display: none;
}

.bg-option.active .check-icon {
    display: block;
}

/* Gradient Backgrounds */
.bg-gradient-1 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.bg-gradient-2 {
    background: radial-gradient(circle at top left, #0f172a, #000000);
}

.bg-gradient-3 {
    background: radial-gradient(circle at top left, #1e1b4b, #000000);
}

.bg-gradient-4 {
    background: radial-gradient(circle at top left, #2e1065, #000000);
}

.bg-gradient-5 {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.bg-gradient-6 {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

.bg-gradient-7 {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.bg-gradient-8 {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

/* Gradients are applied via specific bg-gradient-X classes */
.chat-window.bg-none {
    background: transparent;
}

.chat-main.bg-gradient-1 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}


.chat-main.bg-gradient-2 {
    background: radial-gradient(circle at 10% 20%, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.9) 45%, #000000 100%) !important;
}

.chat-main.bg-gradient-3 {
    background: radial-gradient(circle at 90% 10%, rgba(46, 16, 101, 0.8) 0%, rgba(8, 7, 26, 0.9) 50%, #000000 100%) !important;
}

.chat-main.bg-gradient-4 {
    background: radial-gradient(circle at 50% 0%, rgba(76, 29, 149, 0.6) 0%, rgba(30, 27, 75, 0.9) 60%, #000000 100%) !important;
}

.chat-main.bg-gradient-5 {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.chat-main.bg-gradient-6 {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

.chat-main.bg-gradient-7 {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.chat-main.bg-gradient-8 {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

/* Feedback Form Styles */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-form .form-group {
    margin-bottom: 0;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.feedback-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.feedback-form .primary-btn {
    width: fit-content;
    padding: 12px 24px;
}

/* Premium Feedback Form Styles */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.feedback-form .form-group {
    margin-bottom: 0;
    position: relative;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode .feedback-form input,
.dark-mode .feedback-form select,
.dark-mode .feedback-form textarea {
    background: rgba(0, 0, 0, 0.2);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.feedback-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

.feedback-form .primary-btn {
    width: fit-content;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-form .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.feedback-form .primary-btn:active {
    transform: translateY(0);
}

/* Success/Error Message Styling */
#feedback-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

#feedback-status.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

#feedback-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

#feedback-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

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

/* Additional Feedback Styles */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.report-abuse {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.report-abuse:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.report-abuse i {
    width: 14px;
    height: 14px;
}

.feedback-submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4) !important;
}

/* Fix for Select Dropdown in Dark Mode */
.dark-mode .feedback-form select option {
    background-color: #1e293b;
    /* Dark background for options */
    color: #f8fafc;
    /* Light text for options */
}

/* Ensure the select itself has correct colors in dark mode */
.dark-mode .feedback-form select {
    background-color: rgba(0, 0, 0, 0.3);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .feedback-form select:focus {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.4);
}

/* Fix for placeholder text in dark mode */
.dark-mode .feedback-form input::placeholder,
.dark-mode .feedback-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Profile Settings Styles */
.profile-settings-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.profile-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-preview-large {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.profile-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.profile-preview-large:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    color: white;
    width: 32px;
    height: 32px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-with-btn {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.input-with-btn input {
    flex: 1;
}

/* Security Form Styles */
.security-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.security-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Fixes for Profile Settings UI */
.profile-settings-form .form-group label {
    font-size: 1.1rem;
    /* Larger label */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.input-with-btn input {
    flex: 1;
    width: auto !important;
    /* Allow flex to take over */
    min-width: 0;
    /* Prevent flex items from overflowing */
}

.input-with-btn .primary-btn {
    width: auto !important;
    /* Don't let button take 100% width */
    padding: 12px 24px;
}

.profile-settings-form .form-group {
    width: 100%;
    max-width: 500px;
}

/* Forgot Password Note Styles */
.forgot-password-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--primary);
}

.forgot-password-note i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Chat Preferences Styles */
.chat-preferences {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dark-mode .preference-item {
    background: rgba(0, 0, 0, 0.2);
}

.preference-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preference-title {
    font-weight: 600;
    color: var(--text-main);
}

.preference-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.danger-zone {
    border-color: rgba(239, 68, 68, 0.2);
}

.danger-btn {
    color: var(--error) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.05) !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
}

.danger-btn:hover {
    background: var(--error) !important;
    color: white !important;
}

/* Switch Toggle Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* OWL AI Branding & Sidebar Updates */
.owl-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.owl-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.owl-icon i {
    width: 24px;
    height: 24px;
}

.owl-text h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.owl-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
    opacity: 0.5;
}

/* Our Story Section Styles */
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.story-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.dark-mode .story-card {
    background: rgba(15, 23, 42, 0.6);
}

.story-card.main-story {
    grid-column: span 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--primary);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.story-card p {
    line-height: 1.6;
    color: var(--text-muted);
}

.story-content-with-img {
    display: flex;
    gap: 24px;
    align-items: center;
}

.story-text {
    flex: 1;
}

.founders-photo {
    flex: 1;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.founders-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.founders-photo:hover img {
    transform: scale(1.05);
}

.culture-banner {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.culture-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.culture-banner:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .story-content-with-img {
        flex-direction: column;
    }

    .founders-photo {
        max-width: 100%;
    }
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.website-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.location-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.location-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-4px);
}

.location-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.location-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.gallery-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 1.2s ease;
    transform: scale(1.1);
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.story-card.gallery {
    grid-column: span 2;
}

.story-card.locations {
    grid-column: span 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    background: rgba(99, 102, 241, 0.05);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.dark-mode .stat-item {
    background: rgba(99, 102, 241, 0.1);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 24px;
    bottom: -16px;
    width: 2px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.year {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    height: fit-content;
    min-width: 60px;
    text-align: center;
}

.event {
    font-size: 0.95rem;
    color: var(--text-main);
    padding-top: 4px;
}

.pillars-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pillar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary);
}

.pillar p {
    font-size: 0.85rem;
}

/* Meet the Leaders Styles */
.leaders-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 24px;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.leader-card {
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
}

.leader-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 16px;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.leader-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-main);
}

.leader-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.leader-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Dark mode adjustments */
.login-tagline {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-align: center;
}

/* AI Dashboard Styles */
.ai-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.ai-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.model-status-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header-row h3,
.ai-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.active-model-display h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    line-height: 1.2;
}

.provider-badge {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.model-features {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pricing-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.divider-vertical {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.cost-estimate {
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 8px;
    color: var(--primary);
}

.ai-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-box .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.ai-main-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.users-table-container {
    overflow-x: auto;
}

.ai-table {
    width: 100%;
    border-collapse: collapse;
}

.ai-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.ai-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-main);
}

.ai-table tr:last-child td {
    border-bottom: none;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.model-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-option {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.model-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.model-option.active-option {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.model-option-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.model-name {
    font-weight: 600;
    color: var(--text-main);
}

.active-icon {
    color: var(--primary);
    width: 18px;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
}

.model-pricing-mini {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.budget-display {
    text-align: center;
}

.budget-main {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.current-spend {
    color: var(--text-main);
}

.total-budget {
    color: var(--text-muted);
    font-size: 1rem;
}

.progress-bar-container {
    background: rgba(0, 0, 0, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
}

.progress-bar-fill.warning {
    background: #f59e0b;
}

.progress-bar-fill.danger {
    background: var(--error);
}

.budget-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Enhanced Analytics & Currency Styles */
.stat-box.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-width: 2px !important;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.stat-value-pair {
    margin-top: 4px;
}

.budget-inr {
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-block;
}

.chart-legend {
    display: flex;
    gap: 15px;
}

canvas {
    max-width: 100% !important;
}

@media (max-width: 1200px) {

    .ai-overview-grid,
    .ai-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    .ai-overview-grid,
    .ai-stats-row,
    .ai-main-content-grid {
        grid-template-columns: 1fr !important;
    }
}

/* User Management Styles */
.profile-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    gap: 12px;
}

.profile-preview-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    transform: translateZ(0);
}

.profile-preview-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #818cf8;
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.profile-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    /* Darker, more solid overlay for better contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    gap: 8px;
}

.profile-preview-wrapper:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    width: 32px;
    height: 32px;
}

.upload-overlay span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upload-hint {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    transition: all 0.3s;
}

.profile-preview-wrapper:hover+.upload-hint {
    transform: translateY(2px);
    background: rgba(99, 102, 241, 0.2);
}

.user-management-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

/* Generic Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--card-bg);
    /* Almost solid for maximum clarity */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 32px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.modal-footer .primary-btn,
.modal-footer .secondary-btn {
    width: auto;
    padding: 12px 24px;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.tab-filters {
    display: flex;
    background: var(--bg-main);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.user-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.user-info-cell {
    filter: none !important;
    backdrop-filter: none !important;
    display: flex;
    align-items: center;
    gap: 20px;
}



.user-details {
    display: flex;
    flex-direction: column;
}

.user-name-cell {
    font-weight: 600;
    color: var(--text-main);
}

.user-email-cell {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.role-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.hr {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.role-badge.employee {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.active {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.status-indicator.inactive {
    background: var(--secondary);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn i {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.icon-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.icon-btn.edit-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.15) rotate(5deg);
}

.icon-btn.delete-btn:hover {
    color: var(--error);
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.empty-table {
    text-align: center;
    padding: 60px !important;
    color: var(--text-muted);
    font-style: italic;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:hover:not(.active):not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Enhancements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Regularized Email Layout */
.regularized-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .regularized-layout {
        grid-template-columns: 1fr;
    }
}

.section-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modern-textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.modern-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
}

.mini-logs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-log-item {
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
}

.log-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.log-month {
    font-weight: 700;
    font-size: 0.9rem;
}

.log-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

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

.log-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.danger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: var(--error);
    color: #fff;
}

.status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.scheduler-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.scheduler-warning i {
    flex-shrink: 0;
}

/* Modern Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.history-icon {
    opacity: 0.5;
    flex-shrink: 0;
}

.chat-history-item:hover .history-icon,
.chat-history-item.active .history-icon {
    opacity: 1;
    color: var(--primary);
}

.user-info-cell {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 8px 0 !important;
}

.user-avatar-sm {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    /* Circular for a cleaner enterprise look */
    object-fit: cover !important;
    display: block !important;
    border: 2px solid var(--border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #000;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.user-avatar-sm:hover {
    transform: scale(1.1) rotate(2deg);
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
    z-index: 10;
}

.user-details {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
}

.user-name-cell {
    font-weight: 700 !important;
    color: var(--text-main) !important;
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
}

.user-email-cell {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    opacity: 0.8 !important;
}

/* UI Feedback Animations */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}
/* --- INDUCTION DISPATCH STYLES --- */
.induction-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    margin-top: 24px;
}

.user-selection-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
}

.induction-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.induction-user-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
}

.induction-user-item.selected {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.induction-user-item .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.induction-user-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.induction-user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.slot-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slot-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.remove-slot-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.remove-slot-btn:hover {
    color: var(--error);
}

.slot-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-main);
}

.slot-attendees {
    min-height: 100px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attendee-pill {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attendee-pill button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    padding: 0;
}

.dispatch-actions {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--primary-soft);
}

.dispatch-summary {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

