/* ============================================================
   GetResumed v1.0 — Design System
   ============================================================ */

/* Variables */
:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  #dbeafe;
    --success:        #16a34a;
    --success-light:  #dcfce7;
    --danger:         #dc2626;
    --danger-light:   #fee2e2;
    --warning:        #f59e0b;
    --warning-light:  #fef3c7;
    --gray-50:        #f8fafc;
    --gray-100:       #f1f5f9;
    --gray-200:       #e2e8f0;
    --gray-300:       #cbd5e1;
    --gray-400:       #94a3b8;
    --gray-500:       #64748b;
    --gray-600:       #475569;
    --gray-700:       #334155;
    --gray-800:       #1e293b;
    --gray-900:       #0f172a;

    --font-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:      'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

    --radius-sm:      4px;
    --radius:         8px;
    --radius-lg:      12px;
    --radius-xl:      16px;

    --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
    --shadow:         0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:      0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: 0.875em; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--gray-900);
    color: white;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 2rem;
    max-width: calc(1200px + 240px);
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 1rem; }
}

/* ============================================================
   NAVBAR (public pages)
   ============================================================ */

.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */

.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-section {
    padding: 0.5rem 0;
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    padding: 0 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--gray-400);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    text-decoration: none;
}

.sidebar-link.active {
    background: rgba(37,99,235,0.15);
    color: white;
    border-left-color: var(--primary);
}

.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-800); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: white; }

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

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }

.btn-small { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-large { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full   { width: 100%; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: 1.25rem;
}

label, .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

input.locked,
textarea.locked {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: default;
    border-color: var(--gray-200);
}

textarea { resize: vertical; min-height: 120px; }

.form-help {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

input.error, select.error, textarea.error {
    border-color: var(--danger);
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 640px) {
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-applied       { background: var(--primary-light); color: #1e40af; }
.badge-no_response   { background: var(--gray-100); color: var(--gray-600); }
.badge-phone_screen  { background: var(--warning-light); color: #92400e; }
.badge-interviewing  { background: #fed7aa; color: #9a3412; }
.badge-final_round   { background: #fed7aa; color: #7c2d12; }
.badge-offer_received { background: var(--success-light); color: #166534; }
.badge-accepted      { background: var(--success-light); color: #14532d; }
.badge-rejected      { background: var(--danger-light); color: #991b1b; }
.badge-void          { background: var(--gray-100); color: var(--gray-400); text-decoration: line-through; }

.badge-free      { background: var(--gray-100); color: var(--gray-600); }
.badge-basic     { background: var(--primary-light); color: #1e40af; }
.badge-basicplus { background: #ede9fe; color: #5b21b6; }
.badge-pro       { background: #fef3c7; color: #92400e; }

/* ============================================================
   TABLES
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    white-space: nowrap;
}

td {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--gray-50); }

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-light); color: #166534; border-color: #bbf7d0; }
.alert-error   { background: var(--danger-light); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--primary-light); color: #1e40af; border-color: #bfdbfe; }

/* ============================================================
   PAGE HEADER
   ============================================================ */

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

.page-header-left h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.page-header-left p {
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================================
   STATS GRID
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================================
   QUICK ACTION CARDS
   ============================================================ */

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    cursor: pointer;
}

.action-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.action-card .action-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.action-card .action-title { font-weight: 700; font-size: 0.95rem; }
.action-card .action-desc  { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ============================================================
   RESUME DISPLAY (for viewing resume content)
   ============================================================ */

.resume-display {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 600px;
    overflow-y: auto;
}

.resume-display h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.resume-display h2 { font-size: 1.1rem; border-bottom: 2px solid var(--gray-800); padding-bottom: 0.25rem; margin: 1.25rem 0 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.resume-display h3 { font-size: 1rem; font-weight: bold; margin-bottom: 0.25rem; }
.resume-display p  { margin-bottom: 0.5rem; }
.resume-display ul { margin-left: 1.25rem; margin-bottom: 0.5rem; }
.resume-display li { margin-bottom: 0.2rem; }

.resume-display-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================================
   SCROLLABLE CONTENT BOXES (job view)
   ============================================================ */

.content-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.content-box-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-box-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.content-box-body {
    padding: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.modal-body {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ============================================================
   STEP INDICATOR (multi-step forms)
   ============================================================ */

.steps {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.step {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step.active .step-circle   { background: var(--primary); color: white; }
.step.complete .step-circle { background: var(--success); color: white; }

.step-label {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.step.active .step-label   { color: var(--primary); }
.step.complete .step-label { color: var(--success); }

.step-connector {
    height: 2px;
    width: 2rem;
    background: var(--gray-200);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* ============================================================
   HERO (landing page)
   ============================================================ */

.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    text-align: center;
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p  { color: var(--gray-600); font-size: 0.9rem; }

/* ============================================================
   PRICING SECTION
   ============================================================ */

.pricing {
    padding: 4rem 0;
    background: var(--gray-50);
}

.pricing h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    text-align: center;
}

.pricing-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.pricing-card ul li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ============================================================
   ERROR PAGES
   ============================================================ */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-content { max-width: 500px; }
.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-content p  { color: var(--gray-500); margin-bottom: 1.5rem; }
.error-actions    { display: flex; gap: 0.75rem; justify-content: center; }
.error-stack {
    background: var(--gray-900);
    color: #a3e635;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: left;
    font-size: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-muted    { color: var(--gray-500); }
.text-small    { font-size: 0.8rem; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-danger   { color: var(--danger); }
.text-success  { color: var(--success); }
.text-primary  { color: var(--primary); }
.font-bold     { font-weight: 700; }
.font-mono     { font-family: var(--font-mono); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-2         { gap: 0.5rem; }
.gap-3         { gap: 0.75rem; }
.gap-4         { gap: 1rem; }
.flex-wrap     { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-end   { justify-content: flex-end; }

.w-full { width: 100%; }

.hidden { display: none; }
.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;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

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

/* Overage warning banner */
.overage-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.5rem 0;
}

/* Tag/chip input */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    min-height: 42px;
    cursor: text;
}

.tags-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-light);
    color: #1e40af;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #1e40af;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}
.tag-remove:hover { opacity: 1; }

.tag-input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
    padding: 0.1rem 0.25rem;
    background: transparent;
}
/* ============================================================
   GetResumed v1.0 — Unit 2 CSS Additions
   Append these to the bottom of public/css/style.css
   ============================================================ */

/* ── form-control (input/textarea base) ── */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control.is-invalid {
    border-color: var(--danger);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2.25rem;
}
textarea.form-control { resize: vertical; }

/* ── badge-warning (missing from original) ── */
.badge-warning { background: var(--warning-light); color: #92400e; }

/* ── font-bold utility ── */
.font-bold { font-weight: 600; }

/* ── text-small utility ── */
.text-small { font-size: 0.8rem; }

/* ── text-muted utility ── */
.text-muted { color: var(--gray-500); }

/* ============================================================
   GetResumed v1.0 — Rich Text Editor (shared: jobs/new + resumes/detail)
   ============================================================ */

.editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.toolbar-group {
    display: flex;
    gap: 0.2rem;
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--gray-200);
    margin: 0 0.25rem;
}

.toolbar-btn {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    color: var(--gray-700);
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.1s, border-color 0.1s;
    min-width: 28px;
    text-align: center;
}

.toolbar-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.toolbar-btn:active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.resume-editor {
    min-height: 480px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius) var(--radius);
    background: white;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--gray-800);
    outline: none;
}

.resume-editor:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.resume-editor h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; }
.resume-editor h2 { font-size: 1rem; font-weight: 700; border-bottom: 1.5px solid var(--gray-800); padding-bottom: 0.15rem; margin: 1rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.resume-editor h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.resume-editor p  { margin-bottom: 0.3rem; }
.resume-editor ul { margin-left: 1.25rem; margin-bottom: 0.4rem; }
.resume-editor li { margin-bottom: 0.15rem; }
.resume-editor br { display: block; content: ''; margin: 0.2rem 0; }

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.25rem 0;
    font-size: 0.78rem;
    color: var(--gray-400);
}
