:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent-blue: #38bdf8;
    --accent-purple: #818cf8;
    --accent-green: #34d399;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.nav-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.search-wrapper {
    position: relative;
    width: 450px;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.quick-tags {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.tag-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.05);
}

mark {
    background: rgba(56, 189, 248, 0.3);
    color: var(--text-main);
    padding: 0 2px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Dashboard Header */
.dashboard {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 2rem;
}

.hero-section {
    margin-bottom: 3rem;
    text-align: center;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pulse-blue {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
}

.pulse-purple {
    background: rgba(129, 140, 248, 0.2);
    color: var(--accent-purple);
}

.pulse-green {
    background: rgba(52, 211, 153, 0.2);
    color: var(--accent-green);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Filters */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--accent-blue);
    color: white;
}

.filter-btn:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.job-card {
    cursor: pointer;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: scale(1.02);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(45, 55, 75, 0.8);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.company-logo-type {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.job-posted {
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    font-weight: 600;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.job-company {
    color: var(--accent-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
}

.tag.blue {
    color: var(--accent-blue);
    border-color: rgba(56, 189, 248, 0.3);
}

.tag.purple {
    color: var(--accent-purple);
    border-color: rgba(129, 140, 248, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.modal-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    color: var(--text-dim);
    cursor: pointer;
}

.jd-content {
    margin-top: 2rem;
    white-space: pre-wrap;
    color: var(--text-dim);
    line-height: 1.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.job-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Auth UI */
.btn-signin {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.auth-card {
    max-width: 450px !important;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary.full-width {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.auth-footer {
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.logout-link {
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
}

.logout-link:hover {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-wrapper {
        width: 100%;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}