:root {
    --dell-blue: #0076CE;
    --dell-blue-dark: #005A9E;
    --dell-blue-light: #E8F4FC;
    --success: #0F7B3A;
    --success-bg: #E8F5EC;
    --danger: #B42318;
    --danger-bg: #FDECEC;
    --warning: #9A6700;
    --warning-bg: #FFF7E6;
    --info: #0076CE;
    --info-bg: #E8F4FC;
    --secondary: #667085;
    --secondary-bg: #F2F4F7;
    --light: #F8F9FA;
    --dark: #101828;
    --text: #344054;
    --text-muted: #667085;
    --border: #E4E7EC;
    --border-strong: #D0D5DD;
    --surface: #FFFFFF;
    --surface-muted: #F9FAFB;
    --sidebar-bg: #0B1F33;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: rgba(255, 255, 255, 0.72);
    --sidebar-text-active: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--surface-muted);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

svg {
    fill: currentColor;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    background: var(--surface-muted);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) minmax(420px, 0.95fr);
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background:
        radial-gradient(circle at top right, rgba(0, 118, 206, 0.28), transparent 42%),
        linear-gradient(160deg, #0B1F33 0%, #0E2740 45%, var(--dell-blue-dark) 100%);
    color: rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.login-brand-logo {
    height: 34px;
    margin-bottom: 28px;
    filter: brightness(0) invert(1);
}

.login-brand-eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 14px;
}

.login-brand-title {
    font-size: 42px;
    line-height: 1.12;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 18px;
}

.login-brand-text {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 460px;
}

.login-brand-features {
    list-style: none;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.login-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 118, 206, 0.24);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: 14px;
    height: 14px;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--surface-muted);
}

.login-panel-inner {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.login-panel-header {
    margin-bottom: 28px;
}

.login-panel-eyebrow {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dell-blue);
    font-weight: 500;
    margin-bottom: 10px;
}

.login-panel-header h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-panel-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.login-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    font-size: 15px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: var(--surface);
    color: var(--dark);
}

.login-input-wrap input:focus {
    outline: none;
    border-color: var(--dell-blue);
    box-shadow: 0 0 0 4px rgba(0, 118, 206, 0.12);
}

.login-input-wrap input::placeholder {
    color: var(--text-muted);
}

.login-submit {
    margin-top: 4px;
    min-height: 48px;
    position: relative;
}

.login-submit.is-loading .login-submit-text {
    opacity: 0;
}

.login-submit-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    animation: none;
}

.login-submit.is-loading .login-submit-spinner {
    opacity: 1;
    animation: status-spin 0.85s linear infinite;
}

.login-panel-note {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--dell-blue);
    color: var(--surface);
}

.btn-primary:hover {
    background-color: var(--dell-blue-dark);
}

.btn-success {
    background-color: var(--success);
    color: var(--surface);
}

.btn-success:hover {
    background-color: #0A6330;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--surface);
}

.btn-danger:hover {
    background-color: #912018;
}

.btn-warning {
    background-color: var(--warning-bg);
    color: var(--warning);
    border-color: #F5D89A;
}

.btn-warning:hover {
    background-color: #FFEFC7;
}

.btn-secondary {
    background-color: var(--secondary-bg);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: #EAECF0;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    background-color: var(--surface-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface-muted);
    border-color: var(--border-strong);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-error {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: #F8C9C4;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success);
    border-color: #B8E0C5;
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning);
    border-color: #F5D89A;
}

.alert-info {
    background-color: var(--info-bg);
    color: var(--dell-blue-dark);
    border-color: #B8DCF2;
}

/* Admin App Shell */
.admin-body {
    background: var(--surface-muted);
}

.admin-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    padding: 28px 24px 24px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
    height: 28px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-product {
    color: var(--sidebar-text-active);
    font-size: 15px;
    font-weight: 500;
}

.sidebar-portal {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.sidebar-nav {
    padding: 24px 16px;
    flex: 1;
}

.sidebar-nav-label {
    display: block;
    padding: 0 12px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--sidebar-text-active);
}

.sidebar-link.active {
    background: rgba(0, 118, 206, 0.22);
    color: var(--sidebar-text-active);
    box-shadow: inset 3px 0 0 var(--dell-blue);
}

.sidebar-footer {
    padding: 20px 16px 24px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 118, 206, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-user-name {
    color: var(--sidebar-text-active);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
}

.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-eyebrow {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dell-blue);
    font-weight: 500;
    margin-bottom: 4px;
}

.topbar-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.2;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-date {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-content {
    padding: 28px 32px 40px;
}

.section-heading h2,
.panel-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
}

.section-heading p,
.panel-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.metrics-section {
    margin-bottom: 24px;
}

.section-heading {
    margin-bottom: 18px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--dell-blue);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.metric-card.is-active {
    border-color: var(--dell-blue);
    box-shadow: 0 0 0 3px rgba(0, 118, 206, 0.1);
}

.metric-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.metric-value {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.metric-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.metric-card.tone-primary::before { background: var(--dell-blue); }
.metric-card.tone-info::before { background: var(--info); }
.metric-card.tone-warning::before { background: #D97706; }
.metric-card.tone-success::before { background: var(--success); }
.metric-card.tone-danger::before { background: var(--danger); }
.metric-card.tone-neutral::before { background: var(--secondary); }

.pipeline-section {
    margin-bottom: 24px;
}

.pipeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.pipeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pipeline-header h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.pipeline-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.pipeline-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--secondary-bg);
}

.pipeline-segment {
    height: 100%;
}

.pipeline-segment.tone-info { background: var(--info); }
.pipeline-segment.tone-warning { background: #D97706; }
.pipeline-segment.tone-success { background: var(--success); }
.pipeline-segment.tone-danger { background: var(--danger); }
.pipeline-segment.tone-neutral { background: var(--secondary); }

.pipeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.pipeline-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.tone-info { background: var(--info); }
.legend-dot.tone-warning { background: #D97706; }
.legend-dot.tone-success { background: var(--success); }
.legend-dot.tone-danger { background: var(--danger); }
.legend-dot.tone-neutral { background: var(--secondary); }

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.panel-toolbar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.toolbar-search {
    position: relative;
    flex: 1 1 320px;
}

.toolbar-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.toolbar-search input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
}

.toolbar-search input:focus {
    outline: none;
    border-color: var(--dell-blue);
    box-shadow: 0 0 0 4px rgba(0, 118, 206, 0.1);
}

.toolbar-select {
    min-width: 180px;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--dell-blue);
}

.sortable-th {
    white-space: nowrap;
    padding: 0;
    vertical-align: middle;
}

.data-table thead th {
    background: #EEF2F6;
    border-bottom: 2px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.data-table thead th.col-select,
.data-table thead th.col-action {
    padding: 14px 24px;
}

.sort-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sort-link:hover {
    background: rgba(0, 118, 206, 0.08);
    color: var(--dell-blue-dark);
}

.sort-link.is-active {
    color: var(--dell-blue-dark);
    background: var(--dell-blue-light);
    box-shadow: inset 0 -2px 0 var(--dell-blue);
}

.sort-label {
    line-height: 1.2;
}

.sort-icons {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.15s ease;
}

.sort-link:hover .sort-icons,
.sort-link.is-active .sort-icons {
    opacity: 1;
}

.sort-icon {
    width: 10px;
    height: 10px;
    color: var(--text-muted);
    transition: color 0.15s ease, transform 0.15s ease;
}

.sort-link:hover .sort-icon {
    color: var(--dell-blue);
}

.sort-icon.is-active {
    color: var(--dell-blue);
    transform: scale(1.08);
}

.sort-icon-up.is-active {
    color: var(--dell-blue-dark);
}

.sort-icon-down.is-active {
    color: var(--dell-blue-dark);
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table th {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: #FCFCFD;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table td {
    font-size: 14px;
    color: var(--text);
}

.text-muted {
    color: var(--text-muted);
}

.text-right {
    text-align: right;
}

.candidate-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dell-blue-light);
    color: var(--dell-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.candidate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.candidate-info strong {
    color: var(--dark);
    font-weight: 500;
}

.candidate-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.badge-success,
.status-pill.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #B8E0C5;
}

.badge-success i { background: var(--success); }

.badge-danger,
.status-pill.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #F8C9C4;
}

.badge-danger i { background: var(--danger); }

.badge-warning,
.status-pill.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #F5D89A;
}

.badge-warning i { background: #D97706; }

.badge-info,
.status-pill.badge-info {
    background: var(--info-bg);
    color: var(--dell-blue-dark);
    border-color: #B8DCF2;
}

.badge-info i { background: var(--info); }

.badge-secondary,
.status-pill.badge-secondary {
    background: var(--secondary-bg);
    color: var(--secondary);
    border-color: var(--border);
}

.badge-secondary i { background: var(--secondary); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
}

.table-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--dell-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.table-action svg {
    width: 16px;
    height: 16px;
}

.table-action:hover {
    color: var(--dell-blue-dark);
}

.panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
}

.pagination-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--dell-blue);
    color: var(--dell-blue);
}

.pagination-btn.is-active {
    background: var(--dell-blue);
    border-color: var(--dell-blue);
    color: var(--surface);
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

.empty-state {
    text-align: center;
    padding: 72px 24px;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-state-icon svg {
    width: 24px;
    height: 24px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Legacy dashboard/detail compatibility */
.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 28px;
}

.header-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
}

.header-title span {
    color: var(--text-muted);
    font-weight: 400;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user-name {
    font-size: 14px;
    color: var(--text-muted);
}

.header-user-name strong {
    color: var(--dark);
}

.main-content {
    flex: 1;
    padding: 28px 32px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.card-body {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    flex: 0 0 150px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.detail-value a {
    color: var(--dell-blue);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-actions .btn {
    justify-content: flex-start;
}

.current-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.current-status-label {
    font-size: 14px;
    color: var(--text-muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--dell-blue);
}

/* Document Card */
.document-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
    box-shadow: var(--shadow-sm);
}

.document-card-preview {
    flex-shrink: 0;
}

.document-file-icon {
    width: 72px;
    height: 88px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--dell-blue);
    box-shadow: var(--shadow-sm);
}

.document-file-icon svg {
    width: 28px;
    height: 28px;
}

.document-file-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.document-card-content {
    flex: 1;
    min-width: 0;
}

.document-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.document-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
    word-break: break-all;
}

.document-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.document-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.document-btn svg {
    width: 16px;
    height: 16px;
}

.document-btn {
    min-width: 160px;
}

.document-empty {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
}

.document-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-empty-icon svg {
    width: 20px;
    height: 20px;
}

.document-empty-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
}

.document-empty-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Application Detail Page */
.application-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--dell-blue);
}

.breadcrumb span {
    color: var(--border-strong);
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

.application-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
}

.application-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.application-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--dell-blue-light);
    color: var(--dell-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border);
}

.application-name {
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 6px;
}

.application-summary {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.application-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.application-contact a {
    color: var(--dell-blue);
    text-decoration: none;
}

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

.contact-divider {
    color: var(--border-strong);
}

.application-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    min-width: 220px;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-value {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.meta-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.application-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.application-main,
.application-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-body {
    padding: 22px 24px 24px;
}

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

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

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item dt {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-item dd {
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

.info-item dd a {
    color: var(--dell-blue);
    text-decoration: none;
}

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

.status-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.status-current-label {
    font-size: 13px;
    color: var(--text-muted);
}

.status-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-action {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    font-family: inherit;
}

.status-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.status-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-action-icon svg {
    width: 18px;
    height: 18px;
}

.status-action-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-action-copy strong {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.status-action-copy span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.status-action-info {
    border-color: #B8DCF2;
}

.status-action-info .status-action-icon {
    background: var(--info-bg);
    color: var(--dell-blue-dark);
}

.status-action-info:hover {
    border-color: var(--dell-blue);
}

.status-action-warning {
    border-color: #F5D89A;
}

.status-action-warning .status-action-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-action-warning:hover {
    border-color: #D97706;
}

.status-action-success {
    border-color: #B8E0C5;
}

.status-action-success .status-action-icon {
    background: var(--success-bg);
    color: var(--success);
}

.status-action-success:hover {
    border-color: var(--success);
}

.status-action-danger {
    border-color: #F8C9C4;
}

.status-action-danger .status-action-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-action-danger:hover {
    border-color: var(--danger);
}

.status-action-neutral {
    border-color: var(--border);
}

.status-action-neutral .status-action-icon {
    background: var(--secondary-bg);
    color: var(--secondary);
}

.status-action-neutral:hover {
    border-color: var(--secondary);
}

.status-action.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.status-action.is-submitting {
    opacity: 1;
    border-color: var(--dell-blue);
    box-shadow: 0 0 0 3px rgba(0, 118, 206, 0.12);
}

body.is-status-loading {
    overflow: hidden;
}

.status-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 31, 51, 0.42);
    backdrop-filter: blur(4px);
}

.status-loading-overlay[hidden] {
    display: none;
}

.status-loading-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.status-loading-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border: 3px solid var(--dell-blue-light);
    border-top-color: var(--dell-blue);
    border-radius: 50%;
    animation: status-spin 0.85s linear infinite;
}

.status-loading-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.status-loading-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes status-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal */
body.is-modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 31, 51, 0.52);
    backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal-dialog {
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon svg {
    width: 22px;
    height: 22px;
}

.modal-icon-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-body {
    padding: 20px 24px 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.modal-highlight {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-highlight strong {
    font-size: 16px;
    color: var(--dark);
}

.modal-warning {
    color: var(--danger);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
}

.modal-actions form {
    margin: 0;
}

/* Danger Zone */
.panel-danger {
    border-color: #F8C9C4;
}

.panel-danger .panel-header {
    background: #FFFBFB;
}

.panel-danger .panel-header h2 {
    color: var(--danger);
}

.danger-zone-copy {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 18px;
}

.danger-zone-note {
    margin-top: 8px;
    color: var(--danger);
    font-weight: 500;
}

/* Admin Users Page */
.metrics-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admins-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--dell-blue);
    box-shadow: 0 0 0 4px rgba(0, 118, 206, 0.1);
}

.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

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

.field-help {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.variables-panel {
    max-width: 760px;
}

.variables-form .form-grid {
    grid-template-columns: 1fr;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-action-form {
    display: inline;
}

.table-action-muted {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.table-action-muted:hover {
    color: var(--dell-blue-dark);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.col-select {
    width: 44px;
    text-align: center;
}

.col-status,
.col-action {
    width: 1%;
    white-space: nowrap;
}

.col-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--dell-blue);
}

.export-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.export-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.export-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.export-select-all input {
    width: 16px;
    height: 16px;
    accent-color: var(--dell-blue);
}

.export-selection-count {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.export-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1280px) {
    .metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        padding: 36px 28px;
    }

    .login-brand-title {
        font-size: 32px;
    }

    .login-brand-features {
        margin-top: 24px;
    }

    .login-brand-footer {
        margin-top: 28px;
    }

    .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .detail-grid,
    .application-layout {
        grid-template-columns: 1fr;
    }

    .application-hero {
        flex-direction: column;
    }

    .application-hero-meta {
        align-items: flex-start;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 20px;
        min-width: 0;
        width: 100%;
    }

    .meta-item {
        align-items: flex-start;
    }

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

    .admins-layout,
    .metrics-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-form .form-grid {
        grid-template-columns: 1fr;
    }

    .export-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .export-bar-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .export-selection-count {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .admin-topbar,
    .admin-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-search,
    .toolbar-select {
        width: 100%;
        min-width: 0;
    }

    .data-table th,
    .data-table td {
        padding: 14px 16px;
    }
}

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

    .login-panel {
        padding: 24px 16px;
    }

    .login-panel-inner {
        padding: 28px 22px;
    }

    .login-brand {
        padding: 28px 22px;
    }

    .document-card {
        flex-direction: column;
        align-items: stretch;
    }

    .document-card-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .document-btn {
        flex: 1 1 140px;
        min-width: 0;
    }
}
