/* ========================================
   Azure Professional Executive Resume Template CSS
   Modern Blue Two-Column Design with Circular Photo
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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: 1600px;
    width: 96vw;
    height: 94vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 460px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    padding: 35px 30px;
    overflow-y: auto;
    border-right: 3px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #1B4F72;
    margin-top: 32px;
    margin-bottom: 18px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
    color: white;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #d1d8e0;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2E86C1;
    box-shadow: 0 0 0 4px rgba(46, 134, 193, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========================================
   Color Picker Section
   ======================================== */
.theme-color-section {
    margin-bottom: 24px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #d1d8e0;
}

.color-input {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.color-label {
    flex: 1;
    font-size: 13px;
    color: #555;
}

.reset-color-btn {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-color-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 10px;
    font-size: 13px;
    border: 2px dashed #2E86C1;
    background: #ebf5fb;
}

/* ========================================
   Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2E86C1 0%, #3498db 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 134, 193, 0.3);
}

.sample-data-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.sample-data-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

/* ========================================
   Dynamic Form Items
   ======================================== */
.experience-item,
.education-item,
.language-item,
.skill-item {
    padding: 20px;
    background: white;
    border: 2px solid #e8eef3;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #154360;
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-header-secondary {
    background: #e74c3c;
    color: white;
}

.btn-header-secondary:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.btn-header-success {
    background: #27ae60;
    color: white;
}

.btn-header-success:hover {
    background: #229954;
    transform: scale(1.05);
}

.preview-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #ecf0f1;
}

/* ========================================
   Resume Preview Main Layout
   ======================================== */
.resume-preview {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-height: 1100px;
}

.resume-layout {
    display: flex;
    flex-direction: row;
    min-height: 1100px;
}

/* ========================================
   Left Sidebar (Dark Blue Section)
   ======================================== */
.resume-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #1B4F72 0%, #154360 100%);
    padding: 40px 30px;
    color: white;
}

/* Profile Photo Section */
.profile-photo-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.profile-photo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #EBF5FB;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E86C1 0%, #3498db 100%);
}

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 80px;
    color: white;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #EBF5FB;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.profile-text {
    font-size: 13px;
    line-height: 1.7;
    color: #EBF5FB;
    text-align: justify;
}

/* Contact Section */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    font-size: 13px;
    line-height: 1.5;
    color: #EBF5FB;
    word-break: break-word;
}

/* ========================================
   Right Content Area (Light Background)
   ======================================== */
.resume-content {
    flex: 1;
    background: linear-gradient(180deg, #EBF5FB 0%, #D6EAF8 100%);
    padding: 50px 45px;
}

/* Header Section */
.resume-header {
    margin-bottom: 40px;
}

.resume-name {
    font-size: 42px;
    font-weight: 900;
    color: #1B4F72;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.resume-title {
    font-size: 22px;
    font-weight: 600;
    color: #2E86C1;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-divider {
    height: 4px;
    background: linear-gradient(90deg, #1B4F72 0%, #2E86C1 50%, transparent 100%);
    border-radius: 2px;
}

/* Content Sections */
.content-section {
    margin-bottom: 35px;
}

.content-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1B4F72;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #2E86C1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Education Section */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-entry {
    padding-left: 8px;
}

.edu-institution {
    font-size: 16px;
    font-weight: 800;
    color: #1B4F72;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edu-degree {
    font-size: 14px;
    color: #34495e;
    margin-bottom: 4px;
    font-style: italic;
    line-height: 1.5;
}

.edu-details {
    font-size: 13px;
    color: #5d6d7e;
    line-height: 1.5;
}

/* Languages Section */
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 8px;
}

.language-item {
    font-size: 14px;
    color: #34495e;
    line-height: 1.6;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 8px;
}

.skill-item {
    font-size: 14px;
    color: #34495e;
    line-height: 1.6;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-entry {
    padding-left: 8px;
}

.exp-company {
    font-size: 16px;
    font-weight: 800;
    color: #1B4F72;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-description {
    font-size: 14px;
    color: #34495e;
    line-height: 1.6;
}

/* ========================================
   Action Buttons Area
   ======================================== */
.action-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #d1d8e0;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2E86C1 0%, #1B4F72 100%);
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1B4F72 0%, #154360 100%);
}

/* ========================================
   Mobile Responsive Design
   ======================================== */
@media screen and (max-width: 1400px) {
    .resume-builder-container {
        width: 98vw;
        height: 96vh;
    }

    .form-section {
        width: 400px;
        padding: 30px 25px;
    }

    .form-section h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 1200px) {
    .resume-builder-container {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .form-section {
        width: 100%;
        max-height: 400px;
        border-right: none;
        border-bottom: 3px solid #e0e0e0;
    }

    .preview-section {
        height: 600px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        overflow: visible !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    .resume-builder-container {
        border-radius: 12px;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: auto;
    }

    .form-section {
        padding: 20px 15px;
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .preview-section {
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .preview-header {
        padding: 15px 20px;
    }

    .preview-header h2 {
        font-size: 18px;
    }

    .preview-container {
        padding: 15px;
    }

    .resume-layout {
        flex-direction: column;
    }

    .resume-sidebar {
        width: 100%;
        padding: 30px 20px;
    }

    .profile-photo-circle {
        width: 150px;
        height: 150px;
        border-width: 6px;
    }

    .photo-placeholder {
        font-size: 60px;
    }

    .resume-content {
        padding: 30px 20px;
    }

    .resume-name {
        font-size: 28px;
    }

    .resume-title {
        font-size: 16px;
    }

    .btn-header-secondary,
    .btn-header-success {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .form-section {
        padding: 15px 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .color-picker-wrapper {
        flex-wrap: wrap;
    }

    .preview-actions {
        flex-direction: column;
        gap: 8px;
    }

    .resume-name {
        font-size: 24px;
    }

    .resume-title {
        font-size: 14px;
    }

    .sidebar-title,
    .content-section-title {
        font-size: 16px;
    }

    .profile-photo-circle {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }

    .photo-placeholder {
        font-size: 50px;
    }
}

/* ========================================
   Print Styles (for PDF generation)
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-builder-container {
        box-shadow: none;
        border-radius: 0;
        height: auto;
    }

    .form-section,
    .preview-header,
    .preview-actions {
        display: none !important;
    }

    .preview-section {
        width: 100%;
        overflow: visible;
    }

    .preview-container {
        padding: 0;
        overflow: visible;
    }

    .resume-preview {
        box-shadow: none;
        max-width: 100%;
        page-break-inside: avoid;
    }

    .resume-layout {
        page-break-inside: avoid;
    }
}
