/* ========================================
   Teal Modern Professional Resume Template CSS
   Modern Two-Column Layout with Dark Header Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 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 25px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 460px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 35px 30px;
    overflow-y: auto;
    border-right: 4px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #2dd4bf 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;
    margin-top: 32px;
    margin-bottom: 18px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========================================
   Color Theme Picker
   ======================================== */
.theme-color-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #99f6e4;
    margin-bottom: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #1e293b;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px;
}

.color-label {
    flex: 1;
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
}

.reset-color-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-color-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translateY(-2px);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 12px;
    border: 2px dashed #2dd4bf;
    background: #f0fdfa;
    cursor: pointer;
    border-radius: 10px;
}

.photo-upload-section input[type="file"]:hover {
    border-color: #14b8a6;
    background: #ccfbf1;
}

/* ========================================
   Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 41, 59, 0.35);
}

.sample-data-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid #e2e8f0;
}

/* ========================================
   Experience, Education, Skill Items
   ======================================== */
.experience-item,
.education-item,
.skill-item,
.language-item,
.reference-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #2dd4bf;
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 700;
    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: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-header-secondary {
    background: #ef4444;
    color: white;
}

.btn-header-secondary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-header-success {
    background: #10b981;
    color: white;
}

.btn-header-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ========================================
   Preview Container
   ======================================== */
.preview-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.resume-preview {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Resume Header Section (Dark Navy/Slate)
   ======================================== */
.resume-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 35px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    color: white;
}

/* Profile Photo in Header */
.header-photo-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: white;
    flex-shrink: 0;
}

.header-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-photo-placeholder {
    font-size: 70px;
    color: #94a3b8;
}

/* Header Info */
.header-info {
    flex: 1;
}

.header-name {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-title {
    font-size: 18px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin: 0;
}

/* ========================================
   Resume Body Section (Two Columns)
   ======================================== */
.resume-body {
    display: flex;
    flex-direction: row;
    flex: 1;
}

/* Left Sidebar in Body */
.body-sidebar {
    width: 260px;
    background: #f8fafc;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-right: 1px solid #e2e8f0;
}

/* Main Content in Body */
.body-main {
    flex: 1;
    padding: 30px 35px;
    background: white;
}

/* ========================================
   Section Title Styling
   ======================================== */
.section-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2dd4bf;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title-teal {
    color: #2dd4bf;
}

/* ========================================
   Contact Section (Left Sidebar)
   ======================================== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    color: #2dd4bf;
    min-width: 60px;
    text-transform: capitalize;
}

.contact-value {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    word-break: break-word;
}

/* ========================================
   Education Section (Left Sidebar)
   ======================================== */
.education-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.education-entry {
    padding-left: 0;
}

.education-degree {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.education-institution {
    font-size: 13px;
    color: #475569;
    margin-bottom: 2px;
}

.education-year {
    font-size: 12px;
    color: #64748b;
}

/* ========================================
   Skills Section (Left Sidebar)
   ======================================== */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
}

.skill-bullet {
    width: 8px;
    height: 8px;
    background: #2dd4bf;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Languages Section (Left Sidebar)
   ======================================== */
.languages-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
}

.language-bullet {
    width: 8px;
    height: 8px;
    background: #2dd4bf;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   About Me Section (Right Main)
   ======================================== */
.about-section {
    margin-bottom: 30px;
}

.about-content {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
}

/* ========================================
   Work Experience Section (Right Main)
   ======================================== */
.experience-section {
    margin-bottom: 30px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-entry {
    position: relative;
    padding-left: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.experience-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.experience-dates {
    font-size: 13px;
    font-weight: 600;
    color: #2dd4bf;
    white-space: nowrap;
}

.experience-company {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

.experience-description {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

/* ========================================
   References Section (Right Main)
   ======================================== */
.references-section {
    margin-bottom: 20px;
}

.references-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reference-entry {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid #2dd4bf;
}

.reference-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.reference-position {
    font-size: 13px;
    color: #475569;
    margin-bottom: 10px;
}

.reference-contact {
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reference-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reference-contact-label {
    font-weight: 600;
    color: #2dd4bf;
}

/* ========================================
   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: linear-gradient(135deg, #1e293b 0%, #2dd4bf 100%);
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #334155 0%, #14b8a6 100%);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

/* Large Tablets and Below (1200px) */
@media screen and (max-width: 1200px) {
    .resume-builder-container {
        width: 98vw;
        height: auto;
        min-height: 95vh;
        flex-direction: column;
    }

    .form-section {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 4px solid #e2e8f0;
    }

    .preview-section {
        width: 100%;
    }

    .resume-preview {
        width: 100%;
        min-height: auto;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }

    .header-info {
        text-align: center;
    }

    .resume-body {
        flex-direction: column;
    }

    .body-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .preview-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Tablets (768px) */
@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 18px;
        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: 22px;
    }

    .form-section-title {
        font-size: 12px;
        padding: 10px 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .preview-container {
        padding: 15px;
    }

    .resume-header {
        padding: 25px 20px;
    }

    .header-photo-wrapper {
        width: 120px;
        height: 120px;
    }

    .header-name {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .header-title {
        font-size: 14px;
    }

    .body-sidebar {
        padding: 25px 20px;
    }

    .body-main {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 14px;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        gap: 5px;
    }

    .preview-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-header-secondary,
    .btn-header-success {
        width: 100%;
    }
}

/* Small Mobile (480px) */
@media screen and (max-width: 480px) {
    .form-section h2 {
        font-size: 20px;
    }

    .header-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .header-name {
        font-size: 24px;
    }

    .header-title {
        font-size: 13px;
    }

    .resume-header {
        padding: 20px 15px;
    }

    .body-sidebar {
        padding: 20px 15px;
    }

    .body-main {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .experience-title {
        font-size: 14px;
    }

    .contact-item {
        flex-direction: column;
        gap: 4px;
    }

    .about-content {
        font-size: 13px;
    }

    .reference-entry {
        padding: 15px;
    }
}

/* 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;
    }

    .preview-section {
        width: 100%;
    }

    .preview-container {
        padding: 0;
    }

    .resume-preview {
        box-shadow: none;
        border-radius: 0;
    }

    .resume-body {
        flex-direction: row;
    }

    .body-sidebar {
        width: 260px;
        border-right: 1px solid #e2e8f0;
    }
}
