/* =====================
   BASE
===================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, #eef2ff 0%, #f6f7fb 60%);
    color: #0f172a;
}

/* =====================
   HEADER – MODERN
===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.85),
        rgba(255,255,255,0.65)
    );
    border-bottom: 1px solid rgba(226,232,240,.8);
}

.header-inner {
    height: 68px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

/* LOGO */
.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
    color: #1e1b4b;
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
}

/* =====================
   DESKTOP NAV
===================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-item {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #0f172a;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger::after {
    content: "▾";
    font-size: 12px;
    color: #64748b;
}

/* =====================
   DROPDOWN – PREMIUM
===================== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    min-width: 280px;
    padding: 10px;
    background: linear-gradient(
        180deg,
        #ffffff,
        #f8fafc
    );
    border-radius: 18px;
    box-shadow:
        0 30px 60px rgba(15,23,42,.18),
        inset 0 1px 0 rgba(255,255,255,.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transition: all .18s ease;
    z-index: 2000;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #0f172a;
}

.dropdown-menu a:hover {
    background: linear-gradient(
        90deg,
        rgba(99,102,241,.12),
        rgba(34,211,238,.12)
    );
}

.dropdown-menu .logout {
    color: #991b1b;
}

/* =====================
   USER AREA
===================== */
.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-email {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* =====================
   BURGER
===================== */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    margin: 5px 0;
    border-radius: 2px;
}

/* =====================
   MOBILE NAV
===================== */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav.open {
    display: flex;
}

.mobile-section {
    border-top: 1px solid #e5e7eb;
}

.mobile-section-toggle {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mobile-section-items {
    display: none;
    flex-direction: column;
}

.mobile-section-items.open {
    display: flex;
}

.mobile-section-items a {
    padding: 14px 36px;
    text-decoration: none;
    color: #0f172a;
}

.mobile-section-items a.logout {
    color: #991b1b;
}

/* =====================
   CONTENT
===================== */
.main-content {
    padding: 36px;
}

/* =====================
   CARDS
===================== */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 20px 40px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.7);
    margin-bottom: 24px;
}

/* =====================
   TABLE CELLS – FIX
===================== */
table,
.jobs-table,
.cv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table thead th,
.jobs-table thead th,
.cv-table thead th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #334155;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

table tbody td,
.jobs-table tbody td,
.cv-table tbody td {
    padding: 16px;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

table tbody tr:last-child td,
.jobs-table tbody tr:last-child td,
.cv-table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover td,
.jobs-table tbody tr:hover td,
.cv-table tbody tr:hover td {
    background: #f8fafc;
}

table tbody td .btn,
.jobs-table tbody td .btn,
.cv-table tbody td .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    color: #ffffff;
}

.btn.secondary {
    background: #eef2ff;
    color: #4338ca;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {

    .main-nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .main-content {
        padding: 22px;
    }
}
