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

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.sidebar {
    position: fixed;
    width: 240px;
    height: 100vh;
    background: #111827;
    padding: 30px 20px;
    z-index: 2;
}

.sidebar h2 {
    color: #60a5fa;
    margin-bottom: 35px;
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
}

.sidebar a:hover {
    background: #263449;
    color: white;
    transform: translateX(3px);
}

.sidebar a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

.main {
    margin-left: 240px;
    padding: 40px;
    min-width: 0;
}

.main section {
    min-width: 0;
    scroll-margin-top: 16px;
}

.main > h1 {
    margin-bottom: 12px;
}

.subtitle,
main section > p {
    color: #94a3b8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.card {
    background: #1e293b;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #334155;
    transition: transform 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.stats .card:hover,
.recommendation-card:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
    box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
}

.card h2 {
    color: #60a5fa;
    font-size: 32px;
}

.card p {
    margin-top: 10px;
    color: #94a3b8;
}

main section {
    margin-top: 35px;
}

.main section > h2 {
    margin-bottom: 14px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading p {
    color: #94a3b8;
}

.recommend-form {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.recommend-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: white;
}

.recommend-form button {
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #60a5fa;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.recommend-form button:hover,
.secondary-button:hover,
.quick-add-form button:hover {
    background: #93c5fd;
    transform: translateY(-1px);
}

button {
    transition: background-color 0.18s ease, transform 0.18s ease,
        opacity 0.18s ease;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.skill-help {
    margin: 14px 0 9px;
    color: #94a3b8;
    font-size: 13px;
}

.skill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.skill-options button {
    padding: 7px 11px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #1e293b;
    color: #cbd5e1;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease,
        background-color 0.18s ease, transform 0.18s ease;
}

.skill-options button:hover {
    transform: translateY(-1px);
    border-color: #60a5fa;
    color: white;
}

.skill-options button.is-selected {
    border-color: #60a5fa;
    background: #60a5fa20;
    color: #93c5fd;
}

.secondary-button,
.quick-add-form button {
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #60a5fa;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.quick-add-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    margin: 20px 0;
    padding: 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

.quick-add-form h3,
.quick-add-form .form-message {
    grid-column: 1 / -1;
}

.quick-add-form label,
.application-filters label {
    display: grid;
    gap: 6px;
    color: #cbd5e1;
    font-size: 14px;
}

.quick-add-form input,
.quick-add-form select,
.application-filters input,
.application-filters select {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: white;
    font: inherit;
}

.quick-add-form .form-message {
    min-height: 1.5em;
    color: #c8f169;
}

.form-message:empty {
    display: none;
}

.application-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) auto;
    align-items: end;
    gap: 12px;
    margin: 24px 0 14px;
}

.text-button {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}

.text-button:hover {
    background: #263449;
}

.filter-help {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.status-chart {
    display: grid;
    gap: 14px;
    max-width: 800px;
    padding: 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

.status-chart-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
}

.status-chart-label,
.status-chart-count {
    color: #cbd5e1;
    font-size: 14px;
}

.status-chart-count {
    text-align: right;
}

.status-chart-track {
    height: 12px;
    overflow: hidden;
    background: #0f172a;
    border-radius: 999px;
}

.status-chart-bar {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-applied {
    background: #60a5fa;
}

.status-interview {
    background: #c8f169;
}

.status-selected {
    background: #34d399;
}

.status-rejected {
    background: #fb7185;
}

tbody tr {
    transition: background-color 0.18s ease;
}

tbody tr:hover {
    background: #263449;
}

#applicationList {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #334155;
    text-align: left;
}

th {
    color: #94a3b8;
    white-space: nowrap;
}

.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.recommendation-card h3 {
    margin-bottom: 10px;
}

.recommendation-card p + p {
    margin-top: 8px;
    color: #94a3b8;
}

.error {
    color: #ff9292;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .main > h1,
    .main > .subtitle,
    .main > section {
        animation: rise-in 0.45s both;
    }

    .main > .subtitle {
        animation-delay: 60ms;
    }

    .main > section:nth-of-type(1) {
        animation-delay: 100ms;
    }

    .main > section:nth-of-type(2) {
        animation-delay: 160ms;
    }

    .main > section:nth-of-type(3) {
        animation-delay: 220ms;
    }

    .main > section:nth-of-type(4) {
        animation-delay: 280ms;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   RESUME ANALYZER STYLES
   ============================================================ */
.resume-form-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 24px;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-row label {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    gap: 6px;
}

.form-row select,
.form-row input,
.job-search-grid input,
.job-search-grid select {
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.custom-role-container {
    flex: 1;
    min-width: 240px;
}

.resume-mode-switch {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.sub-tab {
    background: transparent;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 16px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sub-tab.is-active {
    background: #2563eb;
    border-color: #3b82f6;
    color: white;
}

.drop-zone {
    border: 2px dashed #475569;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #60a5fa;
    background: #1e293b;
}

.upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.drop-zone-text {
    color: #e2e8f0;
    font-size: 15px;
    margin-bottom: 4px;
}

.drop-zone-hint {
    color: #94a3b8;
    font-size: 12px;
}

.selected-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #3b82f6;
}

.file-badge {
    background: #10b981;
    color: #064e3b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.file-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 14px;
}

.remove-file-button {
    background: transparent;
    border: 1px solid #64748b;
    color: #cbd5e1;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.remove-file-button:hover {
    background: #334155;
    color: white;
}

.resume-textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
    color: white;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.resume-textarea:focus {
    outline: 2px solid #60a5fa;
}

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

.primary-button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.primary-button:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
}

/* Resume Results Card */
.resume-results {
    margin-top: 24px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ats-score-panel,
.ats-conversion {
    display: grid;
    gap: 18px;
    padding: 20px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
}

.ats-score-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ats-score-summary h4,
.ats-conversion h4 {
    margin-bottom: 6px;
    color: #f1f5f9;
}

.ats-score-summary p,
.ats-conversion p,
.ats-check p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
}

.ats-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.ats-check {
    padding: 12px;
    background: #1e293b;
    border-radius: 8px;
}

.ats-check-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #e2e8f0;
    font-size: 13px;
}

.ats-check-heading span {
    color: #93c5fd;
    white-space: nowrap;
}

.ats-check-track {
    height: 5px;
    margin: 9px 0;
    overflow: hidden;
    background: #334155;
    border-radius: 999px;
}

.ats-check-track span {
    display: block;
    height: 100%;
    background: #60a5fa;
    border-radius: inherit;
}

.ats-check p {
    font-size: 12px;
}

.ats-conversion {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.ats-version-panel:not([hidden]) {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
}

.ats-version-panel label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.ats-version-panel textarea {
    width: 100%;
    min-width: 0;
    padding: 14px;
    resize: vertical;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #e2e8f0;
    font: 13px/1.6 "Courier New", monospace;
}

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

.ats-version-actions span {
    color: #a7f3d0;
    font-size: 12px;
}

.resume-header-stats {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #334155;
    padding-bottom: 20px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #3b82f6;
    background: #0f172a;
}

.score-circle.score-high {
    border-color: #10b981;
    color: #34d399;
}

.score-circle.score-mid {
    border-color: #f59e0b;
    color: #fbbf24;
}

.score-circle.score-low {
    border-color: #ef4444;
    color: #f87171;
}

.score-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.resume-overview h3 {
    font-size: 22px;
    color: #f8fafc;
    margin-bottom: 6px;
}

.resume-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.meta-pill {
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.action-trigger-btn {
    background: #10b981;
    color: #064e3b;
    font-weight: 700;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-trigger-btn:hover {
    background: #34d399;
    transform: translateY(-1px);
}

.skills-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skills-col {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 18px;
}

.skills-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.skills-col.matched h4 {
    color: #34d399;
}

.skills-col.missing h4 {
    color: #f87171;
}

.skills-pill-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.skill-tag.tag-matched {
    background: #064e3b;
    color: #a7f3d0;
    border: 1px solid #059669;
}

.skill-tag.tag-missing {
    background: #451a1a;
    color: #fca5a5;
    border: 1px solid #dc2626;
}

.skill-tag.tag-extra {
    background: #1e293b;
    color: #93c5fd;
    border: 1px solid #3b82f6;
}

.ats-tips-container {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 20px;
}

.ats-tips-container h4 {
    color: #60a5fa;
    font-size: 16px;
    margin-bottom: 14px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-card {
    background: #1e293b;
    border-left: 4px solid #3b82f6;
    border-radius: 4px 8px 8px 4px;
    padding: 12px 16px;
}

.tip-card.tip-HighPriority {
    border-left-color: #f59e0b;
}

.tip-card.tip-Impact {
    border-left-color: #8b5cf6;
}

.tip-card.tip-Structure {
    border-left-color: #ec4899;
}

.tip-card.tip-Profiles {
    border-left-color: #06b6d4;
}

.tip-title {
    font-weight: 700;
    font-size: 14px;
    color: #f1f5f9;
    margin-bottom: 3px;
}

.tip-message {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ============================================================
   JOB SEARCH STYLES
   ============================================================ */
.job-search-form {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 20px;
    margin-top: 18px;
}

.job-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr) auto;
    gap: 14px;
    align-items: flex-end;
}

.job-search-grid label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    gap: 6px;
}

.search-btn-container button {
    height: 42px;
}

.platform-links-bar {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 10px;
}

.links-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.platform-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.platform-chip:hover {
    border-color: #60a5fa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.job-search-results {
    margin-top: 24px;
}

.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.job-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: #60a5fa;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.job-platform-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-remoteok {
    background: #7c3aed;
    color: white;
}

.platform-jobicy {
    background: #0284c7;
    color: white;
}

.platform-arbeitnow {
    background: #059669;
    color: white;
}

.platform-curated,
.platform-linkedin,
.platform-indeed {
    background: #d97706;
    color: white;
}

.job-card h3 {
    font-size: 17px;
    color: #f8fafc;
    margin-bottom: 4px;
    line-height: 1.3;
}

.job-company {
    font-size: 14px;
    color: #60a5fa;
    font-weight: 600;
}

.job-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.job-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-tag {
    background: #0f172a;
    border: 1px solid #334155;
    font-size: 11px;
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: 4px;
}

.job-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    border-top: 1px solid #334155;
    padding-top: 12px;
}

.job-apply-link {
    flex: 1;
    text-align: center;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.job-apply-link:hover {
    background: #3b82f6;
}

.job-track-btn {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    color: #34d399;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-track-btn:hover {
    background: #064e3b;
    border-color: #059669;
    color: white;
}

.job-track-btn.is-tracked {
    background: #064e3b;
    border-color: #059669;
    color: #a7f3d0;
    cursor: default;
}

.muted-note {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 30px;
    background: rgba(30, 41, 59, 0.25);
    border: 1px dashed #334155;
    border-radius: 10px;
}

@media(max-width: 1100px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .search-btn-container button {
        width: 100%;
    }

    .main {
        padding: 32px;
    }
}

@media(max-width: 850px) {
    .main section {
        scroll-margin-top: 80px;
    }

    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        padding: 10px 12px;
        border-bottom: 1px solid #334155;
        scrollbar-width: thin;
    }

    .sidebar h2 {
        flex: 0 0 auto;
        margin: 0 8px 0 0;
        font-size: 18px;
        white-space: nowrap;
    }

    .sidebar a {
        flex: 0 0 auto;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .main {
        margin-left: 0;
        padding: 28px;
    }

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

    .resume-header-stats {
        grid-template-columns: auto 1fr;
    }

    .resume-header-stats > div:last-child {
        grid-column: 1 / -1;
    }
}

@media(max-width: 520px) {
    .main {
        padding: 20px 16px;
    }

    .main > h1 {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.2;
    }

    .subtitle {
        font-size: 14px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 22px 0;
    }

    .stats .card {
        padding: 16px;
    }

    .stats .card h2 {
        font-size: 26px;
    }

    .stats .card p {
        font-size: 13px;
    }

    .recommend-form {
        flex-direction: column;
    }

    .recommend-form input,
    .recommend-form button {
        width: 100%;
        min-height: 46px;
        font-size: 16px;
    }

    .quick-add-form,
    .application-filters,
    .job-search-grid {
        grid-template-columns: 1fr;
    }

    .quick-add-form h3,
    .quick-add-form .form-message {
        grid-column: auto;
    }

    .quick-add-form {
        padding: 16px;
    }

    .quick-add-form input,
    .quick-add-form select,
    .application-filters input,
    .application-filters select,
    .form-row select,
    .form-row input,
    .job-search-grid input,
    .job-search-grid select,
    .resume-textarea {
        font-size: 16px;
    }

    .form-row label,
    .custom-role-container {
        min-width: 0;
        width: 100%;
    }

    .form-row select,
    .form-row input,
    .job-search-grid input,
    .job-search-grid select {
        width: 100%;
        min-width: 0;
    }

    .job-search-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .job-search-form {
        padding: 16px;
    }

    .quick-add-form button,
    .application-filters button,
    .primary-button,
    .secondary-button,
    .search-btn-container button {
        width: 100%;
        min-height: 44px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading > button {
        width: 100%;
    }

    .status-chart-row {
        grid-template-columns: 72px minmax(0, 1fr) 24px;
        gap: 8px;
    }

    .resume-header-stats,
    .skills-comparison-grid,
    .ats-conversion {
        grid-template-columns: 1fr;
    }

    .ats-score-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .resume-results,
    .resume-form-box {
        padding: 16px;
    }

    .resume-header-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resume-header-stats > div:last-child {
        grid-column: auto;
    }

    .resume-header-stats .score-circle {
        width: 88px;
        height: 88px;
    }

    .resume-overview h3 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .resume-mode-switch {
        flex-direction: column;
    }

    .sub-tab {
        min-height: 44px;
    }

    .drop-zone {
        padding: 22px 12px;
    }

    .selected-file-info {
        flex-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .ats-score-panel,
    .ats-conversion {
        padding: 16px;
    }

    .ats-conversion > button,
    .ats-version-actions > button {
        width: 100%;
    }

    .ats-version-panel textarea {
        min-height: 220px;
        font-size: 13px;
    }

    .job-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .job-card-actions {
        flex-direction: column;
    }

    .application-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    #applicationList {
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 11px;
        white-space: nowrap;
    }

    .sidebar a {
        padding: 9px 10px;
        font-size: 13px;
    }
}

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