:root {
    --primary-color: #1b3a5c;
    --primary-dark: #122840;
    --secondary-color: #c9a046;
    --secondary-dark: #a8853a;
    --accent-color: #e6edf5;
    --surface-soft: #f4f6f9;
    --background-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #d6deea;
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 12px 28px rgba(0, 0, 0, 0.12);
}
    
body,
body.admin-body {
    color: var(--text-color);
    background: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-body.admin-dashboard-body {
    background: linear-gradient(135deg, var(--background-color) 60%, var(--accent-color) 100%);
    min-height: 100vh;
}

.container,
.container-fluid {
    --bs-gutter-x: 1.5rem;

}

.navbar,
.admin-navbar,
.site-navbar,
.navbar-theme {
    background: var(--primary-color);
}

.main-navbar,
.admin-navbar,
.site-navbar {
    min-height: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 9999 !important;
}

.site-navbar {
    background: rgba(16, 39, 68, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container,
.site-navbar .container,
.admin-navbar .container-fluid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 118px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #fff !important;
}

.site-brand-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
    text-decoration: none;
}

.navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 118px;
    padding: 0;
    margin: 0 1rem 0 0;
}

.logo,
.menu {
    display: flex;
    align-items: center;
}

.site-brand-logo,
.site-logo {
    display: block;
    width: auto;
    height: 105px;
    max-width: 100%;
    object-fit: contain;
}



.navbar .nav-link {
    border-radius: 999px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1rem !important;
    border-radius: 999px;
    transition: opacity 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}
 
.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.navbar-toggler {
    min-width: 46px;
    min-height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.navbar-toggler:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.36);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.16);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
    background: rgba(16, 39, 68, 0.98);
    border-radius: 16px;
    margin-top: 10px;
    padding: 10px 12px;
    box-shadow: 0 18px 32px rgba(6, 18, 31, 0.2);
}

@media (max-width: 767px) {
    .main-navbar,
    .admin-navbar,
    .site-navbar {
        min-height: 110px;
        height: 110px;
    }

    .navbar-container,
    .site-navbar .container,
    .admin-navbar .container-fluid {
        min-height: 110px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar .navbar-brand {
        min-height: 110px;
    }

    .site-brand-logo,
    .site-logo {
        height: 97px;
    }

    .navbar-nav {
        gap: 0.2rem;
        padding-top: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .navbar-collapse {
        margin-top: 0.9rem;
        border-radius: 18px;
        background: rgba(16, 39, 68, 0.96);
        padding: 0.7rem;
        box-shadow: 0 18px 32px rgba(6, 18, 31, 0.2);
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.95rem 1rem !important;
    }
}


footer,
.footer-theme {
    background: var(--primary-color);
    color: #e8ecf2;
}

.card,
.theme-card,
.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.admin-card {
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.stat-card {
    border-left: 5px solid var(--primary-color);
}

.stat-card.green {
    border-left: 5px solid var(--secondary-color);
}

.btn,
.form-control,
.form-select,
textarea,
.badge {
    border-radius: var(--border-radius);
}

.btn-primary,
.btn-red,
.btn-theme-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-red:hover,
.btn-red:focus,
.btn-theme-primary:hover,
.btn-theme-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    
}
.btn-secondary,
.btn-success,
.btn-green,
.btn-theme-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-green:hover,
.btn-green:focus,
.btn-theme-secondary:hover,
.btn-theme-secondary:focus {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
}

.btn-outline-dark {
    border-radius: 999px;
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.theme-back-btn {
    text-decoration: none;
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    color: #fff !important;
}

.theme-back-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff !important;
}

.page-title,
.section-title,
.hero-title,
.detail-title,
.apply-title,
.dashboard-section-title {
    color: var(--primary-color);
}

.dashboard-section-title {
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.dashboard-card-title {
    font-weight: 700;
    color: var(--secondary-color);
}

.dashboard-box-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.form-control,
.form-select,
textarea {
    border-color: var(--border-color);
    padding: 10px 14px;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 58, 92, 0.15);
}

.table {
    --bs-table-bg: #fff;
    --bs-table-color: var(--text-color);
    --bs-table-hover-bg: #f8f9fb;
    --bs-table-hover-color: var(--text-color);
    border-color: #e8edf4;
}

.table thead th {
    background: #f8fafc;
    color: #2f3640;
    font-weight: 700;
    border-bottom: 1px solid #e1e8f0;
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f8f9fb;
}

.quick-link {
    text-decoration: none;
}

.quick-link .admin-card {
    height: 100%;
}

.card.admin-card .form-label {
    font-weight: 600;
    color: #333;
}

.card.admin-card h6.text-muted {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.card.admin-card p {
    margin-bottom: 0;
}

.bg-red-soft {
    background: var(--primary-color);
}

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

.status-open,
.text-success,
.section-label,
.dashboard-card-title {
    color: var(--secondary-color) !important;
}

.status-critical,
.text-danger {
    color: var(--primary-color) !important;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
}

.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(27, 58, 92, 0.08), rgba(201, 160, 70, 0.08));
}
  
.login-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-left {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.profile-image-box {
    border: 1px dashed #ced4da;
    border-radius: 14px;
    padding: 1rem;
    background: #f8f9fa;
}

.profile-image-preview {
    width: 100%;
    max-width: 560px;
    height: 180px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    background: #e9ecef;
}

.profile-image-placeholder {
    width: 100%;
    max-width: 560px;
    height: 180px;
    border-radius: 14px;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 40px;
}

.profile-image-preview,
.profile-image-placeholder {
    image-rendering: auto;
}

.poster-cropper {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(21, 48, 75, 0.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(212, 166, 74, 0.12), transparent 30%),
        #ffffff;
    box-shadow: 0 14px 32px rgba(16, 39, 68, 0.08);
}

.poster-cropper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.poster-cropper-title {
    display: block;
    font-weight: 700;
    color: #15304b;
}

.poster-cropper-help {
    display: block;
    color: #6c7d8f;
    font-size: 0.82rem;
}

.poster-cropper-stage {
    position: relative;
    width: 100%;
    max-width: 660px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #102744;
    cursor: grab;
    touch-action: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.poster-cropper-stage.is-dragging {
    cursor: grabbing;
}

.poster-cropper-image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    user-select: none;
    pointer-events: none;
    transform-origin: center center;
}

.poster-cropper-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 33.333%, rgba(255, 255, 255, 0.36) 33.333%, rgba(255, 255, 255, 0.36) 33.7%, transparent 33.7%, transparent 66.333%, rgba(255, 255, 255, 0.36) 66.333%, rgba(255, 255, 255, 0.36) 66.7%, transparent 66.7%),
        linear-gradient(180deg, transparent 33.333%, rgba(255, 255, 255, 0.36) 33.333%, rgba(255, 255, 255, 0.36) 33.7%, transparent 33.7%, transparent 66.333%, rgba(255, 255, 255, 0.36) 66.333%, rgba(255, 255, 255, 0.36) 66.7%, transparent 66.7%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.poster-cropper-controls {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 660px;
    margin-top: 0.9rem;
}

.poster-cropper-controls label {
    flex: 0 0 auto;
    margin: 0;
    font-weight: 700;
    color: #15304b;
}

.poster-cropper-controls input[type='range'] {
    flex: 1 1 auto;
    accent-color: #d4a64a;
}

.poster-cropper-reset {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .profile-image-preview,
    .profile-image-placeholder {
        max-width: 100%;
        height: 140px;
    }

    .poster-cropper-head,
    .poster-cropper-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .poster-cropper-reset {
        width: 100%;
    }
}

.docs-table-wrap {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.docs-table {
    margin-bottom: 0;
}

.docs-table thead th {
    background: #f8faf9;
    color: #2f3640;
    font-weight: 700;
    border-bottom: 1px solid #e9ecef;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

.docs-table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-color: #eef1f3;
}

.docs-table tbody tr:hover {
    background: #f8f9fb;
}

.doc-type-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(108, 117, 125, 0.16);
    color: #495057;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: capitalize;
}

.doc-open-btn {
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
}

.docs-empty {
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 0;
}

.u-fs-85 { font-size: 0.85rem; }
.u-fs-12 { font-size: 12px; }
.u-pad-badge-sm { padding: 6px 10px; }
.u-w-350 { width: 350px; }
.u-w-500 { width: 500px; }
.u-min-h-180 { min-height: 180px; }
.u-z-1 { z-index: 1; }
.u-banner-img { width: 100%; height: 100%; filter: brightness(1); }
.recruiter-banner { height: auto; }
.u-thumb-70 { height: 70px; object-fit: cover; border-radius: 10px; }
.job-detail-poster { display: block; width: 100%; max-width: 900px; height: auto; border-radius: 14px; background: #e9ecef; box-shadow: 0 8px 20px rgba(16, 39, 68, 0.1); }
.u-img-max-320-r14 { max-width: 320px; border-radius: 14px; }
.u-img-max-220-r12 { max-width: 220px; border-radius: 12px; }
.u-img-max-h-180-r12 { max-height: 180px; border-radius: 12px; object-fit: cover; }
.u-img-profile { width: 180px; height: 60px; object-fit: cover; border-radius: 8px; border: 4px solid #e0e0e0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.u-img-profile-thin { width: 180px; height: 60px; object-fit: cover; border-radius: 8px; border: 3px solid #e0e0e0; }
.u-img-preview-profile { display: none; width: 180px; height: 60px; object-fit: cover; border-radius: 8px; }
.u-avatar-placeholder { width: 110px; height: 110px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #bbb; border: 4px solid #e0e0e0; }
.u-text-success { color: var(--secondary-dark); }
.u-text-primary { color: var(--primary-color); }
.u-text-secondary { color: var(--secondary-color); }
.u-text-danger { color: var(--primary-color); }
.u-bg-soft { background: #f4f6f9; }
.u-min-vh-100 { min-height: 100vh; }
.u-dashboard-bg { background: linear-gradient(135deg, #f4f6f9 60%, #e6edf5 100%); }
.u-fs-25 { font-size: 2.5rem; }
.u-letter-1 { letter-spacing: 1px; }
.u-input-soft { background: #f8f9fa; }
.u-img-max-220 { max-width: 220px; }
.u-table-col-6 { width: 6%; }
.u-table-col-8 { width: 8%; }
.u-table-col-12 { width: 12%; }
.u-table-col-14 { width: 14%; }
.u-table-col-20 { width: 20%; }
.u-table-col-24 { width: 24%; }
.u-table-col-30 { width: 30%; }
.u-table-col-62 { width: 62%; }

@media (max-width: 768px) {
    .site-brand-logo,
    .site-logo {
        height: 97px;
    }

    .navbar-toggler {
        min-width: 50px;
        min-height: 50px;
    }

    .card,
    .theme-card,
    .admin-card {
        border-radius: var(--border-radius);
    }
}
