/* Rjobs.net shared clay design layer. Loaded last so every surface uses one visual language. */
:root {
    --clay-bg: #eef3fb;
    --clay-surface: #f7f9fd;
    --clay-raised: 10px 10px 24px rgba(38, 66, 112, .13), -8px -8px 20px rgba(255, 255, 255, .92);
    --clay-soft: 5px 5px 13px rgba(38, 66, 112, .12), -5px -5px 12px rgba(255, 255, 255, .9);
    --clay-pressed: inset 4px 4px 9px rgba(38, 66, 112, .12), inset -4px -4px 9px rgba(255, 255, 255, .92);
    --clay-radius: 22px;
    --color-accent: #3b82f6;
    --color-accent-alt: #2563eb;
    --color-primary: #2563eb;
    --color-primary-alt: #1d4ed8;
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-text: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
}

[data-theme="light"] body { background: var(--clay-bg); }
[data-theme="dark"] {
    --clay-bg: #111827;
    --clay-surface: #1b2536;
    --clay-raised: 9px 9px 22px rgba(2, 6, 23, .55), -7px -7px 18px rgba(71, 85, 105, .2);
    --clay-soft: 5px 5px 12px rgba(2, 6, 23, .5), -4px -4px 10px rgba(71, 85, 105, .18);
    --clay-pressed: inset 4px 4px 9px rgba(2, 6, 23, .55), inset -4px -4px 9px rgba(71, 85, 105, .16);
}

body { letter-spacing: -.01em; }
p, .text-muted, .meta, .desc { line-height: 1.65; }
.container, .dash-content { width: 100%; }

.glass-card,
.card,
.panel,
.pricing-card,
.job-card,
.auth-card,
.dropdown-panel,
.modal-content {
    background: var(--clay-surface);
    border: 1px solid rgba(255,255,255,.58);
    border-radius: var(--clay-radius);
    box-shadow: var(--clay-raised);
    backdrop-filter: none;
}

.btn,
.icon-btn,
.company-logo-tile,
.stat-icon,
.profile-avatar {
    border: 0;
    box-shadow: var(--clay-soft);
}
.btn { border-radius: 14px; min-height: 42px; padding-inline: 18px; gap: 9px; }
.btn:hover, .icon-btn:hover { transform: translateY(-2px); }
.btn:active, .icon-btn:active { transform: translateY(1px); box-shadow: var(--clay-pressed); }

input, select, textarea, .dash-search input {
    background: var(--clay-surface);
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: var(--clay-pressed);
    min-height: 44px;
}
input:focus, select:focus, textarea:focus, .dash-search input:focus {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: var(--clay-pressed), 0 0 0 3px rgba(37, 99, 235, .1);
}

.dash-shell { background: var(--clay-bg); }
.dash-main { min-width: 0; width: 100%; }
.dash-sidebar {
    background: var(--clay-surface);
    border-right: 0;
    box-shadow: 8px 0 24px rgba(38, 66, 112, .09);
}
.dash-sidebar .logo { gap: 12px; font-size: 1.15rem; }
.dash-nav { padding: 4px; gap: 5px; }
.dash-nav-link { min-height: 44px; padding: 11px 14px; border-radius: 14px; }
.dash-nav-link:hover { background: var(--clay-surface); box-shadow: var(--clay-soft); }
.dash-nav-link.is-active {
    color: #fff;
    background: var(--gradient-brand);
    box-shadow: 5px 7px 15px rgba(37, 99, 235, .25), -3px -3px 9px rgba(255,255,255,.7);
}
.dash-nav-link.is-active::before { display: none; }
.dash-nav-link.is-active svg { opacity: 1; }
.dash-nav-label { margin-top: 8px; letter-spacing: .1em; }

.dash-topbar {
    margin: 14px 18px 0;
    border: 0;
    border-radius: 20px;
    background: color-mix(in srgb, var(--clay-surface) 92%, transparent);
    box-shadow: var(--clay-soft);
}
.dash-content { max-width: 1500px; margin: 0 auto; padding: 32px; }
.dash-page-head { margin-bottom: 28px; }
.dash-page-head h1 { font-size: clamp(1.65rem, 2vw, 2.2rem); line-height: 1.2; }
.stat-grid, .dash-grid-2 { gap: 22px; }
.stat-tile, .panel { padding: 24px; }
.stat-tile .stat-icon, .company-logo-tile { background: var(--clay-surface); box-shadow: var(--clay-soft); }
.stat-tile .stat-value { margin-top: 4px; }
.panel-head { padding-bottom: 15px; border-bottom: 1px solid var(--color-border); }
.dash-table { border-collapse: separate; border-spacing: 0 8px; }
.dash-table tbody tr { background: color-mix(in srgb, var(--clay-surface) 82%, var(--color-primary) 2%); }
.dash-table td { padding-block: 14px; }
.dash-table td:first-child { border-radius: 12px 0 0 12px; padding-left: 14px; }
.dash-table td:last-child { border-radius: 0 12px 12px 0; padding-right: 14px; }
.upgrade-card { border-radius: 18px; box-shadow: 6px 7px 16px rgba(37,99,235,.24); }
.mobile-bottom-nav { background: var(--clay-surface); border: 0; box-shadow: 0 -8px 24px rgba(38,66,112,.12); }

@media (max-width: 900px) {
    .dash-topbar { margin: 8px 10px 0; border-radius: 16px; }
    .dash-content { padding: 24px 16px 96px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .dash-page-head { align-items: stretch; }
    .dash-page-head > div:last-child { width: 100%; }
    .dash-page-head .btn { flex: 1; justify-content: center; }
    .stat-grid { gap: 14px; }
    .stat-tile { padding: 18px; }
    .stat-tile .stat-value { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
