:root {
    --app-font: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --app-bg: #f4f7fb;
    --app-surface: rgba(255, 255, 255, 0.94);
    --app-surface-strong: #ffffff;
    --app-border: #d9e5f2;
    --app-border-strong: #c5d6e8;
    --app-text: #102033;
    --app-text-soft: #3b4f68;
    --app-muted: #66778f;
    --app-primary: #0f4cb3;
    --app-primary-strong: #0d3f94;
    --app-primary-soft: #e0ecff;
    --app-secondary: #3b82f6;
    --app-success: #15803d;
    --app-success-soft: #dcfce7;
    --app-warning: #b45309;
    --app-warning-soft: #fef3c7;
    --app-danger: #b91c1c;
    --app-danger-soft: #fee2e2;
    --app-info: #0f766e;
    --app-info-soft: #ccfbf1;
    --app-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.07);
    --app-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.09);
    --app-shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.14);
    --app-radius-sm: 0.95rem;
    --app-radius-md: 1.25rem;
    --app-radius-lg: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--app-font);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 25%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 22%),
        var(--app-bg);
    color: var(--app-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a,
button,
.btn,
.nav-link,
.dropdown-item,
.card,
.notification-dropdown-item {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a {
    color: var(--app-primary);
    text-decoration: none;
}

a:hover {
    color: var(--app-primary-strong);
}

a.navbar-brand {
    white-space: nowrap;
    text-align: left;
    word-break: normal;
}

:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.24rem rgba(59, 130, 246, 0.22);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--app-text);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

h1,
.page-header h1,
.page-header h2,
.hero-strip h1,
.hero-strip h2 {
    font-size: clamp(1.95rem, 1.3rem + 1.6vw, 2.8rem);
    line-height: 1.08;
}

h3,
h4,
.section-title,
.form-section-title {
    font-size: clamp(1.05rem, 0.98rem + 0.28vw, 1.35rem);
    line-height: 1.2;
}

h5 {
    font-size: 1rem;
    line-height: 1.3;
}

p,
li,
td,
th,
label,
.form-text {
    color: var(--app-text-soft);
}

.text-muted,
.form-text,
.resume-meta,
.job-meta,
.small.text-muted {
    color: var(--app-muted) !important;
}

.app-container {
    max-width: 1280px;
}

.app-nav-container {
    max-width: 1500px;
}

.app-shell {
    flex: 1 0 auto;
    min-height: calc(100vh - 7rem);
    padding: 2rem 0 3rem;
}

.app-navbar {
    background: linear-gradient(135deg, rgba(11, 41, 96, 0.96), rgba(10, 119, 193, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.app-brand {
    gap: 0.9rem !important;
    margin-right: 2rem;
}

.brand-badge {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.app-brand-title {
    font-size: 1.04rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.app-brand-subtitle {
    margin-top: 0.16rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.01em;
}

.app-nav-panel {
    padding: 0.6rem 0;
    gap: 1rem;
}

.app-nav-list {
    gap: 0.3rem;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem 1rem !important;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 700;
    font-size: 0.93rem;
    white-space: nowrap;
}

.app-nav-link i {
    font-size: 0.96rem;
}

.app-nav-link:hover,
.app-nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.11);
}

.app-nav-link.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
}

.app-user-avatar {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.app-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    min-width: 0;
}

.app-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user-role {
    margin-top: 0.16rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.74);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-logout-btn {
    min-height: 2.65rem;
    padding-inline: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-header > div:first-child {
    max-width: 720px;
}

.page-header p {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.65;
}

.page-actions {
    display: inline-flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.page-header .btn,
.page-header .page-actions {
    display: inline-flex;
}

.hero-strip {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3d91, #0ea5e9);
    color: #fff;
    border-radius: 1.65rem;
    padding: 1.9rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 22px 54px rgba(15, 61, 145, 0.22);
}

.hero-strip::after {
    content: "";
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 0;
}

.hero-strip > * {
    position: relative;
    z-index: 1;
}

.hero-strip p {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 0.98rem;
}

.card {
    border: 1px solid rgba(217, 229, 242, 0.9);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-sm);
    background: var(--app-surface);
    backdrop-filter: blur(10px);
}

.section-card {
    padding: 1.55rem;
}

.soft-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
}

.job-card,
.dashboard-stat,
.notification-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.job-card:hover,
.dashboard-stat:hover,
.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md);
    border-color: rgba(168, 191, 220, 0.95);
}

.dashboard-stat {
    position: relative;
    overflow: hidden;
}

.dashboard-stat::after {
    content: "";
    position: absolute;
    inset: auto -24px -24px auto;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    background: linear-gradient(135deg, rgba(15, 61, 145, 0.12), rgba(11, 122, 209, 0.16));
    color: var(--app-primary-strong);
}

.score-badge {
    font-size: clamp(1.55rem, 1.3rem + 0.7vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--app-text);
}

.form-section-title,
.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--app-primary-strong);
}

.collection-item {
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
}

.company-logo,
.company-logo-sm {
    border-radius: 1rem;
    background: #eff6ff;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(205, 223, 242, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.company-logo {
    width: 64px;
    height: 64px;
}

.company-logo-sm {
    width: 48px;
    height: 48px;
}

.logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #fff;
    font-weight: 800;
}

.job-meta,
.resume-meta {
    font-size: 0.9rem;
    line-height: 1.55;
}

.job-skill-badge,
.badge-soft-primary,
.badge-soft-secondary,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.job-skill-badge,
.badge-soft-primary {
    background: #e0f2fe;
    color: #0f3d91;
}

.badge-soft-secondary {
    background: #eef2ff;
    color: #4338ca;
}

.badge-soft-success {
    background: var(--app-success-soft);
    color: var(--app-success);
}

.badge-soft-warning {
    background: var(--app-warning-soft);
    color: var(--app-warning);
}

.badge-soft-danger {
    background: var(--app-danger-soft);
    color: var(--app-danger);
}

.application-status,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.status-applied,
.status-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-underreview {
    background: #fef3c7;
    color: #b45309;
}

.status-shortlisted {
    background: #dcfce7;
    color: #15803d;
}

.status-rejected,
.status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.status-featured {
    background: #fef3c7;
    color: #a16207;
}

.filter-card {
    position: sticky;
    top: 7.35rem;
    align-self: flex-start;
    z-index: 5;
    max-height: calc(100vh - 8.6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.profile-progress {
    height: 0.85rem;
    border-radius: 999px;
    background: #dbeafe;
}

.profile-progress .progress-bar {
    border-radius: 999px;
}

.search-input {
    border-radius: 999px;
    padding-left: 1rem;
}

.btn {
    min-height: 2.9rem;
    padding: 0.68rem 1.1rem;
    border-radius: var(--app-radius-sm);
    font-weight: 700;
    border-width: 1px;
    box-shadow: none !important;
    white-space: nowrap;
}

.btn-sm {
    min-height: 2.35rem;
    padding: 0.46rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.btn i {
    margin-right: 0.42rem;
}

.btn i:only-child {
    margin-right: 0;
}

.rounded-pill-btn {
    border-radius: 999px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, #0d429d, #0b88cf);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #0f9f57, #22c55e);
    border-color: transparent;
    color: #fff;
}

.btn-success:hover,
.btn-success:focus {
    color: #fff;
    background: linear-gradient(135deg, #0b8a4b, #16a34a);
}

.btn-light {
    color: var(--app-text);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.84);
}

.btn-outline-primary {
    border-color: rgba(15, 76, 179, 0.24);
    color: var(--app-primary);
}

.btn-outline-secondary {
    border-color: rgba(102, 119, 143, 0.26);
    color: var(--app-text-soft);
}

.btn-outline-success {
    border-color: rgba(21, 128, 61, 0.24);
    color: var(--app-success);
}

.btn-outline-danger {
    border-color: rgba(185, 28, 28, 0.24);
    color: var(--app-danger);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.form-label {
    margin-bottom: 0.55rem;
    color: var(--app-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 3rem;
    border-radius: 1rem;
    border-color: var(--app-border);
    background: rgba(255, 255, 255, 0.94);
    color: var(--app-text);
    padding-inline: 0.95rem;
    box-shadow: none;
}

textarea.form-control {
    min-height: 7rem;
    padding-top: 0.9rem;
    resize: vertical;
}

input[type="date"].form-control {
    padding-right: 0.75rem;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 0.24rem rgba(59, 130, 246, 0.18);
}

.form-check {
    min-height: 2rem;
}

.form-check-input {
    margin-top: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
}

.text-danger.small,
.field-validation-error,
.validation-summary-errors,
.validation-summary-valid {
    font-size: 0.82rem !important;
}

.table-responsive {
    border-radius: var(--app-radius-md);
}

.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(244, 248, 255, 0.68);
}

.table > :not(caption) > * > * {
    padding: 1rem 0.95rem;
    border-bottom-color: rgba(217, 229, 242, 0.92);
    vertical-align: middle;
}

.table thead th {
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
    white-space: nowrap;
}

.table tbody tr:hover {
    background: rgba(239, 246, 255, 0.8);
}

.admin-jobs-table .job-title-cell {
    min-width: 16rem;
}

.admin-jobs-table .job-company-cell {
    min-width: 12rem;
}

.admin-jobs-table .status-cell {
    min-width: 10rem;
}

.job-meta-line {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: var(--app-muted);
}

.job-admin-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.65rem;
}

.job-admin-actions form {
    margin: 0;
}

.job-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.job-card-actions > form {
    margin: 0;
    display: inline-flex;
}

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border: 0;
    border-radius: var(--app-radius-md);
    padding: 1rem 1.1rem;
    box-shadow: var(--app-shadow-sm);
}

.app-alert .btn-close {
    margin: -0.1rem -0.1rem -0.1rem auto;
}

.app-alert-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.app-alert-content {
    min-width: 0;
}

.app-alert-title {
    font-weight: 800;
    color: inherit;
}

.app-alert-message {
    margin-top: 0.15rem;
    color: inherit;
}

.alert-success.app-alert {
    background: rgba(236, 253, 245, 0.98);
    color: #166534;
}

.alert-success .app-alert-icon {
    background: #d1fae5;
}

.alert-danger.app-alert {
    background: rgba(254, 242, 242, 0.98);
    color: #991b1b;
}

.alert-danger .app-alert-icon {
    background: #fee2e2;
}

.alert-warning.app-alert {
    background: rgba(255, 251, 235, 0.98);
    color: #92400e;
}

.alert-warning .app-alert-icon {
    background: #fde68a;
}

.alert-info.app-alert {
    background: rgba(236, 254, 255, 0.98);
    color: #155e75;
}

.alert-info .app-alert-icon {
    background: #cffafe;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
    padding: 2.2rem 1.5rem;
}

.empty-state-icon {
    width: 4.2rem;
    height: 4.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(15, 76, 179, 0.1), rgba(14, 165, 233, 0.18));
    color: var(--app-primary-strong);
    font-size: 1.45rem;
}

.empty-state-title {
    margin-bottom: 0;
    font-size: 1.18rem;
}

.empty-state-description {
    margin-bottom: 0;
    max-width: 34rem;
    color: var(--app-muted);
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.app-footer {
    border-top: 1px solid rgba(217, 229, 242, 0.92);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.app-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 1.35rem;
}

.app-footer-brand {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--app-text);
}

.app-footer-copy,
.app-footer-meta {
    color: var(--app-muted);
    font-size: 0.88rem;
}

.notification-trigger {
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-trigger:hover,
.notification-trigger:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.notification-count-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.05rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.notification-menu {
    width: min(390px, 92vw);
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--app-shadow-lg);
    margin-top: 0.9rem;
}

.notification-menu-header,
.notification-menu-footer {
    padding: 1rem 1.1rem;
    background: #fff;
}

.notification-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5edf7;
}

.notification-menu-footer {
    border-top: 1px solid #e5edf7;
    text-align: center;
}

.notification-menu-list {
    max-height: 360px;
    overflow-y: auto;
    background: #fbfdff;
}

.notification-dropdown-item {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef4fb;
}

.notification-dropdown-item:last-child {
    border-bottom: 0;
}

.notification-dropdown-item:hover {
    background: #eef6ff;
}

.notification-dropdown-item.is-unread {
    background: #f4f9ff;
}

.notification-dropdown-icon,
.notification-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(14, 165, 233, 0.18));
    color: #0f3d91;
    flex-shrink: 0;
}

.notification-dropdown-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notification-dropdown-title {
    font-weight: 700;
    color: #102033;
}

.notification-dropdown-message {
    font-size: 0.86rem;
    color: #5b6b81;
    margin-top: 0.15rem;
}

.notification-dropdown-time {
    font-size: 0.76rem;
    color: #7a8aa1;
    margin-top: 0.4rem;
}

.notification-empty-state {
    padding: 1.5rem 1.1rem;
    text-align: center;
}

.notification-summary-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    padding: 0.65rem 0.95rem;
}

.notification-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.notification-card {
    position: relative;
    border: 1px solid #e6eef8;
}

.notification-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
    align-self: flex-start;
}

.notification-card-actions .btn {
    flex: 0 0 auto;
}

.notification-unread {
    background: linear-gradient(180deg, rgba(243, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
    border-color: #cfe3fb;
}

.notification-type-chip {
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 800;
}

.notification-badge-jobs { background: #dbeafe; color: #1d4ed8; }
.notification-badge-resume { background: #ede9fe; color: #6d28d9; }
.notification-badge-status { background: #fef3c7; color: #b45309; }
.notification-badge-shortlisted { background: #dcfce7; color: #15803d; }
.notification-badge-rejected { background: #fee2e2; color: #b91c1c; }
.notification-badge-company { background: #cffafe; color: #0f766e; }
.notification-badge-profile { background: #e0e7ff; color: #4338ca; }
.notification-badge-highlight { background: #fde68a; color: #92400e; }
.notification-badge-general { background: #e2e8f0; color: #334155; }

.notification-empty-illustration {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(14, 165, 233, 0.18));
    color: #0f3d91;
    font-size: 1.4rem;
}

.ai-assistant-card {
    border: 1px solid #d9e8f6;
    border-radius: 1.4rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 248, 237, 0.92), rgba(237, 248, 255, 0.98));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.ai-assistant-header {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
}

.ai-icon-chip {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(14, 165, 233, 0.2));
    color: #0f3d91;
    font-size: 1.1rem;
}

.ai-title {
    margin-bottom: 0.15rem;
    font-size: 1rem;
    font-weight: 800;
    color: #102033;
}

.ai-helper-text {
    margin-bottom: 0;
    color: #5b6b81;
    font-size: 0.92rem;
}

.ai-unavailable-note {
    border: 1px dashed #cfdced;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    color: #5b6b81;
}

.ai-result-box {
    min-height: 7rem;
    border: 1px dashed #cbd9ea;
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.86);
}

.ai-result-box.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8aa1;
}

.ai-output-text {
    white-space: pre-line;
    color: #102033;
    line-height: 1.7;
}

.ai-suggestion-list {
    margin-bottom: 0;
    padding-left: 1.1rem;
    color: #102033;
}

.ai-suggestion-list li + li {
    margin-top: 0.55rem;
}

.ai-inline-alert:empty {
    display: none;
}

.ai-modal .modal-content {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.ai-modal .modal-header {
    border-bottom: 1px solid #e6eef8;
    background: linear-gradient(135deg, rgba(255, 248, 237, 0.92), rgba(237, 248, 255, 0.98));
}

.ai-modal .modal-footer {
    border-top: 1px solid #e6eef8;
}

.ai-textarea {
    min-height: 18rem;
    resize: vertical;
    white-space: pre-wrap;
}

.ai-mini-note {
    font-size: 0.82rem;
    color: #6b7a90;
}

.ai-panel-stack {
    display: grid;
    gap: 1rem;
}

.auth-shell {
    min-height: calc(100vh - 13rem);
    display: flex;
    align-items: center;
}

.auth-card {
    overflow: hidden;
}

.auth-credentials {
    border: 1px dashed var(--app-border-strong);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.75);
}

.preserve-linebreaks {
    white-space: pre-line;
}

.app-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

@media (min-width: 1200px) {
    .app-nav-list {
        flex-wrap: nowrap;
    }

    .app-nav-link {
        padding-inline: 0.85rem !important;
        font-size: 0.9rem;
    }

    .app-nav-actions {
        flex-wrap: nowrap;
        margin-left: 1rem;
    }

    .app-user-chip {
        max-width: 12rem;
        flex-shrink: 1;
    }
}

@media (max-width: 1199.98px) {
    .app-nav-panel {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1.35rem;
        background: rgba(6, 25, 63, 0.32);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .app-nav-list {
        gap: 0.45rem;
    }

    .app-nav-actions {
        margin-top: 1rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .filter-card {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        padding: 1.5rem 0 2.5rem;
    }

    .hero-strip,
    .section-card {
        padding: 1.3rem;
    }

    .page-header,
    .hero-strip .row {
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .app-brand-subtitle,
    .app-user-chip {
        display: none;
    }

    .page-header {
        align-items: stretch;
    }

    .page-header .btn,
    .page-header .page-actions,
    .empty-state-actions,
    .notification-filter-bar {
        width: 100%;
    }

    .page-header .btn,
    .empty-state-actions .btn,
    .notification-filter-bar .btn {
        justify-content: center;
    }

    .ai-assistant-header {
        flex-direction: column;
    }

    .app-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
