@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --accent-1: #ffcc00;
    --accent-2: #ff9f1c;
    --accent-3: #ffe066;
    --text-light: #f4f4f8;
    --text-muted: rgba(244, 244, 248, 0.65);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1c1710, #4a3a12, #241c0d);
    display: flex;
    flex-direction: column;
}

/* Animated gradient blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    z-index: 0;
    animation: float 18s ease-in-out infinite;
}
.blob-1 {
    width: 420px; height: 420px;
    background: var(--accent-1);
    top: -120px; left: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 380px; height: 380px;
    background: var(--accent-2);
    bottom: -140px; right: -100px;
    animation-delay: -6s;
}
.blob-3 {
    width: 320px; height: 320px;
    background: var(--accent-3);
    top: 40%; left: 60%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Centered auth layout */
.auth-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.glass-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 44px 38px;
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(255, 204, 0, 0.45));
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.glass-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
}

.glass-card .subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.field-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.field-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field-input::placeholder {
    color: rgba(244, 244, 248, 0.4);
}

.field-input:focus {
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18);
}

.btn-primary {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 6px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 204, 0, 0.5);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: #ffe066;
    text-decoration: underline;
}

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

.alert-error {
    background: rgba(255, 87, 87, 0.12);
    border-color: rgba(255, 87, 87, 0.35);
    color: #ffb4b4;
}

.alert-success {
    background: rgba(44, 182, 125, 0.14);
    border-color: rgba(44, 182, 125, 0.4);
    color: #9ce8c5;
}

.alert-info {
    background: rgba(94, 158, 255, 0.14);
    border-color: rgba(94, 158, 255, 0.4);
    color: #bcd7ff;
}

.field-errors {
    color: #ffb4b4;
    font-size: 12px;
    margin-top: 6px;
}

/* ---- Dashboard ---- */
.app-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 152px;
    flex-shrink: 0;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.sidebar .brand {
    gap: 8px;
    margin-bottom: 0;
}

.sidebar .brand-mark {
    width: 30px;
    height: 30px;
}

.sidebar .brand-name {
    font-size: 17px;
}

.sidebar .nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 36px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.topbar h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
}

.user-chip .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-chip a,
.user-chip .logout-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.user-chip a:hover,
.user-chip .logout-link:hover {
    color: #ffb4b4;
}

.logout-form {
    display: inline-flex;
    margin: 0;
}

.logout-link {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.content {
    flex: 1;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px 32px;
}

.empty-state .icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.35), rgba(255, 159, 28, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.empty-state h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 360px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px;
    backdrop-filter: blur(16px);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
}

@media (max-width: 860px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; }
    .sidebar nav { flex-direction: row; }
    .topbar { padding: 18px 22px; }
    .content { padding: 22px; }
}

/* ---- User management ---- */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.page-head p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: #2b1d00;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 26px rgba(255, 204, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 204, 0, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-danger {
    background: rgba(255, 87, 87, 0.14);
    border-color: rgba(255, 87, 87, 0.4);
    color: #ffb4b4;
}

.btn-danger:hover {
    background: rgba(255, 87, 87, 0.22);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(16px);
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 180px;
}

.filter-bar .field-select {
    cursor: pointer;
}

.field-select option {
    background: #221f3b;
    color: var(--text-light);
}

.table-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 16px 22px;
    text-align: left;
    font-size: 14px;
}

.data-table thead th {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-cell .meta-name {
    font-weight: 600;
    font-size: 14px;
}

.user-cell .meta-email {
    color: var(--text-muted);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-admin {
    background: rgba(255, 137, 6, 0.15);
    border-color: rgba(255, 137, 6, 0.4);
    color: #ffc98a;
}

.badge-student {
    background: rgba(94, 158, 255, 0.15);
    border-color: rgba(94, 158, 255, 0.4);
    color: #bcd7ff;
}

.badge-employer {
    background: rgba(44, 182, 125, 0.15);
    border-color: rgba(44, 182, 125, 0.4);
    color: #9ce8c5;
}

.badge-active {
    background: rgba(44, 182, 125, 0.15);
    color: #9ce8c5;
    border-color: rgba(44, 182, 125, 0.35);
}

.badge-inactive {
    background: rgba(255, 87, 87, 0.12);
    color: #ffb4b4;
    border-color: rgba(255, 87, 87, 0.3);
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.row-actions a, .row-actions button {
    font-size: 12px;
    padding: 7px 12px;
}

.empty-row {
    text-align: center;
    padding: 48px 22px;
    color: var(--text-muted);
}

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

.pagination a, .pagination span {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
}

.pagination .current {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    border-color: transparent;
    font-weight: 600;
}

.form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(18px);
    max-width: 640px;
}

.form-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-card .subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.field-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-2);
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.checkbox-row label {
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.form-actions .btn-primary {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.danger-card {
    background: rgba(255, 87, 87, 0.08);
    border: 1px solid rgba(255, 87, 87, 0.3);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 560px;
    backdrop-filter: blur(18px);
}

.danger-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffb4b4;
}

.danger-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 12px 14px; }
}

/* ---- Landing page ---- */
body.landing-page {
    background: linear-gradient(180deg, #fffdf5 0%, #fff8e6 45%, #fff3d6 100%);
    color: #2b2b2b;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--accent-1);
    box-shadow: 0 4px 24px rgba(43, 33, 0, 0.12);
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2b2b2b;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.5px;
}

.landing-brand-mark {
    width: 32px;
    height: 32px;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.landing-links a {
    color: #2b2b2b;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.landing-links a:hover {
    opacity: 1;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-resume:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(43, 33, 0, 0.25);
}

.btn-resume .icon {
    font-weight: 700;
}

.landing-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
}

.landing-login .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2b2b2b;
    color: var(--accent-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.landing-login .user-icon {
    font-size: 18px;
    line-height: 1;
}

.hero {
    position: relative;
    z-index: 1;
    padding: 72px 32px 100px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-copy .eyebrow {
    color: #9a7a00;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.hero-copy h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.25;
    color: #221d10;
}

.hero-copy h1 span {
    color: var(--accent-2);
}

.accent-underline {
    display: block;
    width: 110px;
    height: 5px;
    border-radius: 999px;
    margin: 18px 0 24px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
}

.hero-sub {
    font-size: 15.5px;
    line-height: 1.7;
    color: #6b6354;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(43, 33, 0, 0.1);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    max-width: 520px;
    box-shadow: 0 14px 40px rgba(43, 33, 0, 0.1);
}

.hero-search .search-icon {
    color: var(--accent-2);
    font-size: 18px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14.5px;
    font-family: inherit;
    color: #2b2b2b;
    padding: 10px 0;
}

.hero-search input::placeholder {
    color: rgba(43, 33, 0, 0.4);
}

.hero-search button {
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background: var(--accent-1);
    font-size: 17px;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.hero-search button:hover {
    filter: brightness(1.08);
}

.hero-visual {
    position: relative;
}

.hero-watermark {
    position: absolute;
    top: -54px;
    right: -10px;
    width: 220px;
    opacity: 0.18;
    pointer-events: none;
}

.hero-watermark img {
    width: 100%;
    display: block;
}

.hero-photo-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #fff3d6, #ffe9b8, #ffd866);
    box-shadow: 0 24px 60px rgba(43, 33, 0, 0.18);
}

.hero-illustration {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

@media (max-width: 900px) {
    .landing-nav-inner { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
    .landing-links { order: 3; width: 100%; gap: 18px; flex-wrap: wrap; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 34px; }
    .hero-watermark { display: none; }
}
