.main-content { margin-left: 0 !important; }
.dashboard-container { background: transparent !important; }
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 30%, #2563eb 60%, #3b82f6 100%);
    min-height: 100vh;
}

.ats-converter {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.ats-header {
    text-align: center;
    margin-bottom: 32px;
}
.ats-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.ats-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all 0.3s;
}
.step-dot.active {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
    transform: scale(1.3);
}
.step-dot.done {
    background: #10b981;
}

.step-panel {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}
.step-panel.active {
    display: block;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.card h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-zone-ats {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}
.upload-zone-ats:hover,
.upload-zone-ats.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.upload-zone-ats .uz-icon { font-size: 3rem; margin-bottom: 10px; }
.upload-zone-ats h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.upload-zone-ats p { color: #6b7280; font-size: 0.9rem; }
.upload-zone-ats .btn-select {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.upload-zone-ats .btn-select:hover { background: #2563eb; }

.file-loaded {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #d1fae5;
    border-radius: 10px;
    margin-top: 14px;
}
.file-loaded .fl-icon { font-size: 1.6rem; }
.file-loaded .fl-details { flex: 1; }
.file-loaded .fl-name { font-weight: 600; font-size: 0.95rem; color: #065f46; }
.file-loaded .fl-size { font-size: 0.82rem; color: #065f46; opacity: 0.8; }
.file-loaded .fl-remove {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.2s;
}
.file-loaded .fl-remove:hover { background: #dc2626; }

.progress-section {
    text-align: center;
    padding: 40px 0;
}
.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}
.progress-ring circle {
    fill: none;
    stroke-width: 6;
    transform: rotate(-90deg);
    transform-origin: center;
}
.progress-ring .ring-bg { stroke: #e5e7eb; }
.progress-ring .ring-fill {
    stroke: #3b82f6;
    stroke-linecap: round;
    stroke-dasharray: 339.3;
    stroke-dashoffset: 339.3;
    transition: stroke-dashoffset 0.4s ease;
}
.progress-text {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 8px;
}
.progress-sub {
    font-size: 0.9rem;
    color: #6b7280;
}

.review-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.review-form .full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s;
    color: #111827;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { resize: vertical; min-height: 70px; }

.exp-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}
.exp-card .exp-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exp-card .exp-remove:hover { background: #fecaca; }

.edu-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}
.edu-card .edu-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    margin-top: 8px;
}
.add-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.skills-input-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 44px;
    background: #fff;
}
.skills-input-area .skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1e40af;
}
.skills-input-area .skill-tag button {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
.skills-input-area .skill-tag button:hover { color: #2563eb; }
.skills-input-area input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 100px;
    padding: 4px;
}

.job-textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    line-height: 1.6;
}
.job-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.score-display {
    text-align: center;
    padding: 30px 0;
}
.score-circle-big {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-weight: 800;
}
.score-circle-big .score-num { font-size: 3rem; line-height: 1; }
.score-circle-big .score-label { font-size: 0.85rem; opacity: 0.9; margin-top: 2px; }

.score-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    text-align: left;
}
.score-col h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 10px;
}
.score-col li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    list-style: none;
}
.score-col li .sc-icon { flex-shrink: 0; font-size: 0.85rem; margin-top: 2px; }

.preview-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #f9fafb;
    min-height: 300px;
    overflow: auto;
}
.preview-box .cv-rendered {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-size: 0.88rem;
    line-height: 1.5;
}
.preview-box .cv-rendered h2 {
    font-size: 1.1rem;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 6px;
    margin: 18px 0 10px;
    color: #1e3a5f;
}
.preview-box .cv-rendered .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 10px;
}
.preview-box .cv-rendered .cv-contact span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.preview-box .cv-rendered .cv-entry {
    margin-bottom: 12px;
}
.preview-box .cv-rendered .cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.preview-box .cv-rendered .cv-entry-header strong { font-size: 0.95rem; }
.preview-box .cv-rendered .cv-entry-header span { font-size: 0.8rem; color: #6b7280; }
.preview-box .cv-rendered .cv-entry-sub { font-size: 0.85rem; color: #374151; font-style: italic; }
.preview-box .cv-rendered .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.preview-box .cv-rendered .cv-skill-chip {
    padding: 3px 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    font-size: 0.78rem;
    color: #1e40af;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #059669; }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #374151;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover { background: #1f2937; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: #eff6ff;
}

.action-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.loading-overlay.show { display: flex; }
.loading-box {
    background: #fff;
    border-radius: 14px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.loading-box .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
.download-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.download-card:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}
.download-card .dl-icon { font-size: 2rem; margin-bottom: 8px; }
.download-card h4 { font-size: 1rem; margin-bottom: 4px; }
.download-card p { font-size: 0.82rem; color: #6b7280; }

@media (max-width: 600px) {
    .ats-header h1 { font-size: 1.5rem; }
    .review-form { grid-template-columns: 1fr; }
    .score-details { grid-template-columns: 1fr; }
    .download-options { grid-template-columns: 1fr; }
    .steps-indicator { gap: 4px; }
    .card { padding: 18px; }
}
