/* Premium Design System - 'Silicon Valley' Aesthetic (Light Mode) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==============================================
   CORE VARIABLES & THEME
   ============================================== */

/* Global Focus State (Accessibility) */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.2);
}

/* Global Disabled State */
:disabled,
.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;

    /* Very light cool-blue base */
    /* True premium tech background:
       1. Soft indigo mesh gradient on top left
       2. Sky blue mesh gradient on bottom right
       3. Hint of warm fuchsia on middle right
       4. Distinct but light tracking dot grid
    */
    background-color: #f6f9ff;
    color: #0f172a;
    /* Slate 900 for high contrast typography */
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==============================================
   LAYOUT & GRID SYSTEM
   ============================================== */
.app-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    /* Main content + Filter Panel */
    gap: 32px;
    /* Generous gap for clean SaaS layout */
    padding: 32px;
    /* Breathing room from viewport edges */
    padding-top: 96px;
    /* 64px Nav + 32px padding to clear fixed header */
    min-height: 100vh;
    max-width: 1280px;
    /* Constrain max width for readability */
    margin: 0 auto;
    /* Center the container */
    align-items: start;
    align-content: start;
}

/* 2-Column Fallback */
.app-container:not(:has(.filter-panel)) {
    grid-template-columns: 1fr;
}

/* Explicit No Sidebar Mode */
.app-container.no-sidebar {
    grid-template-columns: 1fr;
}

.app-container.no-sidebar .filter-panel {
    display: none;
}

/* Main Content Area */
.app-content {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    z-index: 10;
    padding-bottom: 2rem;
    /* Add some space at the bottom */
}

/* Right Sidebar Area */
.filter-panel {
    grid-column: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    /* Sticky filter panel */
    top: 96px;
    /* Below navbar (64px) + margin (32px) */
    max-height: calc(100vh - 128px);
    overflow-y: auto;
}

/* Form Validation Styles */
.form-input.error,
.input-with-icon.error input,
.input-with-icon.error select {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-with-icon.error i {
    color: #ef4444;
}

.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* Kanban Fixes */
.kanban-board {
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.k-card {
    touch-action: pan-y;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed rgba(0, 0, 0, 0.06);
    border-radius: 24px;
}

/* ==============================================
   PROFILE VIEW STYLES
   ============================================== */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
    padding-bottom: 2rem;
}

.profile-main-col,
.profile-side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header {
    border-radius: 24px;
    background: white;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    /* Space for avatar overlap */
    overflow: visible;
    /* Allow avatar to hang out */
}

/* We need a wrapper for clipping the cover but allowing avatar */
.profile-cover-wrapper {
    height: 200px;
    width: 100%;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
}

.cover-image {
    width: 100%;
    height: 200px;
    /* Fixed height for cover */
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    /* Match header radius */
}

.profile-avatar-container {
    position: absolute;
    bottom: -60px;
    left: 40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.profile-avatar-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

.profile-avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.profile-info-card,
.profile-widget {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.65);
    /* Refined 3-layer shadow: tight contact, medium ambient, wide depth */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 16px -4px rgba(0, 0, 0, 0.06),
        0 16px 36px -8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.profile-widget {
    padding: 1.5rem;
    /* Smaller padding for side widgets */
}

.profile-name-block {
    margin-top: 60px;
    /* Space for avatar */
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.timeline-container {
    position: relative;
    padding-left: 1rem;
    margin-top: 1rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0085FF;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Skeleton Loader Styles */
.skeleton-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.skeleton-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f8fafc;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    background: #f8fafc;
    border-radius: 6px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.3;
    }
}

/* Password Toggle Style */
.password-toggle {
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    pointer-events: auto !important;
}

.password-toggle:hover {
    color: #0085FF;
}

/* ==============================================
   NAVIGATION (LEFT SIDEBAR)
   ============================================== */
.mobile-menu-toggle,
.mobile-header {
    display: none;
}

.app-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    border-radius: 0;
    height: 64px;
    max-height: none;
    /* Layered Glass effect: Pure white base + translucent white on top for depth + blur */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    /* Refined Slate-200 border */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    overflow: visible;
    backdrop-filter: blur(20px) saturate(180%);
    /* Rich glass */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* The "Stripe" Shadow: Multiple ultra-soft ambient layers + 1 sharp contact layer */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 4px 12px -2px rgba(0, 0, 0, 0.03),
        0 12px 32px -4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optional: Deeper shadow when scrolled */
.app-nav.scrolled {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 8px 16px -4px rgba(0, 0, 0, 0.05),
        0 24px 48px -8px rgba(0, 0, 0, 0.06);
}

.app-nav::-webkit-scrollbar {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    /* Assertive but balanced */
    font-weight: 800;
    color: #0f172a;
    /* Slate 900 */
    text-decoration: none;
    margin-bottom: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.brand:hover {
    color: #0085FF;
    /* Illuminate on hover */
    text-shadow: 0 4px 12px rgba(0, 133, 255, 0.15);
    /* Soft brand aura */
}

.brand i {
    font-size: 1.5rem;
    color: inherit;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    /* Physical icon depth */
}

.nav-list {
    list-style: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    /* Close grouping */
    box-shadow: none;
    position: absolute;
    left: 45%;
    /* slightly offset center */
    transform: translateX(-50%);
    height: 100%;
    /* Anchor to full height for indicator lines */
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    color: #64748b;
    /* Slate 500 */
    text-decoration: none;
    border-radius: 8px;
    /* Soft rounding */
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.nav-link i {
    font-size: 1rem;
    color: #94a3b8;
    /* Dimmer icon */
    transition: color 0.2s ease;
}

/* Luxurious Hover State */
.nav-link:hover {
    color: #0f172a;
    /* Slate 900 text */
    background: rgba(241, 245, 249, 0.8);
    /* Slate 100 soft fill */
    /* Exquisite sunken/pressed shadow */
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.5), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-link:hover i {
    color: #475569;
    /* Darker icon on hover */
}

/* The Ultimate Active State - Glowing Bar & Text */
.nav-link.active {
    background: transparent;
    color: #0085FF;
    /* Brand Blue */
    font-weight: 700;
}

.nav-link.active i {
    color: #0085FF;
    filter: drop-shadow(0 2px 6px rgba(0, 133, 255, 0.3));
    /* Icon glows */
}

/* Thick Glowing Active Indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    /* Anchor to bottom of nav (64px / 2 = 32px center to bottom) */
    left: 10%;
    right: 10%;
    height: 3px;
    background: #0085FF;
    border-radius: 3px 3px 0 0;
    /* Soft glowing radiance below tab */
    box-shadow:
        0 -2px 10px rgba(0, 133, 255, 0.4),
        0 -4px 20px rgba(0, 133, 255, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 14px 4px 4px;
    /* Asymmetric pill restored */
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Slate 200 border */
    border-radius: 100px;
    margin-top: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Tactile micro-shadow */
    box-shadow:
        0 2px 5px -1px rgba(0, 0, 0, 0.04),
        0 1px 3px -1px rgba(0, 0, 0, 0.03);
}

.user-profile:hover {
    border-color: #cbd5e1;
    /* Slate 300 */
    /* Physically lifts with deeper shadow */
    box-shadow:
        0 6px 16px -4px rgba(0, 0, 0, 0.08),
        0 4px 8px -4px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.user-profile:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Pressed state */
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f8fafc;
    /* Slate 50 */
    object-fit: cover;
    /* The "Premium Ring" effect */
    box-shadow:
        0 0 0 2px #ffffff,
        /* Inner white gap */
        0 0 0 3px rgba(203, 213, 225, 0.5);
    /* Outer slate ring */
}

.user-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    /* Slate 900 */
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.user-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    /* Slate 500 */
    text-transform: uppercase;
    /* Sharp metadata tag */
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ==============================================
   DASHBOARD COMPONENTS
   ============================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.header-subtitle {
    color: #64748b;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Search */
.search-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-input {
    width: 100%;
    background: #ffffff;
    /* Crisp white */
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Slate 200 */
    padding: 12px 20px 12px 48px;
    border-radius: 99px;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Soft inset shadow for depth, plus tiny ambient shadow */
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.02),
        0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
    border-color: #0085FF;
    background: #ffffff;
    /* The premium focus ring: Brand blue spread + soft glow */
    box-shadow:
        0 0 0 3px rgba(0, 133, 255, 0.15),
        0 2px 12px rgba(0, 133, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Horizontal Job Filter */
.job-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.filter-pill {
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 99px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    /* Whisper shadow */
}

.filter-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.filter-pill.active {
    background: linear-gradient(135deg, #0085FF 0%, #006ce6 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow:
        0 4px 12px -2px rgba(0, 133, 255, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Job Grid */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.job-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.65);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    /* Refined 3-layer resting shadow */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px -3px rgba(0, 0, 0, 0.05),
        0 12px 24px -8px rgba(0, 0, 0, 0.03);
}

/* Subtle brand accent bar at bottom on hover */
.job-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, #0085FF, #6366f1);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity 0.35s, left 0.35s, right 0.35s;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 133, 255, 0.15);
    box-shadow:
        0 4px 8px -2px rgba(0, 0, 0, 0.06),
        0 16px 36px -8px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 133, 255, 0.06);
}

.job-card:hover::after {
    opacity: 1;
    left: 10%;
    right: 10%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: contain;
    background: white;
    /* Logo needs white bg */
    padding: 4px;
}

.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.company-name {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.pill-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.pill {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pill-type {
    background: rgba(0, 133, 255, 0.1);
    color: #818cf8;
    border: 1px solid rgba(0, 133, 255, 0.2);
}

.pill-salary {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==============================================
   FORM ELEMENTS
   ============================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.form-input {
    width: 100%;
    background: #ffffff;
    /* Premium white */
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Slate 200 */
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Inset depth + soft exterior */
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.02);
}

.input-with-icon .form-input {
    padding-left: 2.75rem;
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0085FF;
    /* Soft glowing focus ring */
    box-shadow:
        0 0 0 3px rgba(0, 133, 255, 0.15),
        0 2px 8px rgba(0, 133, 255, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:disabled {
    background: rgba(255, 255, 255, 0.95);
    cursor: not-allowed;
}

/* Buttons */
.btn-primary,
.btn-apply {
    background: linear-gradient(135deg, #0085FF 0%, #006ce6 100%);
    /* Bright brand blue */
    color: white;
    border: 1px solid transparent;
    padding: 12px 24px;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    /* Rich, glowing drop shadow */
    box-shadow:
        0 4px 14px 0 rgba(0, 133, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn-apply:hover {
    transform: translateY(-2px);
    /* Intensified glow on hover */
    box-shadow:
        0 6px 20px rgba(0, 133, 255, 0.4),
        0 2px 4px rgba(0, 133, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    filter: brightness(1.05);
    /* Slight brighten */
}

.btn-primary:active,
.btn-apply:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 133, 255, 0.3);
}

/* Loading State for Buttons */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-icon,
.bookmark-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0085FF;
    transform: scale(1.05);
    border-color: #0085FF;
}

/* ==============================================
   KANBAN BOARD STYLES
   ============================================== */
.kanban-board {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 40px;
    align-items: stretch;
}

.kanban-column {
    width: 100%;
    background: #f8fafc;
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 4px;
}

.column-title {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.count-badge {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: none;
    border-radius: 99px;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #0f172a;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.kanban-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.k-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: grab;
    transition: all 0.2s ease;
    min-width: 0;
}

.k-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 133, 255, 0.3);
    background: rgba(30, 41, 59, 0.4);
}

.k-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.k-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.k-role {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    word-break: break-word;
}

.k-company {
    font-size: 0.85rem;
    color: #64748b;
    word-break: break-word;
}

.k-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    color: #94a3b8;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Column Accents - Neon */
.col-applied .column-title i {
    color: #818cf8;
    text-shadow: 0 0 10px rgba(0, 133, 255, 0.5);
}

.col-screen .column-title i {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.col-interview .column-title i {
    color: #f472b6;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.5);
}

.col-offer .column-title i {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.col-reject .column-title i {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* ==============================================
   APPLICATIONS LIST STYLES
   ============================================== */
.app-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.app-item:hover {
    border-color: rgba(0, 133, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 133, 255, 0.1);
    background: rgba(30, 41, 59, 0.3);
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: white;
    padding: 8px;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.app-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.app-company {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.app-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.app-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status Badges - Light Mode */
.status-applied {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-screening {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-interview {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-hired {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-view {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #0085FF;
    color: white;
    border-color: #0085FF;
}

/* ==============================================
   MISSING DASHBOARD & WIDGET STYLES
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Quick Action Cards */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 133, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 133, 255, 0.15);
    border-color: rgba(0, 133, 255, 0.3);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 133, 255, 0.1);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.quick-action-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.quick-action-info p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Activity Feed */
.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #0f172a;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* AI Match Badge */
.match-badge-container {
    margin-left: auto;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
    transition: all 0.3s ease;
}

.match-badge.match-high {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.match-badge.match-medium {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.match-badge.match-low {
    background: rgba(0, 0, 0, 0.03);
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.match-reasons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(0, 133, 255, 0.1);
    border-left: 3px solid #0085FF;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
}

.match-reasons i {
    color: #0085FF;
    font-size: 0.9rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-small {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    /* Layered modern shadow: contact + ambient + depth */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px -2px rgba(0, 0, 0, 0.05),
        0 0 0 0 rgba(0, 133, 255, 0);
}

.stat-card-small:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 133, 255, 0.2);
    box-shadow:
        0 4px 8px -2px rgba(0, 0, 0, 0.06),
        0 12px 28px -6px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 133, 255, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-value-small {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0085FF 0%, #005099 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 133, 255, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.pagination-info strong {
    color: #0f172a;
    font-weight: 700;
}

/* Profile Strength */
.profile-strength-container {
    text-align: center;
}

.strength-circle-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.strength-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.strength-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.strength-points {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.strength-circle circle {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.strength-details {
    margin-top: 1rem;
}

.strength-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.strength-cta {
    font-size: 0.85rem;
    color: #0085FF;
    font-weight: 600;
    cursor: pointer;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1E293B;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
    max-width: 400px;
    color: white;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Skeleton Loader */
.skeleton-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-logo {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.6;
    }
}

.app-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

/* ==============================================
   LIGHT THEME FORCE OVERRIDES
   ============================================== */

.app-nav {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    backdrop-filter: none !important;
}

.header-title h1 {
    color: #0f172a;
}

.search-input {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.search-input:focus {
    background: #ffffff !important;
    border-color: #0085FF !important;
}

.search-input::placeholder {
    color: #94a3b8 !important;
}

.filter-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.filter-pill.active,
.filter-pill:hover {
    background: #0085FF;
    border-color: #0085FF;
    color: #ffffff;
}

.job-card,
.stat-card,
.glass-card,
.widget-card,
.results-panel {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.65) !important;
    color: #1e293b;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px -3px rgba(0, 0, 0, 0.05) !important;
}

.kanban-column {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.kanban-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
}

.nav-link {
    color: #64748b;
}

.nav-link:hover {
    background: #f8fafc !important;
    color: #0f172a;
}

.nav-link.active {
    background: rgba(0, 133, 255, 0.08) !important;
    color: #0085FF;
}

.brand {
    color: #0f172a;
}

.user-avatar {
    border-color: #e2e8f0 !important;
}

.user-name {
    color: #0f172a;
}

.filter-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.btn-primary,
.btn-cta {
    background: #0085FF;
    color: #ffffff;
}

.btn-primary:hover,
.btn-cta:hover {
    background: #006ed4;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
select {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    background: #ffffff !important;
    border-color: #0085FF !important;
}

::placeholder {
    color: #94a3b8 !important;
}

/* Dashboard Feature Grid */
.dashboard-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   NEW DASHBOARD FEATURES
   ============================================== */

.analytics-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    padding-top: 20px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chart-bar {
    width: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-height: 100%;
}

.chart-bar.active {
    background: #0085FF;
    box-shadow: 0 0 12px rgba(0, 133, 255, 0.3);
}

.chart-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.interview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interview-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
    cursor: pointer;
}

.interview-item:hover {
    transform: translateX(4px);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.interview-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 50px;
}

.int-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.int-month {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.int-details h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.int-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* ==============================================
   RESPONSIVE BREAKPOINTS
   ============================================== */

/* Large screens - hide filter panel */
@media (max-width: 1280px) {
    .filter-panel {
        display: none;
    }

    .app-container {
        grid-template-columns: 280px 1fr;
    }
}

/* Tablet - collapse sidebar to icons */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 70px 1fr;
        gap: 0;
        padding: 0;
    }

    .app-nav {
        width: 70px;
        padding: 1rem 0.5rem;
        align-items: center;
    }

    .nav-link span,
    .brand span,
    .user-text {
        display: none;
    }

    .brand {
        margin-bottom: 1.5rem;
        justify-content: center;
        padding: 0;
    }

    .nav-link {
        justify-content: center;
        padding: 12px;
        border-radius: 12px;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .user-profile {
        justify-content: center;
        padding: 1rem 0;
    }

    .app-content {
        grid-column: 2;
        padding: 1.5rem;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .search-container {
        max-width: 100%;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 1rem;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile - slide-out sidebar */
@media (max-width: 768px) {
    .app-container {
        display: block;
        padding: 0;
        overflow-x: hidden;
    }

    .app-nav {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 290px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.35s;
        z-index: 1000;
        background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
        border-right: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow:
            8px 0 32px rgba(0, 0, 0, 0.08),
            2px 0 8px rgba(0, 0, 0, 0.04);
        padding: 1.75rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        display: flex;
        visibility: hidden;
        gap: 0.5rem;
    }

    .app-nav.mobile-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Stagger animate nav items on open */
    .app-nav.mobile-open .brand {
        animation: drawerItemSlide 0.3s 0.05s both;
    }

    .app-nav.mobile-open .nav-list {
        animation: drawerItemSlide 0.3s 0.1s both;
    }

    .app-nav.mobile-open .user-profile {
        animation: drawerItemSlide 0.3s 0.2s both;
    }

    @keyframes drawerItemSlide {
        from {
            opacity: 0;
            transform: translateX(-12px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-list {
        flex-direction: column;
        position: static;
        transform: none;
        height: auto;
        gap: 4px;
        margin-top: 0.5rem;
        flex: 1;
    }

    .nav-link span,
    .brand span,
    .user-text {
        display: block;
    }

    .brand {
        justify-content: flex-start;
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 0.95rem;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-link:hover {
        background: rgba(0, 133, 255, 0.04) !important;
        color: #0f172a;
    }

    .nav-link:hover i {
        color: #0085FF !important;
    }

    .nav-link.active {
        background: rgba(0, 133, 255, 0.06) !important;
        color: #0085FF;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: #0085FF;
        box-shadow: 0 0 8px rgba(0, 133, 255, 0.3);
    }

    .user-profile {
        justify-content: flex-start;
        margin-top: auto;
        padding-top: 1.25rem;
        border-top: 1px solid #f1f5f9;
        border-radius: 14px;
        background: #f8fafc;
        padding: 12px 14px;
        border: 1px solid rgba(226, 232, 240, 0.6);
    }

    /* Mobile Header */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.25rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(226, 232, 240, 0.7);
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.03),
            0 4px 12px -2px rgba(0, 0, 0, 0.04);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        color: #0f172a;
        font-weight: 800;
        font-size: 1.2rem;
        letter-spacing: -0.02em;
    }

    .mobile-logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: static;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: transparent !important;
        color: #0f172a !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-menu-toggle:hover {
        border-color: #b3d9ff !important;
        color: #0085FF !important;
        box-shadow: 0 2px 8px rgba(0, 133, 255, 0.12);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.92);
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Content area */
    .app-content {
        padding: 76px 1rem 2rem 1rem !important;
        width: 100%;
    }

    .app-content.full-width {
        grid-column: 1;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .search-container {
        max-width: 100%;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Job grids */
    .job-grid {
        grid-template-columns: 1fr !important;
    }

    .job-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .job-sidebar {
        order: -1;
    }

    /* Kanban */
    .kanban-board {
        flex-direction: column;
    }

    .kanban-column {
        min-width: 100% !important;
    }

    /* Chat */
    .chat-container {
        flex-direction: column;
    }

    .conversations-panel {
        max-height: 200px;
    }

    /* Profile view */
    .profile-layout {
        grid-template-columns: 1fr !important;
    }

    .profile-hero-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.25rem 1.5rem;
        margin-top: -40px;
    }

    .profile-hero-info {
        padding-top: 0.5rem;
    }

    .profile-meta-pills {
        justify-content: center;
    }

    .profile-section-card {
        padding: 1.25rem;
    }

    .exp-top-row {
        flex-direction: column;
        gap: 6px;
    }

    .exp-content {
        padding: 1rem;
    }

    .profile-widget-card {
        padding: 1.25rem;
    }

    /* Stat cards */
    .stat-cards-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .stat-card-small {
        padding: 1rem;
    }

    /* Analytics */
    .analytics-grid {
        grid-template-columns: 1fr !important;
    }

    .analytics-card {
        padding: 1.25rem;
    }

    /* Profile header legacy */
    .profile-header-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    /* Filter pills scroll */
    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .app-content {
        padding: 1rem 0.75rem 100px 0.75rem;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-subtitle {
        font-size: 0.85rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 0.875rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .job-card {
        padding: 1rem;
    }

    .mobile-menu-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .signup-container,
    .login-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .card-selection-group {
        flex-direction: column;
    }

    .repeat-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}