@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- General Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-y: scroll;
}

:root {
    --primary-green: #15803d;
    --light-green-bg: #f0fdf4;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    --danger-red: #ef4444;
}

/* --- Application Container --- */
.app-container {
    max-width: 1500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    box-shadow: 0 0 20px rgba(0,0,0,0.02);
}

/* --- Header --- */
header {
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand i {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.header-brand-text h1 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.2;
}

.header-brand-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification {
    position: relative;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.notification .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-green);
    color: white;
    font-size: 0.6rem;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-dropdown img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-details strong {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.profile-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chevron-down-icon {
    font-size: 0.8rem;
    color: #6b7280;
}

/* --- Main Layout --- */
.main-wrapper {
    display: flex;
    flex: 1;
}

/* --- Sidebar --- */
.sidebar {
    width: 300px;
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border-light);
    background-color: #fafbfc;
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.sidebar-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary-green);
    font-size: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.progress-header span:last-child { color: var(--primary-green); }

.progress-bar-container {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-green);
    width: 100%;
}

.progress-percentage {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2.5rem;
}

/* Stepper */
.stepper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 25px;
    bottom: 35px;
    width: 2px;
    background-color: var(--border-light);
    z-index: 0;
}

.step-link {
    text-decoration: none;
    color: inherit;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    padding: 0.75rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.step.active {
    background-color: var(--light-green-bg);
    border: 1px solid #dcfce7;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    flex-shrink: 0;
}

.step-check-icon {
    font-size: 0.7rem;
}

.step.completed .step-number, .step.active .step-number {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.step-details h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.step.active .step-details h4 {
    color: var(--primary-green);
}

.step-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.help-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-light);
    margin-top: 1rem;
}

.help-icon {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.help-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.help-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-help {
    background: #fff;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

/* --- Main Content Area --- */
.content-area {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Page Header with Flex for Right Actions */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.page-header-text .step-indicator {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-header-text p {
    font-size: 1rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.template-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.template-select label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #fff;
    min-width: 220px;
}

.btn-outline-green {
    background: #fff;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.btn-outline-green:hover {
    background: var(--light-green-bg);
}

/* Utility Classes for Inline Styling replacement */
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 1rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.p-1-5 { padding: 1.5rem !important; }
.text-base { font-size: 1rem !important; }
.text-sm { font-size: 0.8rem !important; }
.w-full { width: 100%; }
.font-normal { font-weight: normal; }

/* --- Layout --- */
.step5-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.grid-left,
.grid-center {
    min-width: 0;
}

.grid-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.grid-right .alert-card,
.grid-right .btn-solid-green {
    grid-column: 1 / -1;
}

/* --- Premium Cards --- */
.premium-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.card-title-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-title-bar i {
    font-size: 1.1rem;
    color: var(--primary-green);
    background-color: var(--light-green-bg);
    padding: 8px;
    border-radius: 50%;
}

.card-title-text h3 {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.card-title-text p {
    color: var(--text-muted);
    margin: 0;
}

/* Left Column Specifics */
.btn-full-center {
    width: 100%;
    justify-content: center;
    height: 35px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1rem;
}

.lang-grid label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.lang-input {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.85rem;
    width: 100%;
}

.prefer-not-say-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Custom green checkbox */
.custom-check {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background-color: #fff;
}

.check-small {
    width: 16px !important;
    height: 16px !important;
}

.custom-check:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.custom-check:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.photo-setting-wrapper {
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.photo-setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 5px;
}

.photo-setting-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0 28px;
}

/* Right Column Specifics */
.ats-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ats-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gauge-container {
    position: relative;
    width: 150px;
    height: 85px;
    margin-bottom: 1rem;
}

/* Half Circle Gauge */
.gauge-svg {
    width: 150px;
    height: 85px;
}

.gauge-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
    stroke-linecap: round;
}

.gauge-val {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 125.6; /* Approx PI * 40 */
    stroke-dashoffset: 10; /* 92% fill */
}

.gauge-text {
    text-align: center;
    margin-top: -30px;
}

.gauge-text h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin: 0;
    line-height: 1;
}

.gauge-text p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.ats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ats-list li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.ats-list i {
    color: var(--primary-green);
}

.actions-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actions-stack button {
    width: 100%;
    justify-content: center;
}

.create-another-btn {
    margin-top: 5px;
    color: var(--primary-green);
}

.alert-card {
    background-color: var(--light-green-bg);
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-card i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-card div h5 {
    font-size: 0.9rem;
    color: var(--primary-green);
    margin: 0 0 4px 0;
}

.alert-card div p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.btn-solid-green {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-solid-green:hover {
    background-color: #126e32;
}

/* --- Center Column (PDF Viewer) --- */
.pdf-viewer {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    background-color: #fcfcfd;
}

.pdf-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pdf-controls .zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 4px 10px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.pdf-controls i {
    cursor: pointer;
    transition: color 0.2s;
}

.pdf-controls i:hover {
    color: var(--text-dark);
}

.pdf-body {
    padding: 1rem;
    background-color: #f3f4f6; /* Gray background behind the 'paper' */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    max-height: 800px;
}

.resume-page {
    background: #fff;
    width: 100%;
    max-width: 794px; /* Approx A4 width for preview */
    aspect-ratio: 210 / 297;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1.75rem;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    /* Styling specifically isolated for the mock resume */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    margin-top: auto;
}

/* --- Resume Inner Styling --- */
.res-header {
    display: flex;
    gap: 14px;
    margin-bottom: 1.5rem;
    position: relative;
}

.res-header::after {
    content: '';
    position: absolute;
    right: -2.5rem; top: -2.5rem; bottom: -2rem;
    width: 15px;
    background-color: #86efac; /* Light green accent edge */
}

.res-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.res-info h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.res-info h3 {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    color: var(--primary-green);
    font-weight: 600;
}

.res-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.7rem;
    color: #555;
}

.res-contact div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.res-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.2rem;
}

.res-section { margin-bottom: 1.5rem; }

.res-sec-title { 
    font-size: 0.8rem;
    font-weight: 700;
    color: #111; 
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.res-sec-title i { color: var(--primary-green); }

.res-text {
    font-size: 0.7rem;
    color: #444;
    line-height: 1.5;
}

.res-item { margin-bottom: 1rem; }

.res-item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.res-item-title { font-size: 0.75rem; font-weight: 700; color: #222; }
.res-item-date { font-size: 0.65rem; color: #666; }
.res-item-sub { font-size: 0.7rem; font-weight: 600; color: #444; margin-bottom: 4px; }
.loc-text { color: #666; font-weight: normal; }

.res-list {
    padding-left: 12px;
    margin: 0;
    font-size: 0.7rem;
    color: #444;
    line-height: 1.4;
}

.unstyled-list {
    list-style-type: none;
    padding-left: 0;
}

.res-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 0.7rem;
    color: #444;
}

.res-skills-grid div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.res-skills-grid div::before {
    content: '•';
    color: var(--primary-green);
}

.res-lang {
    font-size: 0.7rem;
    color: #444;
}

.res-lang span {
    font-weight: 600;
    color: #222;
}

/* --- Footer --- */
footer {
    padding: 1.5rem 3.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    margin-top: auto;
}

.btn-back {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secure-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-spacer {
    width: 110px;
}