:root {
    --primary: #033770;
    --primary-light: #6366f1;
    --primary-dark: #022c5c;
    --primary-bg: #eef2ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --green: #059669;
    --green-bg: #d1fae5;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    background-image: url('../images/background.svg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.navbar {
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    margin-right: 4px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: 0.3s;
}

.main-content {
    flex: 1;
    padding: 4px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}
.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-remove {
    background: var(--gray-100);
    color: var(--red);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 10px;
    border: 1px solid var(--gray-200);
}
.btn-remove:hover {
    background: var(--red-bg);
    border-color: var(--red);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-bg);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-success {
    background: var(--green);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.card {
    background: rgba(255,255,255);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 10px 8px;
    max-width: 800px;   /* 👈 shrink only table section */
    margin: 0 auto 2px auto;
}

.card-header {
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.hero {
    text-align: center;
    padding: 6px 0 8px;   /* reduced space */
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #033770;
    margin-bottom: 0px;
}

.hero p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 0px;
}

.counter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 24px;
    background: transparent;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.counter-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.counter-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.counter-progress {
    width: 120px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.counter-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-select, .form-input {
    padding: 9px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: rgba(249,250,251,0.95);
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-select {
    min-width: 220px;
}

.form-input {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;          /* shrink table */
    table-layout: fixed;
    margin: 0 auto;      /* center table */
    
}

table {
    width: 100%;
    table-layout: fixed;
    margin: 0 auto;
}

/* # column */
table th:nth-child(1),
table td:nth-child(1) {
    width: 50px;
    text-align: left;
}

/* Company column */
table th:nth-child(2),
table td:nth-child(2) {
    width: 380px;
    text-align: left;
}

/* Career Page column */
table th:nth-child(3),
table td:nth-child(3) {
    width: 280px;
    text-align: left;
}

table th {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #033770;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    border-bottom: 1px solid #033770;
}

table td {
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 1px solid #B9D9FD;
    color: var(--gray-700);
}

table tr:hover td {
    background: var(--gray-50);
}

table a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
}
table a:hover {
    color: #033770;
    text-decoration: underline;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-green {
    background: var(--green-bg);
    color: var(--green);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-500);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.auth-wrap {
    max-width: 440px;
    margin: 0 auto;
}

.auth-wrap .card {
    padding: 36px;
}

.auth-wrap h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.auth-wrap .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 18px;
}

.alert-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.2);
}

.alert-success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(5,150,105,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(249,250,251,0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 4px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--gray-400);
    font-size: 13px;
    border-top: 1px solid var(--gray-200);
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state p {
    font-size: 15px;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-500);
}
.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(249,250,251,0.95);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        gap: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 15px;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .form-select {
        min-width: unset;
        width: 100%;
    }
    table th, table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}
