:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --secondary-light: #c084fc;
    --bg-dark: #070b14;
    --bg-card: rgba(17, 25, 40, 0.75);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --success: #10b981;
    --error: #ef4444;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Floating Background Blobs */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.animated-bg::before {
    top: -10%;
    left: -10%;
    animation: floatBlob1 15s ease-in-out infinite alternate;
    transform: translate(calc(var(--mouse-x, 0) * 50px), calc(var(--mouse-y, 0) * 50px));
}

.animated-bg::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    animation: floatBlob2 18s ease-in-out infinite alternate;
    transform: translate(calc(var(--mouse-x, 0) * -80px), calc(var(--mouse-y, 0) * -80px));
}

@keyframes floatBlob1 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(20%, 15%);
    }
}

@keyframes floatBlob2 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-15%, -20%);
    }
}

/* Glassmorphism Refined */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-hover:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 60px 0 rgba(99, 102, 241, 0.15);
}

/* Navbar Premium */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    position: sticky;
    top: 1.5rem;
    margin: 0 6% 3rem;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Hero Section High-End */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(to right, #818cf8, #c084fc, #fface0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-weight: 300;
}

/* Search Box Premium */
.hero-search {
    max-width: 750px;
    margin: 0 auto;
    padding: 0.8rem;
    display: flex;
    border-radius: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.2rem 2rem;
    color: white;
    outline: none;
    font-size: 1.1rem;
}

/* Buttons Upgraded */
.btn-glow {
    background: var(--gradient-1);
    color: white;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--primary-glow);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.btn-glow:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px var(--primary-glow);
}

.btn-primary {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

/* Cards & Grid Refined */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 6%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    padding: 2.5rem;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-up:hover {
    transform: translateY(-15px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Sidebars & Dashboards Premium */
.dashboard-layout {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    height: 100vh;
}

.sidebar {
    width: 300px;
    padding: 2.5rem;
    border-radius: 30px;
    height: calc(100vh - 3rem);
}

.side-nav a {
    padding: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.side-nav a i {
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.2);
}

/* Stats Upgraded */
.stat-card {
    padding: 2.5rem;
    border-radius: 28px;
}

.stat-card i {
    font-size: 2.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 18px;
}

/* Messaging Refined */
.messaging-container {
    border-radius: 30px;
    height: calc(100vh - 10rem);
}

.contacts-panel {
    background: rgba(255, 255, 255, 0.02);
}

.contact-item {
    padding: 1.2rem;
    margin: 0.5rem;
    border-radius: 18px;
}

.contact-item.active {
    background: var(--gradient-1);
    color: white;
}

/* Forms Premium */
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 1rem;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Animations Premium - Scroll Reveal */
.animate-in,
.card,
.job-card {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible,
.card.visible,
.job-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transitions */
.page-transition {
    animation: pageFade 0.5s ease-out;
}

@keyframes pageFade {
    from {
        opacity: 0;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .side-nav {
        flex-direction: row;
        overflow-x: auto;
        margin-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .side-nav a {
        white-space: nowrap;
        padding: 0.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0.8rem 5%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-main);
    }

    .hero-search form {
        flex-direction: column;
    }

    .hero-search input {
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
        margin-bottom: 0.5rem;
    }
}

.menu-toggle {
    display: none;
}

.text-error {
    color: var(--error) !important;
}

.flex-gap {
    display: flex;
    gap: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-600 {
    max-width: 600px;
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.status-pill.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-pill.reviewed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-pill.interviewed {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-pill.accepted {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-pill.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Premium Grid & Horizontal Filter Layout (Screenshot 2 Match) */
.premium-grid-layout .container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 4%;
}

.search-bar-section {
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
}

.horizontal-filter {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.search-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-group input,
.search-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.search-group input:focus {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.06);
}

.btn-search-glow {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    color: white;
    padding: 0.95rem 2.5rem;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
}

.btn-search-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.5);
    filter: brightness(1.1);
}

.results-stats {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
}

/* Job Grid Premium (3 columns) */
.job-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.job-card-v2 {
    background: #111827;
    /* Darker card as per screenshot */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.job-card-v2:hover {
    border-color: #6366f1;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.company-tag {
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.6rem;
}

.job-title-v2 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: white;
}

.meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.meta-v2 span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-v2 i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.salary-range-v2 {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.btn-view-v2 {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-view-v2:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

/* Response V2 */
.no-results-v2 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

/* Mobile responsive Grid */
@media (max-width: 1100px) {
    .job-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .horizontal-filter {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .btn-search-glow {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .job-grid-premium {
        grid-template-columns: 1fr;
    }

    .horizontal-filter {
        grid-template-columns: 1fr;
    }
}