  /* === BASE & THEME === */
html { 
    scroll-behavior: smooth; 
}
body { 
    font-family: 'Plus Jakarta Sans"', sans-serif; 
    overflow-x: hidden; 
    background-color: var(--bg); 
    color: var(--text-primary);
}
body.modal-open { 
    overflow: hidden; 
}
:root {
    --bg: #0A0A0A;
    --content: #0E0E0E;
    --card: #1c1c1e;
    --card-light: #2c2c2e;
    --text-primary: #EAEAEA;
    --text-secondary: #888888;
    --border: #3a3a3c;
    --accent: #007AFF;
    --accent-hover: #3395FF;
    --red: #FF453A;
    --red-hover: #FF6F66;
}
* { 
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; 
}

/* === SCROLLBAR & ANIMATIONS === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4c; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease-out forwards; }

/* === NEW: CARD COMPONENT === */
/* This is the new "uniform" card style for all content */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === NEW: BUTTON COMPONENTS === */
/* Base button style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem; /* 8px */
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}
/* Primary button (for "Submit", "Save", "Add") */
.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
}
/* Secondary button (for "Cancel", "Upload") */
.btn-secondary {
    background-color: var(--card-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
    background-color: #3a3a3c;
    border-color: #4a4a4c;
}
/* Danger button (for "Delete", "Log Out") */
.btn-danger {
    background-color: var(--red);
    color: white;
}
.btn-danger:hover:not(:disabled) {
    background-color: var(--red-hover);
}
/* Icon button (for Header) */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0;
    width: 36px; /* 9*4 */
    height: 36px;
    background-color: transparent;
    border: 2px solid transparent;
}
.btn-icon:hover {
    border-color: var(--accent);
}
.btn-icon img, .btn-icon div {
    width: 32px;
    height: 32px;
}

/* === NEW: FORM COMPONENTS === */
.form-group {
    margin-bottom: 1.5rem; /* Space between form groups */
}
.form-label {
    display: block;
    margin-bottom: 0.5rem; /* 8px */
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    background-color: #0A0A0A; /* Match body bg */
    border: 1px solid var(--border);
    border-radius: 0.5rem; /* 8px */
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.form-input::placeholder, .form-textarea::placeholder {
    color: #555;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}
.form-input:disabled, .form-textarea:disabled {
    background-color: var(--card-light);
    opacity: 0.6;
}
/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.form-check-input {
    height: 1rem;
    width: 1rem;
    text-accent: var(--accent);
    background-color: #0A0A0A;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
}
.form-check-input:focus {
    ring: 0;
    outline: none;
}
.form-check-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* === JOB CARD (No change) === */
.job-card { background: rgba(28, 28, 30, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(16px); }
.job-card.active { border-left-width: 3px; border-left-color: var(--accent-blue); transform: translateX(2px); background-color: #2c2c2e; }
.job-card:hover { transform: scale(1.02); transition: transform 0.2s ease-in-out; }

/* === NAVIGATION (Styles we just added) === */
/* Apple-Style Header Pills */
.header-nav-pill {
    padding: 6px 14px;
    border-radius: 9999px;
    color: var(--text-secondary);
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
.header-nav-pill:hover {
    color: var(--text-primary);
    background-color: var(--border);
}
.header-nav-pill.active {
    color: #0A0A0A;
    background-color: #EAEAEA;
    font-weight: 600;
}
/* Riverside-Style Profile Tabs */
.riverside-nav-container { display: flex; justify-content: center; margin-bottom: 2.5rem; margin-top: -0.5rem; }
.riverside-nav { display: flex; gap: 1rem; padding: 0.75rem; background-color: #1c1c1e; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.profile-tab { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--text-secondary); width: 80px; padding: 0.5rem 0.25rem; border-radius: 8px; transition: all 0.2s ease; }
.profile-tab:hover { color: var(--text-primary); background-color: var(--border); }
.profile-tab .icon-wrapper { width: 56px; height: 56px; border-radius: 50%; background-color: #2c2c2e; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.profile-tab svg { width: 24px; height: 24px; stroke-width: 1.5; color: #EAEAEA; }
.profile-tab span { font-size: 0.8rem; font-weight: 500; }
.profile-tab.tab-active .icon-wrapper { background-color: var(--accent); border-color: var(--accent); }
.profile-tab.tab-active .icon-wrapper svg { color: #FFF; }
.profile-tab.tab-active span { color: var(--text-primary); }

/* === MODAL STYLES === */
.modal-overlay { 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(8px); 
    z-index: 50;
}
.modal-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem; /* 16px */
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    max-width: 28rem; /* 448px */
    width: 100%;
}
.modal-header {
    padding: 1.5rem;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    max-h: 70vh;
    overflow-y: auto;
}
.modal-footer {
    padding: 1rem 1.5rem;
    background-color: var(--content);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column-reverse; /* Mobile-first: buttons stack */
    gap: 0.75rem;
}
/* Desktop modal buttons */
@media (min-width: 640px) {
    .modal-footer {
        flex-direction: row;
        justify-content: flex-end;
    }
    .btn.sm\:w-auto {
        width: auto;
    }
}
.mobile-modal { transform: translateY(100%); transition: transform 0.3s ease-out; background-color: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-modal.is-open { transform: translateY(0); }

/* === OTHER === */
.readme-container h1, .readme-container h2, .readme-container h3 { font-family: 'Roboto Mono', monospace; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem; margin-top: 2rem; }
.readme-container p { margin-bottom: 1rem; line-height: 1.6; color: var(--text-secondary); }
.readme-container a { color: var(--accent); text-decoration: none; transition: opacity 0.2s ease; }
.readme-container a:hover { opacity: 0.8; }
.readme-container ul { list-style-position: inside; list-style-type: disc; margin-bottom: 1rem; padding-left: 1rem; color: var(--text-secondary); }
.readme-container strong { color: var(--text-primary); font-weight: 600; }
.feature-card { background-color: var(--card); border: 1px solid var(--border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 122, 255, 0.1); }
.status-badge { padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: capitalize; }
.status-applied { background-color: rgba(0, 122, 255, 0.15); color: #3395FF; }
.status-under_review { background-color: rgba(255, 159, 10, 0.15); color: #FF9F0A; }
.status-rejected { background-color: rgba(255, 69, 58, 0.15); color: #FF453A; }
.status-hired { background-color: rgba(52, 199, 89, 0.15); color: #34C759; }