/* ========================================
   Emerald Gradient Professional Resume Template
   Modern Design with Green Gradient Theme
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --theme-color: #10B981;
    --theme-light: #D1FAE5;
    --theme-dark: #047857;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Main Container
   ======================================== */
.resume-builder-container {
    max-width: 1500px;
    width: 96vw;
    height: 93vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 450px;
    background: linear-gradient(180deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 32px 28px;
    overflow-y: auto;
    border-right: 4px solid var(--theme-color);
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #065F46;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(16, 185, 129, 0.2);
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-dark);
    margin-top: 32px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--theme-light);
    border-radius: 8px;
    border-left: 4px solid var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    scroll-margin-top: 20px;
    transition: all 0.3s ease;
}

/* Smooth scrolling for form section */
.form-section {
    scroll-behavior: smooth;
}

/* Preview section hover and click effects */
.resume-section {
    transition: background-color 0.3s ease;
}

.resume-header {
    transition: background 0.3s ease;
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #065F46;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    border: 2px solid #A7F3D0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
    color: #1F2937;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #059669;
}

/* Form Row for Side-by-Side Inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========================================
   Color Theme Picker
   ======================================== */
.theme-color-section {
    background: #ffffff;
    border: 2px solid var(--theme-color);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 2px solid #A7F3D0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-input:hover {
    transform: scale(1.1);
}

.color-label {
    flex: 1;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.reset-color-btn {
    padding: 8px 16px;
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-color-btn:hover {
    background: var(--theme-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
}

/* ========================================
   Dynamic Item Sections
   ======================================== */
.experience-item,
.education-item,
.skill-item,
.certification-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid #D1FAE5;
    transition: all 0.3s ease;
}

.experience-item:hover,
.education-item:hover,
.skill-item:hover,
.certification-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* ========================================
   Add Button
   ======================================== */
.add-btn {
    width: 100%;
    padding: 14px;
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-btn:hover {
    background: var(--theme-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sample-data-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-header-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-header-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-header-success {
    background: white;
    color: var(--theme-color);
}

.btn-header-success:hover {
    background: #F0FDF4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Preview Container
   ======================================== */
.preview-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.resume-preview {
    width: 100%;
    max-width: 850px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

/* ========================================
   Resume Header (Top Gradient Section)
   ======================================== */
.resume-header {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-dark) 100%);
    color: white;
    padding: 50px 45px 40px;
    text-align: center;
    position: relative;
}

/* Profile Photo Circle */
.profile-photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name and Title */
.header-content {
    margin-bottom: 25px;
}

.resume-name {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.resume-title {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

/* Contact Bar */
.contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: white;
}

.contact-icon {
    font-size: 16px;
}

.contact-text {
    font-weight: 500;
}

/* ========================================
   Resume Body
   ======================================== */
.resume-body {
    padding: 40px 45px;
}

/* Resume Sections */
.resume-section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--theme-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 20px;
}

/* Professional Summary Section */
.summary-section {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--theme-color);
}

.summary-text {
    font-size: 15px;
    line-height: 1.7;
    color: #1F2937;
}

/* ========================================
   Two-Column Layout
   ======================================== */
.resume-columns {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Main Column (Left - Wider) */
.column-main {
    display: flex;
    flex-direction: column;
}

/* Sidebar Column (Right - Narrower) */
.column-sidebar {
    display: flex;
    flex-direction: column;
}

/* ========================================
   Experience Section
   ======================================== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.experience-entry {
    padding-left: 20px;
    border-left: 3px solid var(--theme-light);
    position: relative;
}

.experience-entry::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 13px;
    height: 13px;
    background: var(--theme-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--theme-color);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.exp-dates {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color);
    background: var(--theme-light);
    padding: 4px 12px;
    border-radius: 6px;
}

.exp-company {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 10px;
}

.exp-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-achievements li {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.exp-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--theme-color);
    font-weight: bold;
}

/* ========================================
   Education Section
   ======================================== */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.education-entry {
    padding: 18px;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: 10px;
    border-left: 4px solid var(--theme-color);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.edu-degree {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.edu-dates {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color);
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
}

.edu-institution {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 6px;
}

.edu-info {
    font-size: 13px;
    color: #6B7280;
    font-style: italic;
}

/* ========================================
   Skills Section
   ======================================== */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills-list li {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    background: var(--theme-light);
    padding: 10px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--theme-color);
    transition: all 0.2s ease;
}

.skills-list li:hover {
    background: #A7F3D0;
    transform: translateX(5px);
}

/* ========================================
   Certifications Section
   ======================================== */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-entry {
    padding: 14px;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: 8px;
    border-left: 4px solid var(--theme-color);
}

.cert-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.cert-year {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: var(--theme-dark);
}

/* ========================================
   Mobile Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .resume-builder-container {
        height: auto;
        min-height: 93vh;
    }
    
    .form-section {
        width: 400px;
    }
    
    .resume-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    body {
        padding: 10px;
        overflow: auto;
    }
    
    .resume-builder-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        border-radius: 16px;
    }
    
    .form-section {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 4px solid var(--theme-color);
    }
    
    .preview-section {
        width: 100%;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .preview-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-section h2 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .resume-name {
        font-size: 32px;
    }
    
    .resume-title {
        font-size: 18px;
    }
    
    .contact-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .resume-body {
        padding: 30px 25px;
    }
    
    .resume-header {
        padding: 40px 25px 30px;
    }
    
    .exp-header,
    .edu-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .resume-builder-container {
        border-radius: 12px;
    }
    
    .form-section {
        padding: 20px 16px;
    }
    
    .preview-container {
        padding: 15px;
    }
    
    .resume-name {
        font-size: 28px;
    }
    
    .resume-title {
        font-size: 16px;
    }
    
    .resume-body {
        padding: 20px 18px;
    }
    
    .btn-header-secondary,
    .btn-header-success {
        padding: 8px 14px;
        font-size: 12px;
    }
}
