/* ========================================
   Azure Corporate Professional Resume Template
   Modern, Clean, and Professional Design
   ======================================== */

* {
    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: 1450px;
    width: 96vw;
    height: 93vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 440px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 30px 26px;
    overflow-y: auto;
    border-right: 3px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 27px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 26px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2563EB;
    margin-top: 30px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ========================================
   Color Theme Picker
   ======================================== */
.theme-color-section {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-bottom: 10px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.color-input:hover {
    border-color: #2563EB;
    transform: scale(1.05);
}

.color-label {
    font-size: 13px;
    color: #64748b;
    flex: 1;
}

.reset-color-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #2563EB;
    background: #eff6ff;
    border: 2px solid #2563EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-color-btn:hover {
    background: #2563EB;
    color: white;
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.photo-upload-section input[type="file"] {
    padding: 10px;
    font-size: 13px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
}

/* ========================================
   Action Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2563EB;
    background: #eff6ff;
    border: 2px solid #2563EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-btn:hover {
    background: #2563EB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.action-buttons {
    margin-top: 30px;
    margin-bottom: 20px;
}

.sample-data-btn {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.sample-data-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Experience, Education, Skill Items */
.experience-item,
.education-item,
.skill-item,
.certification-item {
    padding: 18px;
    margin-bottom: 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
}

.experience-item:hover,
.education-item:hover,
.skill-item:hover,
.certification-item:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #2563EB;
}

.preview-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-header-secondary {
    color: #1e293b;
    background: white;
}

.btn-header-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-header-success {
    color: white;
    background: #2563EB;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-header-success:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.preview-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ========================================
   Resume Preview
   ======================================== */
.resume-preview {
    width: 800px;
    min-height: 1100px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    position: relative;
}

/* ========================================
   Resume Header
   ======================================== */
.resume-header {
    background: var(--theme-color, #2563EB);
    padding: 45px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.profile-photo-wrapper {
    flex-shrink: 0;
}

.profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo .photo-placeholder {
    font-size: 36px;
    color: #cbd5e1;
}

.header-info {
    flex: 1;
}

.resume-name {
    font-size: 38px;
    font-weight: 800;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.resume-title {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 0.3px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
}

.contact-icon {
    font-size: 14px;
    opacity: 0.9;
}

.contact-text {
    font-weight: 400;
}

/* ========================================
   Resume Sections
   ======================================== */
.resume-section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--theme-color, #2563EB);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--theme-color, #2563EB);
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Summary Section */
.summary-section {
    padding: 40px 50px 20px 50px;
}

.summary-text {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}

/* ========================================
   Two-Column Layout
   ======================================== */
.resume-columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 35px;
    padding: 0 50px 45px 50px;
}

.column-left {
    padding-right: 20px;
    border-right: 2px solid #e2e8f0;
}

.column-right {
    padding-left: 20px;
}

/* ========================================
   Experience Section
   ======================================== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.experience-entry {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--theme-color, #2563EB);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.exp-left {
    flex: 1;
}

.exp-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.exp-company {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color, #2563EB);
    margin: 0;
}

.exp-right {
    text-align: right;
    flex-shrink: 0;
}

.exp-dates {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.exp-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-achievements li {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.exp-achievements li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--theme-color, #2563EB);
    font-weight: bold;
}

/* ========================================
   Education Section
   ======================================== */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-entry {
    position: relative;
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--theme-color, #2563EB);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 15px;
}

.edu-left {
    flex: 1;
}

.edu-degree {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.edu-institution {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color, #2563EB);
    margin: 0;
}

.edu-right {
    text-align: right;
    flex-shrink: 0;
}

.edu-dates {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: white;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.edu-info {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-top: 8px;
}

/* ========================================
   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: 500;
    color: #334155;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--theme-color, #2563EB);
    transition: all 0.3s;
}

.skills-list li:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

/* ========================================
   Certifications Section
   ======================================== */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cert-entry {
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--theme-color, #2563EB);
}

.cert-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.cert-year {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media screen and (max-width: 1200px) {
    .resume-builder-container {
        width: 98vw;
        height: 95vh;
    }

    .form-section {
        width: 400px;
        padding: 25px 22px;
    }

    .resume-preview {
        width: 700px;
    }

    .resume-header {
        padding: 35px 40px;
    }

    .resume-name {
        font-size: 34px;
    }

    .resume-title {
        font-size: 18px;
    }

    .summary-section {
        padding: 35px 40px 15px 40px;
    }

    .resume-columns {
        padding: 0 40px 35px 40px;
        gap: 30px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media screen and (max-width: 968px) {
    body {
        padding: 10px;
        overflow: auto;
    }

    .resume-builder-container {
        width: 100%;
        height: auto;
        flex-direction: column;
        border-radius: 12px;
    }

    .form-section {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 3px solid #e2e8f0;
        padding: 25px 20px;
    }

    .form-section h2 {
        font-size: 24px;
    }

    .preview-section {
        width: 100%;
        min-height: 600px;
    }

    .preview-header {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .preview-header h2 {
        font-size: 18px;
    }

    .preview-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-header-secondary,
    .btn-header-success {
        flex: 1;
        padding: 10px 15px;
        font-size: 13px;
    }

    .preview-container {
        padding: 20px 15px;
    }

    .resume-preview {
        width: 100%;
        min-width: 320px;
    }

    /* Header - Stack vertically on mobile */
    .resume-header {
        flex-direction: column;
        padding: 30px 25px;
        gap: 20px;
    }

    .header-left {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .resume-name {
        font-size: 28px;
    }

    .resume-title {
        font-size: 16px;
    }

    .header-contact {
        width: 100%;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-item {
        font-size: 12px;
    }

    /* Summary */
    .summary-section {
        padding: 30px 25px 15px 25px;
    }

    .summary-text {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Columns - Stack vertically */
    .resume-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 25px 35px 25px;
    }

    .column-left {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 25px;
    }

    .column-right {
        padding-left: 0;
    }

    .section-title {
        font-size: 18px;
    }

    .section-divider {
        width: 50px;
        height: 3px;
    }

    /* Experience */
    .exp-header {
        flex-direction: column;
        gap: 8px;
    }

    .exp-right {
        text-align: left;
    }

    .exp-title {
        font-size: 15px;
    }

    .exp-company {
        font-size: 13px;
    }

    .exp-dates {
        font-size: 12px;
    }

    .exp-achievements li {
        font-size: 13px;
    }

    /* Education */
    .edu-header {
        flex-direction: column;
        gap: 8px;
    }

    .edu-right {
        text-align: left;
    }

    .edu-degree {
        font-size: 14px;
    }

    .edu-institution {
        font-size: 13px;
    }

    .edu-dates {
        font-size: 12px;
    }

    /* Skills */
    .skills-list li {
        font-size: 13px;
        padding: 9px 13px;
    }

    /* Certifications */
    .cert-name {
        font-size: 13px;
    }

    .cert-year {
        font-size: 11px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ======================================== */
@media screen and (max-width: 480px) {
    .form-section {
        padding: 20px 15px;
    }

    .form-section h2 {
        font-size: 22px;
    }

    .form-section-title {
        font-size: 13px;
        margin-top: 25px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .resume-header {
        padding: 25px 20px;
    }

    .resume-name {
        font-size: 24px;
    }

    .resume-title {
        font-size: 14px;
    }

    .summary-section {
        padding: 25px 20px 12px 20px;
    }

    .resume-columns {
        padding: 0 20px 30px 20px;
        gap: 20px;
    }

    .section-title {
        font-size: 16px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-builder-container {
        box-shadow: none;
        border-radius: 0;
        height: auto;
    }

    .form-section,
    .preview-header {
        display: none !important;
    }

    .preview-section {
        background: white;
    }

    .preview-container {
        padding: 0;
    }

    .resume-preview {
        width: 100%;
        box-shadow: none;
        page-break-after: avoid;
    }

    .resume-section {
        page-break-inside: avoid;
    }
}
