/* ========================================
   Jade Executive Premium Resume Template CSS
   Modern Teal Header Design with Card Layout
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #0f766e 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.4);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 460px;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    padding: 35px 30px;
    overflow-y: auto;
    border-right: 4px solid #99f6e4;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 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, #0f766e 0%, #0d9488 100%);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #99f6e4;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 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 #5eead4;
    margin-bottom: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #0f766e;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px;
}

.color-label {
    flex: 1;
    font-size: 13px;
    color: #0f766e;
    font-weight: 600;
}

.reset-color-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 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, #0d9488 0%, #14b8a6 100%);
    transform: translateY(-2px);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 12px;
    border: 2px dashed #14b8a6;
    background: #f0fdfa;
    cursor: pointer;
    border-radius: 10px;
}

.photo-upload-section input[type="file"]:hover {
    border-color: #0f766e;
    background: #ccfbf1;
}

/* ========================================
   Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 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(15, 118, 110, 0.35);
}

.sample-data-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 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(124, 58, 237, 0.4);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid #99f6e4;
}

/* ========================================
   Experience, Education, Competency Items
   ======================================== */
.experience-item,
.education-item,
.competency-item,
.certification-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #99f6e4;
    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, #f0fdfa 0%, #ccfbf1 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #14b8a6;
}

.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 (NEW HEADER DESIGN)
   ======================================== */
.resume-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    padding: 40px 45px;
    color: white;
    display: flex;
    flex-direction: row;
    gap: 35px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.resume-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

/* Profile Photo in Header */
.header-photo-wrapper {
    width: 150px;
    height: 150px;
    min-width: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: white;
    z-index: 1;
}

.header-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-photo-placeholder {
    font-size: 60px;
    color: #0d9488;
}

/* Header Info */
.header-info {
    flex: 1;
    z-index: 1;
}

.header-name {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Contact Info Row in Header */
.header-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.header-contact-icon {
    font-size: 14px;
}

/* ========================================
   Resume Body Section (Two-Column Layout)
   ======================================== */
.resume-body {
    display: flex;
    flex-direction: row;
    flex: 1;
}

/* Left Column - Main Content */
.resume-main-column {
    flex: 2;
    padding: 35px 30px;
    background: white;
}

/* Right Column - Sidebar Content */
.resume-side-column {
    width: 240px;
    padding: 35px 25px;
    background: linear-gradient(180deg, #f0fdfa 0%, #ecfdf5 100%);
    border-left: 3px solid #99f6e4;
}

/* ========================================
   Main Section Styling
   ======================================== */
.main-section {
    margin-bottom: 28px;
}

.main-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0f766e;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-section-icon {
    font-size: 20px;
}

/* Summary Section */
.summary-content {
    font-size: 14px;
    line-height: 1.85;
    color: #334155;
    text-align: justify;
    padding: 18px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-radius: 12px;
    border-left: 5px solid #0d9488;
}

/* Experience Cards */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    border: 2px solid #d1fae5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s;
}

.experience-card:hover {
    transform: translateX(5px);
    border-color: #14b8a6;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.15);
}

.experience-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 14px 0 0 14px;
}

.exp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-left: 10px;
}

.exp-card-left {
    flex: 1;
}

.exp-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.exp-card-company {
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
    margin: 0;
    font-style: italic;
}

.exp-card-right {
    text-align: right;
}

.exp-card-dates {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0;
}

.exp-card-achievements {
    list-style: none;
    padding-left: 10px;
    margin-top: 12px;
}

.exp-card-achievements li {
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.exp-card-achievements li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #14b8a6;
    font-size: 10px;
}

/* Education Cards */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.education-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    padding: 18px;
    border-radius: 12px;
    border-left: 5px solid #0d9488;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.1);
}

.edu-card-degree {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.edu-card-institution {
    font-size: 13px;
    font-weight: 600;
    color: #0d9488;
    margin: 0 0 5px 0;
}

.edu-card-details {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* ========================================
   Side Column Sections
   ======================================== */
.side-section {
    margin-bottom: 25px;
}

.side-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5eead4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-section-icon {
    font-size: 16px;
}

/* Competencies/Skills Tags */
.competencies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.competency-tag {
    display: block;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
    border: 2px solid #99f6e4;
    transition: all 0.3s;
    text-align: center;
}

.competency-tag:hover {
    background: #0d9488;
    color: white;
    border-color: #0d9488;
}

/* Certifications List */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #334155;
    line-height: 1.5;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #14b8a6;
}

.cert-bullet {
    color: #0d9488;
    font-weight: bold;
    font-size: 14px;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f0fdfa;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d9488 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 #99f6e4;
    }

    .preview-section {
        width: 100%;
    }

    .resume-preview {
        width: 100%;
        min-height: auto;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }

    .header-contact-row {
        justify-content: center;
    }

    .resume-body {
        flex-direction: column;
    }

    .resume-side-column {
        width: 100%;
        border-left: none;
        border-top: 3px solid #99f6e4;
    }

    .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;
        min-width: 120px;
    }

    .header-name {
        font-size: 28px;
    }

    .header-title {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .header-contact-row {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .header-contact-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .resume-main-column {
        padding: 25px 20px;
    }

    .resume-side-column {
        padding: 25px 20px;
    }

    .main-section-title {
        font-size: 16px;
    }

    .exp-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .exp-card-right {
        text-align: left;
    }

    .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;
        min-width: 100px;
    }

    .header-photo-placeholder {
        font-size: 45px;
    }

    .header-name {
        font-size: 24px;
    }

    .header-title {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .resume-header {
        padding: 20px 15px;
    }

    .resume-main-column {
        padding: 20px 15px;
    }

    .resume-side-column {
        padding: 20px 15px;
    }

    .main-section-title {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .header-contact-item {
        font-size: 11px;
        padding: 5px 10px;
    }

    .competency-tag {
        font-size: 11px;
        padding: 8px 12px;
    }

    .experience-card {
        padding: 16px;
    }

    .exp-card-title {
        font-size: 14px;
    }

    .exp-card-company {
        font-size: 13px;
    }

    .summary-content {
        font-size: 13px;
        padding: 14px;
    }

    .side-section-title {
        font-size: 12px;
    }
}

/* 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;
    }

    .resume-side-column {
        width: 240px;
        border-left: 3px solid #99f6e4;
    }

    .experience-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    }
}
