body.auth-body {
    background: linear-gradient(135deg, #142d4c 0%, #1abc9c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Nunito', sans-serif;
}

.auth-card {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2rem 1.75rem;
}

.brand-circle {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 188, 156, 0.15);
    color: #1abc9c;
    font-weight: 700;
    font-size: 1.4rem;
    overflow: hidden;
}

.brand-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-heading {
    font-weight: 700;
    color: #142d4c;
}

.auth-subheading {
    color: #6c757d;
    font-size: 0.95rem;
}

.auth-link {
    color: #1abc9c;
    font-weight: 600;
}

.auth-link:hover {
    color: #148f77;
    text-decoration: none;
}

.form-control {
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: rgba(26, 188, 156, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a085, #13856f);
}

[data-feedback] {
    display: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

[data-feedback].show {
    display: block;
}

.terms-text {
    font-size: 0.85rem;
    color: #6c757d;
}

@media (max-width: 576px) {
    body.auth-body {
        padding: 1.5rem 1rem;
    }

    .auth-card .card-body {
        padding: 1.75rem 1.25rem;
    }
}

/* Dashboard */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fb;
}

.hero-card {
    border-radius: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(20,45,76,0.95), rgba(26,188,156,0.85));
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -40px rgba(20, 45, 76, 0.65);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 55%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-search {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px -20px rgba(0,0,0,0.45);
}

.card-feature {
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 20px 40px -30px rgba(20, 45, 76, 0.35);
    height: 100%;
}

.card-feature h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #142d4c;
}

.card-feature p {
    color: #6c757d;
    font-size: 0.9rem;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #142d4c;
}

.job-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(20,45,76,0.06);
    color: #142d4c;
    font-weight: 600;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.job-card {
    border: none;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 20px 40px -30px rgba(20, 45, 76, 0.25);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -30px rgba(20, 45, 76, 0.35);
}

.job-card .company {
    color: #6c757d;
    font-size: 0.9rem;
}

.job-card .meta {
    color: #17a589;
    font-weight: 600;
    font-size: 0.85rem;
}

.job-card .job-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.job-card .job-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(20, 45, 76, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.job-card .job-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card a.stretched-link {
    color: inherit;
}

.employer-card {
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 18px 36px -28px rgba(20,45,76,0.35);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.employer-card .employer-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.employer-card .employer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employer-card .metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.notification-card {
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 10px 30px -25px rgba(15,32,51,0.35);
}

.banner-ad {
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 20px 50px -35px rgba(20,45,76,0.45);
}

.banner-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid rgba(20,45,76,0.08);
    box-shadow: 0 -10px 30px -25px rgba(15,32,51,0.35);
    z-index: 1030;
}

.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    border: none;
    background: transparent;
}

.bottom-nav .nav-link.active {
    color: #1abc9c;
}

.avatar-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(26, 188, 156, 0.25);
}

.avatar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offcanvas-menu .nav-link {
    font-weight: 600;
    color: #142d4c;
    padding: 0.75rem 0;
}

.offcanvas-menu .nav-link:hover {
    color: #1abc9c;
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

.card-feature select.form-select {
    border-radius: 0.9rem;
    border: 1px solid rgba(20,45,76,0.12);
    padding: 0.75rem 1rem;
}

/* Job detail */
.job-hero {
    border-radius: 1.5rem;
    background: #fff;
}

.job-logo-lg {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(26,188,156,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-title {
    color: #142d4c;
    font-weight: 700;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.job-summary {
    margin-bottom: 1.5rem;
}

.job-summary-card {
    border-radius: 1.25rem;
    background: #fff;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px -28px rgba(20,45,76,0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.job-summary-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #6c757d;
}

.job-section {
    border-radius: 1.5rem;
    background: #fff;
}

.job-description p {
    margin-bottom: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

.job-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.job-requirements li {
    padding-left: 1.75rem;
    position: relative;
    color: #4a5568;
}

.job-requirements li::before {
    content: '\2022';
    position: absolute;
    left: 0.5rem;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #1abc9c;
}

.job-logo-sm {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(26,188,156,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-logo-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-section h2 {
    color: #142d4c;
    font-weight: 700;
}

@media (min-width: 768px) {
    .job-hero {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .job-summary-card {
        border-radius: 1rem;
    }

    .job-requirements li {
        padding-left: 1.5rem;
    }
}

/* Apply page */
.apply-hero {
    border-radius: 1.5rem;
    background: #fff;
}

.apply-hero .job-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.apply-summary strong {
    font-size: 1.1rem;
    color: #142d4c;
}

.apply-card {
    border-radius: 1.5rem;
    background: #fff;
}

.apply-card .card-body {
    padding: 2rem 1.75rem;
}

.apply-card .form-label {
    color: #142d4c;
}

.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(26,188,156,0.35);
    border-radius: 1.25rem;
    padding: 1.75rem;
    text-align: center;
    background: rgba(26,188,156,0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone .upload-copy {
    pointer-events: none;
}

.upload-dropzone .icon {
    font-size: 2.5rem;
}

.upload-dropzone.is-dragover {
    border-color: #1abc9c;
    background: rgba(26,188,156,0.1);
}

.apply-tips {
    flex: 0 0 320px;
}

.tips-card {
    background: linear-gradient(135deg, rgba(26,188,156,0.12), rgba(20,45,76,0.08));
    border-radius: 1.5rem;
    padding: 1.75rem;
    color: #142d4c;
    box-shadow: 0 20px 40px -30px rgba(20,45,76,0.35);
}

.tips-card li span:first-child {
    font-size: 1.1rem;
}

.success-icon {
    font-size: 2.75rem;
}

@media (max-width: 991px) {
    .apply-card .card-body {
        padding: 1.5rem;
    }

    .apply-tips {
        flex: 1 1 auto;
    }
}

@media (max-width: 576px) {
    .apply-hero, .apply-card {
        border-radius: 1.25rem;
    }

    .upload-dropzone {
        padding: 1.25rem;
    }
}

/* Applications page */
.applications-hero {
    border-radius: 1.5rem;
    background: #fff;
}

.stat-chip {
    min-width: 90px;
    border-radius: 1rem;
    background: rgba(26,188,156,0.08);
    padding: 0.75rem 1rem;
    text-align: center;
}

.stat-chip .label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.stat-chip strong {
    font-size: 1.25rem;
    color: #142d4c;
}

.applications-filter {
    border-radius: 1.5rem;
    background: #fff;
}

.applications-filter .btn-group .btn {
    border-radius: 999px;
    font-weight: 600;
}

.applications-filter .btn-group .btn.active,
.applications-filter .btn-group .btn:hover {
    background: #1abc9c;
    border-color: #1abc9c;
    color: #fff;
}

.application-card {
    border-radius: 1.5rem;
    background: #fff;
}

.application-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(26,188,156,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-job-title {
    font-weight: 700;
    color: #142d4c;
    text-decoration: none;
}

.app-job-title:hover {
    color: #1abc9c;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(253, 193, 63, 0.18);
    color: #a26b00;
}

.status-review {
    background: rgba(56, 103, 214, 0.15);
    color: #1f3d95;
}

.status-shortlisted {
    background: rgba(26,188,156,0.15);
    color: #138a6b;
}

.status-accepted,
.status-offer,
.status-hired {
    background: rgba(67, 186, 125, 0.18);
    color: #1e7b53;
}

.status-interview {
    background: rgba(88, 68, 214, 0.15);
    color: #4830aa;
}

.status-rejected {
    background: rgba(220, 53, 69, 0.12);
    color: #9b1c2e;
}

.application-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    margin-right: 0.35rem;
}

.application-actions .btn:last-child {
    margin-right: 0;
}

.application-actions .btn-link {
    text-decoration: none;
    color: #1abc9c;
}

.application-actions .btn-link:hover {
    color: #148f77;
}

.empty-icon {
    font-size: 2.75rem;
}

@media (max-width: 576px) {
    .applications-hero,
    .applications-filter,
    .application-card {
        border-radius: 1.25rem;
    }

    .stat-chip {
        min-width: 70px;
        padding: 0.6rem 0.75rem;
    }

    .applications-filter .btn-group {
        flex-wrap: wrap;
    }

    .applications-filter .btn-group .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* Inline Ad Banners */
.ad-banner-inline {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-banner-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ad-banner-inline img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.ad-banner-inline .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.ad-banner-inline .badge {
    opacity: 0.85;
}

.ad-banner-inline strong {
    color: #142d4c;
    font-size: 0.95rem;
}

.ad-banner-inline .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Application Filter Buttons */
.applications-filter [data-status-filters] .btn {
    font-weight: 500;
}

.applications-filter [data-status-filters] .btn.active,
.applications-filter [data-status-filters] .btn-primary {
    background-color: #142d4c;
    border-color: #142d4c;
    color: white;
}

.applications-filter [data-status-filters] .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

/* Terms & Privacy Modals */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(20, 45, 76, 0.1);
    padding: 1.5rem;
    border-radius: 1.25rem 1.25rem 0 0;
}

.modal-header .modal-title {
    font-weight: 700;
    color: #142d4c;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    color: #4a5568;
    line-height: 1.7;
}

.modal-body h4 {
    color: #142d4c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.modal-footer {
    border-top: 1px solid rgba(20, 45, 76, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0 0 1.25rem 1.25rem;
}

.modal-footer .btn {
    border-radius: 0.75rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#termsStatus {
    padding-left: 0.5rem;
}

#termsStatusText {
    display: block;
    font-size: 0.8rem;
}

/* Scroll indicators in modals */
.modal-body .alert {
    border-radius: 0.75rem;
    border: none;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.modal-body .alert-info {
    background-color: rgba(26, 188, 156, 0.1);
    color: #138a6b;
}

.modal-body .alert-success {
    background-color: rgba(67, 186, 125, 0.15);
    color: #1e7b53;
}

/* Disabled checkbox styling */
.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-input:disabled + .form-check-label {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(26, 188, 156, 0.5);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 188, 156, 0.7);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-body {
        max-height: 50vh;
        padding: 1.25rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.25rem;
    }
}