
:root {
    --neon-blue: #00e5ff;
    --neon-pink: #ff2bd6;
    --neon-purple: #9d4edd;

    --dark-bg: #0b1020;
    --dark-card: #151b2e;
    --dark-border: rgba(0, 229, 255, 0.25);

    --light-bg: #f7f7fb;
    --light-card: #ffffff;
    --light-border: #d8dce8;
}

/* ===========================
   Base
=========================== */

html {
    scrollbar-width: thin;
    scrollbar-color: #ff2bd6 #0f1628;
}

body {
    min-height: 100vh;
}

body.theme-dark {
    background:
        radial-gradient(circle at top left, rgba(255, 43, 214, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.16), transparent 28%),
        var(--dark-bg);
    color: #f5f7ff;
}

body.theme-light {
    background:
        radial-gradient(circle at top left, rgba(255, 43, 214, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.12), transparent 28%),
        var(--light-bg);
    color: #111827;
}

/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff2bd6, #ff5be7);
    border-radius: 10px;
    border: 2px solid #0f1628;
    box-shadow:
        0 0 10px rgba(255, 43, 214, .6),
        0 0 20px rgba(255, 43, 214, .25);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff66ea, #ff2bd6);
    box-shadow:
        0 0 16px rgba(255, 43, 214, .9),
        0 0 30px rgba(255, 43, 214, .45);
}

/* ===========================
   App Shell / Sidebar
=========================== */

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;

    padding: 24px 18px;

    background: rgba(10, 15, 30, 0.96);
    border-right: 1px solid rgba(255, 43, 214, 0.35);
    box-shadow: 0 0 28px rgba(255, 43, 214, 0.12);

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .16em;

    margin-bottom: 28px;

    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}

.brand-job {
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(0, 229, 255, .65),
        0 0 16px rgba(0, 229, 255, .25);
}

.brand-finitum {
    background: linear-gradient(
        90deg,
        var(--neon-blue) 0%,
        var(--neon-purple) 55%,
        var(--neon-pink) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    filter: drop-shadow(0 0 7px rgba(157, 78, 221, .55));
}

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

.sidebar-section {
    margin-top: 16px;
    margin-bottom: 4px;

    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;

    color: var(--neon-pink);
}

.sidebar-nav a {
    display: block;

    color: #dbeafe;
    text-decoration: none;

    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;

    background: transparent;

    font-weight: 600;
    transition: all .2s ease;
}

.sidebar-nav a:hover {
    color: #ffffff;
    border-color: rgba(0, 229, 255, .35);
    background: rgba(0, 229, 255, .08);
    box-shadow: 0 0 14px rgba(0, 229, 255, .18);
    transform: translateX(3px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-toggle,
.logout-link {
    display: block;
    width: 100%;

    text-align: center;
    text-decoration: none;

    padding: 12px;
    border-radius: 12px;
    border: none;

    color: #ffffff;
    font-weight: 700;

    transition: all .25s ease;
}

.theme-toggle {
    cursor: pointer;
    background: linear-gradient(135deg, #16d9ff, #4f7cff);
    box-shadow: 0 0 14px rgba(0, 229, 255, .25);
}

.logout-link {
    background: linear-gradient(135deg, #ff2bd6, #9d4edd);
    box-shadow: 0 0 14px rgba(255, 43, 214, .25);
}

.theme-toggle:hover,
.logout-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 0 18px rgba(0, 229, 255, .35),
        0 0 30px rgba(255, 43, 214, .18);
}

/* ===========================
   Main Layout
=========================== */

.app-main {
    flex: 1;
    width: 100%;
    min-height: 100vh;

    margin-left: 260px;
    padding: 48px;
}

.app-main .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ===========================
   Cards / Panels
=========================== */

.card,
.page-panel,
.form-page {
    border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover,
.page-panel:hover,
.form-page:hover {
    transform: translateY(-2px);
}

body.theme-dark .card,
body.theme-dark .list-group-item,
body.theme-dark .page-panel,
body.theme-dark .form-page {
    background: rgba(21, 27, 46, 0.78);
    border: 1px solid rgba(0, 229, 255, 0.22);
    color: #f5f7ff;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

body.theme-light .card,
body.theme-light .list-group-item,
body.theme-light .page-panel,
body.theme-light .form-page {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    color: #111827;
    box-shadow: 0 6px 22px rgba(17, 24, 39, 0.06);
}

.page-panel {
    width: 100%;
    max-width: 900px;
}

.form-page {
    width: 100%;
    max-width: 1100px;
    padding: 32px;
}

/* ===========================
   Forms
=========================== */

.form-control,
.form-select,
textarea,
input,
select {
    min-height: 42px;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark textarea,
body.theme-dark input,
body.theme-dark select {
    background: #0f1628;
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: #f5f7ff;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus,
body.theme-dark textarea:focus,
body.theme-dark input:focus,
body.theme-dark select:focus {
    background: #101a30;
    color: #ffffff;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.2);
}

body.theme-light .form-control,
body.theme-light .form-select,
body.theme-light textarea,
body.theme-light input,
body.theme-light select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #111827;
}

.form-page .mb-3 {
    margin-bottom: 1.25rem !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Buttons
=========================== */

.btn {
    border-radius: 10px;
    font-weight: 700;
    transition: all .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #00e5ff, #4f7cff);
    border: 1px solid rgba(0, 229, 255, .4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 229, 255, .25);
}

.btn-primary:hover {
    color: #ffffff;
    box-shadow:
        0 0 18px rgba(0, 229, 255, .45),
        0 0 35px rgba(0, 229, 255, .20);
}

.btn-warning {
    background: linear-gradient(135deg, #ff2bd6, #9d4edd);
    border: 1px solid rgba(255, 43, 214, .4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 43, 214, .25);
}

.btn-warning:hover {
    color: #ffffff;
    box-shadow:
        0 0 18px rgba(255, 43, 214, .45),
        0 0 35px rgba(255, 43, 214, .2);
}

.btn-info {
    background: linear-gradient(135deg, #00d4ff, #00b7ff);
    border: 1px solid rgba(0, 212, 255, .35);
    color: #ffffff;
}

.btn-info:hover {
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 212, 255, .45);
}

.btn-success {
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    border: none;
    color: #081018;
    font-weight: 800;
}

.btn-danger {
    background: linear-gradient(135deg, #ff3366, #ff0055);
    border: none;
    color: #ffffff;
}

.btn-danger:hover {
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 51, 102, .45);
}

.btn-secondary {
    background: #64748b;
    border: none;
    color: #ffffff;
}

/* ===========================
   Tables
=========================== */

body.theme-dark table {
    color: #f5f7ff;
    background: transparent;
}

body.theme-dark .table {
    --bs-table-bg: transparent;
    --bs-table-color: #f5f7ff;
    --bs-table-border-color: rgba(0, 229, 255, .15);
}

body.theme-dark .table th {
    background: rgba(0, 229, 255, .08);
    color: var(--neon-blue);
    border-color: rgba(0, 229, 255, .2);
}

body.theme-dark .table td {
    background: rgba(21, 27, 46, .9);
    border-color: rgba(0, 229, 255, .1);
    color: #f5f7ff;
}

body.theme-dark .table tbody tr:hover td {
    background: rgba(0, 229, 255, .08);
}

body.theme-light .table th {
    color: #111827;
    background: #f1f5f9;
}

body.theme-light .table td {
    color: #111827;
}

/* ===========================
   Risk Badges
=========================== */

.low-risk,
.medium-risk,
.high-risk {
    display: inline-block;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}

.low-risk {
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    color: #081018;
    box-shadow: 0 0 10px rgba(0, 255, 157, .35);
}

.medium-risk {
    background: linear-gradient(135deg, #ffd54f, #ff9800);
    color: #111111;
    box-shadow: 0 0 10px rgba(255, 193, 7, .35);
}

.high-risk {
    background: linear-gradient(135deg, #ff3366, #ff006e);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 51, 102, .35);
}

/* ===========================
   Dashboard
=========================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-panel {
    position: sticky;
    top: 40px;
}

.dashboard-panel h5 {
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
}

.dashboard-stats {
    max-width: 1200px;
}

.dashboard-stats .col-xl-3,
.dashboard-stats .col-lg-4,
.dashboard-stats .col-md-6,
.dashboard-stats .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.dashboard-chart {
    width: 100%;
    max-width: 900px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, .18),
        rgba(255, 43, 214, .12)
    );

    opacity: .8;
    pointer-events: none;
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
}

.stat-card h5 {
    color: var(--neon-blue);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stat-card h2 {
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 0 14px rgba(0, 229, 255, .35);
}

/* ===========================
   Work Pages
=========================== */

.work-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
}

.work-main {
    min-width: 0;
}

.work-panel {
    position: sticky;
    top: 40px;
}

.work-panel h5 {
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 1100px) {
    .work-layout,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .work-panel,
    .dashboard-panel {
        position: static;
    }

    .dashboard-stats .col-xl-3,
    .dashboard-stats .col-lg-4,
    .dashboard-stats .col-md-6,
    .dashboard-stats .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .app-shell {
        flex-direction: column;
    }

    .app-main {
        margin-left: 0;
        padding: 24px;
    }

    .dashboard-stats .col-xl-3,
    .dashboard-stats .col-lg-4,
    .dashboard-stats .col-md-6,
    .dashboard-stats .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===========================
   Theme Text Colors
=========================== */

/* DARK MODE */

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark p,
body.theme-dark label,
body.theme-dark span,
body.theme-dark small,
body.theme-dark strong {
    color: #f5f7ff;
}

/* LIGHT MODE */

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6,
body.theme-light p,
body.theme-light label,
body.theme-light span,
body.theme-light small,
body.theme-light strong {
    color: #111827;
}

/* Force sidebar visibility in both themes */
.sidebar,
body.theme-dark .sidebar,
body.theme-light .sidebar {
    background: #0b1020 !important;
    color: #dbeafe !important;
}

.sidebar-brand,
.sidebar-brand span,
.sidebar-nav a,
.sidebar-section,
.sidebar-footer,
.theme-toggle,
.logout-link {
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar-brand {
    color: #ffffff !important;
}

.sidebar-nav a {
    color: #dbeafe !important;
}

.sidebar-section {
    color: #ff2bd6 !important;
}

.theme-toggle,
.logout-link {
    color: #ffffff !important;
}

.sidebar-brand{
    margin-bottom:40px;
    line-height:1;
}

.brand-top{
    font-size:30px;
    font-weight:800;
    letter-spacing:4px;
    color:white;
}

.brand-bottom{
    display:flex;
    align-items:center;
    gap:8px;

    margin-top:6px;

    font-size:18px;
    font-weight:700;
    letter-spacing:5px;

    background:linear-gradient(
        90deg,
        #00d9ff,
        #00cfff,
        #6d7cff,
        #ff2cc8
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;

    text-shadow:
        0 0 6px rgba(0,217,255,.18),
        0 0 12px rgba(255,44,200,.10);
}

.brand-infinity{
    font-size:24px;
    font-weight:900;

    background:linear-gradient(
        180deg,
        #00e5ff,
        #ff2cc8
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;

    filter:drop-shadow(0 0 4px rgba(0,217,255,.35));
}

.chart-card {
    background: rgba(21, 27, 46, 0.78);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 22px;
    padding: 30px;
    margin-top: 35px;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h2 {
    margin: 0;
}

.chart-subtitle {
    color: var(--neon-blue);
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
}

.chart-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    font-weight: 700;
    letter-spacing: 1px;
}

.legend-item.applied { color: #17d9ff; }
.legend-item.interview { color: #8b5cf6; }
.legend-item.rejected { color: #ff2da6; }
.legend-item.offer { color: #ffb703; }
.legend-item.accepted { color: #22c55e; }

.chart-wrapper {
    height: 420px;
}

body.theme-light .chart-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 180, 220, 0.22);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

body.theme-light .chart-header h2 {
    color: #111827;
}

body.theme-light .chart-subtitle {
    color: #0891b2;
}

.large-textarea{
    min-height:700px;
    height:700px;
    resize:vertical;

    padding:22px;

    font-size:15px;
    line-height:1.7;

    vertical-align:top;
}

textarea.large-textarea {
    display: block;
}

.large-textarea::placeholder{
    color:#7d8698;
}

.form-page hr{
    opacity:.15;
    margin:2rem 0;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:28px;
}

.full-width{
    grid-column:1 / -1;
}

.helper-text {
    color: #9ca3af;
}

body.theme-dark .helper-text {
    color: #cbd5e1;
}

body.theme-light .helper-text {
    color: #4b5563;
}

/* ---------- Input Placeholder ---------- */

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
    color: #8ea3c7;
    opacity: 1;
}

.theme-light input::placeholder,
.theme-light textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Fix checkbox sizing */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    min-height: 1.1em;
    margin-top: 0.25em;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-select {
    height: 54px;
    border-radius: 10px;
    background-color: #151d33;
    color: #ffffff;
    border: 1px solid #0ea5e9;
}

.form-select:focus {
    background-color: #151d33;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.15);
}

.visa-toggle .btn {
    padding: 12px;
    border-color: rgba(0, 229, 255, 0.35);
}

.visa-toggle .btn-check:checked + .btn {
    background: linear-gradient(135deg, #00e5ff, #4f7cff);
    color: #ffffff;
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

/* ===========================
   Career Intelligence Filters
=========================== */

.report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-filters .btn {
    min-width: 110px;
}

body.theme-dark .btn-outline-info {
    color: var(--neon-blue);
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.04);
}

body.theme-dark .btn-outline-info:hover {
    color: #ffffff;
    background: rgba(0, 229, 255, 0.14);
    border-color: var(--neon-blue);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

body.theme-light .btn-outline-info {
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.35);
}

body.theme-light .btn-outline-info:hover {
    color: #ffffff;
}

/* ===========================
   Career Intelligence Search
=========================== */

.report-search .input-group {
    width: 100%;
}

.report-search .form-control {
    min-height: 50px;
}

.report-search .btn {
    min-width: 100px;
}

@media (max-width: 760px) {
    .report-search .input-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .report-search .btn {
        width: 100%;
    }
}

/* =========================================
   APPLICATION DETAIL WORKSPACE
========================================= */

.application-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.application-eyebrow {
    margin: 0 0 8px;
    color: var(--neon-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.application-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.application-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.application-metric-card {
    padding: 20px;
    border: 1px solid rgba(23, 217, 255, 0.28);
    border-radius: 14px;
    background: rgba(17, 27, 49, 0.72);
}

.application-metric-card span {
    display: block;
    margin-bottom: 9px;
    color: #9ca3af;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.application-metric-card strong {
    font-size: 1.08rem;
}

.application-section-card {
    padding: 26px;
    margin-bottom: 24px;
    border: 1px solid rgba(23, 217, 255, 0.28);
    border-radius: 16px;
    background: rgba(17, 27, 49, 0.66);
}

.application-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.application-section-header h3 {
    margin: 0;
}

.application-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.application-info-item {
    padding: 17px;
    border: 1px solid rgba(23, 217, 255, 0.18);
    border-radius: 11px;
}

.application-info-item span {
    display: block;
    margin-bottom: 7px;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.application-info-item a {
    color: var(--neon-blue);
    font-weight: 700;
    text-decoration: none;
}

.application-info-item a:hover {
    text-decoration: underline;
}

.application-notes {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.application-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.application-report-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(23, 217, 255, 0.22);
    border-radius: 12px;
}

.application-report-card h4 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.application-empty-state {
    padding: 24px;
    border: 1px dashed rgba(23, 217, 255, 0.3);
    border-radius: 12px;
}

.application-timeline {
    position: relative;
}

.application-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    padding-bottom: 22px;
}

.application-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: rgba(23, 217, 255, 0.25);
}

.application-timeline-marker {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 13px rgba(23, 217, 255, 0.45);
}

body.theme-light .application-metric-card,
body.theme-light .application-section-card {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(14, 165, 233, 0.22);
}

body.theme-light .application-info-item,
body.theme-light .application-report-card {
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(14, 165, 233, 0.18);
}

body.theme-light .application-metric-card span,
body.theme-light .application-info-item span {
    color: #64748b;
}

@media (max-width: 1100px) {
    .application-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .application-report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .application-detail-header {
        flex-direction: column;
    }

    .application-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .application-header-actions .btn {
        width: 100%;
    }

    .application-metrics,
    .application-info-grid {
        grid-template-columns: 1fr;
    }

    .application-report-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-report-card .btn {
        width: 100%;
    }
}

/* =========================================
   COMPANY INTELLIGENCE
========================================= */

.company-intelligence-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.company-signal-card {
    display: block;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(23, 217, 255, 0.22);
    border-radius: 14px;
    background: rgba(17, 27, 49, 0.62);
    text-align: left;
}

.company-signal-card h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    text-align: left;
}

.company-signal-card.positive {
    border-color: rgba(34, 197, 94, 0.38);
}

.company-signal-card.warning {
    border-color: rgba(255, 183, 3, 0.42);
}

.company-signal-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;

    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.65;
    text-align: left;
}

body.theme-light .company-signal-card {
    background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
    .company-intelligence-metrics,
    .company-intelligence-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   APPLICATION STATUS BADGES
========================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.status-applied {
    color: #17d9ff;
    background: rgba(23, 217, 255, 0.12);
    border: 1px solid rgba(23, 217, 255, 0.35);
}

.status-hr-screen,
.status-technical-interview,
.status-manager-interview,
.status-final-interview {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.13);
    border: 1px solid rgba(139, 92, 246, 0.38);
}

.status-offer-received {
    color: #ffb703;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.4);
}

.status-accepted {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.38);
}

.status-rejected,
.status-withdrawn {
    color: #ff2d55;
    background: rgba(255, 45, 85, 0.12);
    border: 1px solid rgba(255, 45, 85, 0.38);
}

/* =========================================
   APPLICATION PIPELINE
========================================= */

.pipeline-track {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.pipeline-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
    color: #7f8ca3;
}

.pipeline-stage:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 36px);
    height: 2px;
    background: rgba(148, 163, 184, 0.22);
}

.pipeline-marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 50%;
    background: #111b31;
    font-weight: 800;
}

.pipeline-stage span {
    max-width: 120px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.pipeline-complete,
.pipeline-current {
    color: #ffffff;
}

.pipeline-complete .pipeline-marker {
    color: #08111f;
    background: #22c55e;
    border-color: #22c55e;
}

.pipeline-complete:not(:last-child)::after {
    background: rgba(34, 197, 94, 0.65);
}

.pipeline-current .pipeline-marker {
    color: #ffffff;
    background: linear-gradient(135deg, #17d9ff, #4f7cff);
    border-color: #17d9ff;
    box-shadow: 0 0 16px rgba(23, 217, 255, 0.35);
}

.pipeline-muted {
    opacity: 0.45;
}

.pipeline-terminal-status {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 45, 85, 0.35);
    border-radius: 10px;
    background: rgba(255, 45, 85, 0.08);
    color: #ff6b88;
}

body.theme-light .pipeline-marker {
    background: #ffffff;
}

@media (max-width: 1100px) {
    .pipeline-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 24px;
    }

    .pipeline-stage::after {
        display: none;
    }
}

@media (max-width: 650px) {
    .pipeline-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   APPLICATION READINESS
========================================= */

.readiness-score {
    display: grid;
    place-items: center;
    min-width: 76px;
    min-height: 52px;
    padding: 8px 14px;
    border: 1px solid rgba(23, 217, 255, 0.42);
    border-radius: 13px;
    background: rgba(23, 217, 255, 0.08);
    color: #17d9ff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 0 14px rgba(23, 217, 255, 0.12);
}

.readiness-progress {
    width: 100%;
    height: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.readiness-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #17d9ff,
        #8b5cf6,
        #ff2da6
    );
    box-shadow: 0 0 15px rgba(23, 217, 255, 0.3);
    transition: width 0.45s ease;
}

.readiness-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.readiness-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 11px;
    color: #8d9bb2;
    background: rgba(17, 27, 49, 0.42);
}

.readiness-item.complete {
    color: #dfffea;
    border-color: rgba(34, 197, 94, 0.36);
    background: rgba(34, 197, 94, 0.08);
}

.readiness-icon {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 900;
}

.readiness-item.complete .readiness-icon {
    color: #22c55e;
}

.readiness-recommendation {
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 4px solid #17d9ff;
    border-radius: 8px;
    background: rgba(23, 217, 255, 0.07);
    line-height: 1.65;
}

body.theme-light .readiness-item {
    color: #64748b;
    background: rgba(255, 255, 255, 0.55);
}

body.theme-light .readiness-item.complete {
    color: #166534;
    background: rgba(34, 197, 94, 0.08);
}

body.theme-light .readiness-recommendation {
    background: rgba(14, 165, 233, 0.08);
}

@media (max-width: 760px) {
    .readiness-checklist {
        grid-template-columns: 1fr;
    }

    .readiness-score {
        min-width: 68px;
    }
}

/* =========================================
   APPLICATION INTELLIGENCE SUMMARY
========================================= */

.application-summary-list {
    display: grid;
    gap: 12px;
}

.application-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid rgba(23, 217, 255, 0.2);
    border-radius: 11px;
    background: rgba(17, 27, 49, 0.46);
    line-height: 1.6;
}

.application-summary-marker {
    flex: 0 0 auto;
    color: #17d9ff;
    font-weight: 900;
}

body.theme-light .application-summary-item {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(14, 165, 233, 0.2);
}

/* =========================================
   APPLICATION QUICK ACTIONS
========================================= */

.quick-actions-card .card-body {
    display: grid;
    gap: 10px;
}

.quick-actions-card h5,
.quick-actions-card .helper-text {
    margin-bottom: 0;
}

.quick-actions-card form {
    margin: 0;
}

.quick-action-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 183, 3, 0.32);
    border-radius: 10px;
    background: rgba(255, 183, 3, 0.08);
    color: #ffca3a;
    font-size: 0.9rem;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.quick-action-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(255, 183, 3, 0.62);
    background: rgba(255, 183, 3, 0.15);
    box-shadow: 0 0 13px rgba(255, 183, 3, 0.14);
}

.quick-action-link.complete {
    color: #dfffea;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.09);
}

.quick-action-link.complete:hover {
    border-color: rgba(34, 197, 94, 0.68);
    background: rgba(34, 197, 94, 0.16);
    box-shadow: 0 0 13px rgba(34, 197, 94, 0.16);
}

.quick-action-button {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.quick-action-status {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 900;
}

.quick-action-link.complete .quick-action-status {
    color: #22c55e;
}

body.theme-light .quick-action-link {
    color: #a16207;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

body.theme-light .quick-action-link.complete {
    color: #166534;
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.32);
}

.alert-warning {
    background: #f8e7a1;
    border: 1px solid #f1c40f;
    color: #1b1b1b !important;
}

.alert-warning * {
    color: #1b1b1b !important;
}

.alert-danger {
    background: #ffd7dc;
    border: 1px solid #ff6b81;
    color: #1b1b1b !important;
}

.alert-danger * {
    color: #1b1b1b !important;
}

/* ===========================
   AI Usage Card
=========================== */

.ai-usage-card{
    margin-bottom:20px;
    padding:14px;
    border-radius:12px;
    text-align:center;

    background:#181f29;
    border:1px solid rgba(23,217,255,.18);
}

.usage-plan{
    font-size:.70rem;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:#8aa5bb;
    margin-bottom:6px;
}

.usage-title{
    font-size:.82rem;
    color:#c8d6e5;
}

.usage-count{
    margin-top:6px;
    font-size:1.25rem;
    font-weight:700;
    color:#17d9ff;
}

.experience-level-option {
    position: relative;
    cursor: pointer;
}

.experience-level-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.experience-level-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.65rem 1rem;
    border: 1px solid #00d9ff;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.experience-level-option:hover
.experience-level-button {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.35);
}

.experience-level-checkbox:checked
+ .experience-level-button {
    background: linear-gradient(
        135deg,
        #00e5ff,
        #4d7cff
    );
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.45);
}

