/* Shared visual language for the applicant dashboard and profile editor.
   Page-specific layouts stay independent; palette, hero treatment and panel depth stay consistent. */
.applicant-dashboard-page,
.applicant-profile-page {
    --applicant-unified-navy: #0b2b63;
    --applicant-unified-blue: #1767df;
    --applicant-unified-teal: #16b9b0;
    --applicant-unified-line: #cfdbe8;
    --applicant-unified-line-soft: #dce6ef;
    --applicant-unified-shadow: 0 12px 32px rgba(31, 54, 82, .075);
    --applicant-unified-accent: linear-gradient(90deg, var(--applicant-unified-blue), var(--applicant-unified-teal));
    background:
        radial-gradient(circle at 92% 7%, rgba(23, 103, 223, .08), transparent 28rem),
        radial-gradient(circle at 4% 24%, rgba(22, 185, 176, .07), transparent 24rem),
        #f5f7fa;
}

/* Both applicant entry pages use the same hero family. */
.applicant-dashboard-hero,
.applicant-profile-hero {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 8%, rgba(47, 124, 255, .28), transparent 29%),
        radial-gradient(circle at 12% 94%, rgba(22, 185, 176, .23), transparent 30%),
        linear-gradient(145deg, #0b2b63 0%, #15345e 52%, #0d4d67 100%);
    box-shadow: 0 24px 64px rgba(11, 43, 99, .18);
}

.applicant-dashboard-hero::before,
.applicant-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
}

.applicant-profile-hero::after {
    display: none;
}

.applicant-dashboard-eyebrow,
.applicant-profile-eyebrow {
    color: #c9fff9;
    border-color: rgba(185, 244, 232, .24);
    background: rgba(255, 255, 255, .075);
}

/* Give the main panels a little more separation without making them heavy. */
.applicant-dashboard-page .applicant-dashboard-card,
.applicant-profile-page .applicant-profile-card,
.applicant-profile-page .applicant-profile-photo-card,
.applicant-profile-page .applicant-profile-nav {
    overflow: hidden;
    border: 1px solid var(--applicant-unified-line) !important;
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--applicant-unified-shadow);
}

/* A restrained shared accent ties the summary and edit views together. */
.applicant-dashboard-page .applicant-dashboard-card::before,
.applicant-profile-page .applicant-profile-card::before,
.applicant-profile-page .applicant-profile-photo-card::before,
.applicant-profile-page .applicant-profile-nav::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--applicant-unified-accent);
}

.applicant-dashboard-page .final-submit-panel,
.applicant-profile-page .applicant-profile-progress {
    border-color: var(--applicant-unified-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--applicant-unified-shadow);
}

.applicant-dashboard-page .applicant-summary-card dl,
.applicant-dashboard-page .upload-box,
.applicant-dashboard-page .table-responsive,
.applicant-profile-page .applicant-education-record,
.applicant-profile-page .relation-box,
.applicant-profile-page .tag-picker,
.applicant-profile-page .applicant-profile-inline-form {
    border-color: var(--applicant-unified-line-soft);
}

.applicant-dashboard-page .applicant-summary-card dt {
    background: #f4f8fc;
}

.applicant-profile-page .form-control,
.applicant-profile-page .form-select {
    border-color: #cfdae5;
    background-color: #fff;
}

.applicant-profile-page .form-control:focus,
.applicant-profile-page .form-select:focus {
    border-color: #69a5e8;
    box-shadow: 0 0 0 .2rem rgba(23, 103, 223, .10), 0 0 0 1px rgba(22, 185, 176, .08);
}

.applicant-profile-page .applicant-profile-form-footer {
    border-color: #c7dedc;
    background: linear-gradient(135deg, #f4f9ff, #f1fbf9);
}

@media (max-width: 767.98px) {
    .applicant-dashboard-hero,
    .applicant-profile-hero {
        border-radius: 20px;
    }

    .applicant-dashboard-page .applicant-dashboard-card,
    .applicant-profile-page .applicant-profile-card,
    .applicant-profile-page .applicant-profile-photo-card,
    .applicant-profile-page .applicant-profile-nav {
        border-radius: 16px;
    }
}
