/* AI Resume Generator Specific Styles */
body { font-family: 'Inter', sans-serif; background-color: #f7f9fc; color: #334155; }
.card { background: white; border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 1.5rem; margin-bottom: 1.5rem; }
.btn-primary { background-color: #1976D2; color: white; }
.btn-primary:hover { background-color: #1565C0; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #5a6268; }
button:disabled { background: #9ca3af; cursor: not-allowed; }
.field-label { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.tag { font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; font-weight: 500; }
.required { background-color: #fee2e2; color: #b91c1c; }
.optional { background-color: #e0e7ff; color: #4338ca; }
.form-step { display: none; animation: fadeIn 0.5s; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.progress-bar { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.progress-step { text-align: center; flex: 1; padding-bottom: 10px; border-bottom: 4px solid #e5e7eb; color: #6b7280; position: relative; font-size: 0.8rem; }
.progress-step.active { border-bottom-color: #1976D2; color: #1976D2; font-weight: 600; }
.progress-step .step-number { width: 30px; height: 30px; border-radius: 50%; background-color: #e5e7eb; color: #6b7280; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px auto; font-size: 0.8rem; }
.progress-step.active .step-number { background-color: #1976D2; color: white; }
#resume-preview-wrapper { background: white; padding: 0; width: 100%; border: 1px solid #ddd; }

/* ======== RESUME SPECIFIC STYLES - MODIFIED ======== */

/* Overall Resume Container */
.resume-container {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.4;
    font-size: 9.5pt;
    background: #fff;
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    overflow: hidden;
}

.resume-container .content-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-grow: 1;
}

/* Main Content Area (Right side) */
.resume-container .main-content {
    flex: 3;
    padding: 25px;
    box-sizing: border-box;
}

/* Sidebar Area (Left side) */
.resume-container .resume-sidebar {
    flex: 1;
    background-color: #f5f5f5;
    padding: 25px;
    color: #555;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    min-width: 200px;
    max-width: 250px;
}

/* Name and Title Header */
.resume-container .name-title-header {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1976D2;
}
.resume-container .name-title-header h1 {
    font-size: 28pt;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.1;
}
.resume-container .name-title-header .job-title {
    font-size: 12pt;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Contact Info in Sidebar */
.resume-container .contact-info-sidebar {
    padding-top: 0;
    padding-bottom: 15px;
    margin-top: 0;
}
.resume-container .contact-info-sidebar h3 {
    font-size: 10pt;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    margin-top: 0;
}
.resume-container .contact-info-sidebar p {
    font-size: 9.5pt;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    line-height: 1.2;
    word-break: break-word;
}
.resume-container .contact-info-sidebar p i {
    margin-right: 8px;
    color: #1976D2;
    font-size: 9.5pt;
    width: 15px;
    text-align: center;
}

/* General Resume Sections (both main content and sidebar) */
.resume-container .resume-section {
    margin-bottom: 25px;
}
.resume-container .resume-section:last-child {
    margin-bottom: 0;
}
.resume-container .resume-section h2 {
    font-size: 11.5pt;
    font-weight: 700;
    color: #1976D2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
    margin-bottom: 10px;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.resume-container .main-content .resume-section:first-child h2 {
    margin-top: 0;
    padding-top: 0;
}


/* List items in sidebar (Skills, Languages, Certifications) */
.resume-container .resume-sidebar .resume-section ul {
    list-style: none; /* Remove default browser bullets */
    padding: 0;
    margin: 0;
}
.resume-container .resume-sidebar .resume-section ul li {
    font-size: 9.5pt;
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px; /* Space for the custom bullet */
    line-height: 1.3;
}
/* Custom bullet point for sidebar lists */
.resume-container .resume-sidebar .resume-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1976D2;
    font-size: 10pt;
    line-height: 1;
    top: 0;
}

/* Bullet points for main content (Work Experience, Projects, Education Details if bulleted) */
.resume-container .main-content ul {
    list-style: none; /* Ensure default browser bullets are removed */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}
.resume-container .main-content ul li {
    font-size: 9.5pt;
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px; /* Space for the custom bullet */
    line-height: 1.3;
}
/* Custom bullet point for main content lists */
.resume-container .main-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1976D2;
    font-size: 10pt;
    line-height: 1;
    top: 0;
}


/* Styling for complex section items (e.g., Work Experience, Education, Projects) */
.resume-container .main-content .experience-item {
    margin-bottom: 20px;
}
.resume-container .main-content .experience-item:last-child {
    margin-bottom: 0;
}

.resume-container .main-content .experience-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}
.resume-container .main-content .experience-item h4 {
    font-size: 10pt;
    margin: 0;
    color: #333;
    font-weight: 600;
    flex-grow: 1;
    line-height: 1.2;
}
.resume-container .main-content .experience-item .item-meta {
    font-size: 9.5pt;
    color: #666;
    font-weight: normal;
    margin: 0;
    text-align: right;
    white-space: nowrap;
    padding-left: 10px;
    line-height: 1.2;
}
.resume-container .main-content .experience-item .item-meta span:first-child {
    font-weight: 500;
}
.resume-container .main-content .experience-item .item-meta .duration {
    margin-left: 5px;
}
/* For project descriptions or education details that are paragraphs */
.resume-container .main-content .experience-item .item-description {
    font-size: 9.5pt;
    line-height: 1.4;
    margin-bottom: 5px;
    margin-top: 5px;
}


/* Styling for Profile Summary & other direct paragraphs */
.resume-container .resume-section p {
    font-size: 9.5pt;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 0;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .resume-container .content-wrapper {
        flex-direction: column;
    }
    .resume-container .resume-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        min-width: unset;
        max-width: 100%;
    }
    .resume-container {
        margin: 10px;
        max-width: 100%;
        box-shadow: none;
        border: none;
    }
    .resume-container .main-content {
        padding: 15px;
    }
    .resume-container .resume-sidebar {
        padding: 15px;
    }
}