/* CV Builder Styles */
.cv-builder-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.cv-form-section {
    background-color: var(--primary-blue);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.cv-form-section::-webkit-scrollbar {
    width: 8px;
}

.cv-form-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cv-form-section::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

.cv-form-section::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

.cv-preview-section {
    position: relative;
    height: auto;
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background: var(--primary-blue);
}

/* Removed separate scrollbar for cv-preview-section - now uses page scroll */

.cv-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.cv-preview-header .section-title {
    margin-bottom: 0;
    font-size: 18px;
}

.download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
}

.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--light-gold);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
}

.experience-item,
.education-item,
.language-item,
.certification-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(255, 255, 255, 0.5) 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.experience-item:hover,
.education-item:hover,
.language-item:hover,
.certification-item:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
}

.btn-remove {
    background-color: #dc3545;
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-remove:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 46, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-actions .btn {
    flex: 1;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* CV Preview */
.cv-preview {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 600px;
    display: flex;
    justify-content: center;
    border: 1px solid #e0e0e0;
        background: #D6BB80;
}

.cv-preview .cv-template {
    background-color: #ffffff;
    padding: 0;
    box-shadow: 0 0 0;
    width: 100%;
    max-width: 210mm;
}

/* Print and PDF Styles */
@media print {
    .cv-template {
        max-width: 100%;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .cv-section {
        page-break-inside: avoid;
    }
    
    .cv-item {
        page-break-inside: avoid;
    }
}

.cv-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: var(--text-gray);
    opacity: 0.6;
}

.cv-placeholder svg {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.cv-placeholder p {
    font-size: 18px;
}

/* CV Template - Two Column Design - One Page */
.cv-template {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    width: 100%;
    max-width: 210mm;
    max-height: 297mm;
    margin: 0 auto;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    page-break-inside: avoid;
    box-sizing: border-box;
    position: relative;
}

/* Watermark Logo */
.cv-watermark {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    pointer-events: none;
}

.cv-watermark-logo {
    /* width: 100px; */
    height: auto;
    max-height: 125px;
    object-fit: contain;
}

/* Two Column Layout */
.cv-two-column {
    display: flex;
    width: 100%;
    min-height: calc(297mm - 40px);
    box-sizing: border-box;
}

/* Left Column - Dark Blue Background */
.cv-left-column {
    width: 33.33%;
    background-color: #213a56;
    color: #ffffff;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Right Column - Beige Background */
.cv-right-column {
    width: 66.67%;
    background-color: #e8d4b085;
    color: #e8d4b085;
    padding: 30px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Profile Photo in Left Column */
.cv-left-column .cv-logo-container {
    text-align: center;
    padding: 0 0 25px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cv-left-column .cv-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #E8D4B0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.cv-left-column .cv-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid #E8D4B0;
    margin: 0 auto;
}

/* Left Column Sections */
.cv-left-section {
    margin-bottom: 30px;
}

.cv-left-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Info in Left Column */
.cv-contact-info {
    margin: 0;
}

.cv-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
}

.cv-contact-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cv-contact-text {
    color: #ffffff;
    flex: 1;
}

/* Left Column Lists */
.cv-left-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-left-list li {
    font-size: 11px;
    color: #ffffff;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.cv-left-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

/* Left Column Items */
.cv-left-item {
    margin-bottom: 20px;
}

.cv-left-date {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.cv-left-institution {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

/* Right Column Header */
.cv-right-header {
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.cv-right-name {
    font-size: 28px;
    font-weight: 700;
    color: #213a56;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-right-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #213a56;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.cv-right-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: #213a56;
}

/* Right Column Sections */
.cv-right-section {
    margin-bottom: 25px;
}

.cv-right-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #213a56;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #213a56;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-right-content {
    font-size: 11px;
    line-height: 1.6;
    color: #213a56;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.cv-right-content br {
    display: block;
    line-height: 1.6;
    margin-bottom: 0.3em;
}

/* Right Column Items with Timeline */
.cv-right-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    position: relative;
}

.cv-right-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -25px;
    width: 2px;
    background-color: #213a56;
}

.cv-right-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #213a56;
    border: 2px solid #E8D4B0;
}

.cv-right-item:last-child::before {
    bottom: 0;
}

.cv-right-item-separator {
    border-bottom: none;
}

.cv-right-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cv-right-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-right-company {
    font-size: 12px;
    font-weight: 700;
    color: #213a56;
    flex: 1;
}

.cv-right-date {
    font-size: 11px;
    font-weight: 600;
    color: #213a56;
    white-space: nowrap;
}

.cv-right-title {
    font-size: 11px;
    font-weight: 600;
    color: #213a56;
    font-style: italic;
    margin-bottom: 8px;
}

.cv-right-description {
    font-size: 11px;
    line-height: 1.6;
    color: #213a56;
    margin-top: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.cv-right-description br {
    display: block;
    line-height: 1.6;
    margin-bottom: 0.3em;
}

.cv-right-description ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.cv-right-description li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* Certifications - Simple Design (No Timeline) */
.cv-cert-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.cv-cert-item-separator {
    border-bottom: 1px solid rgba(33, 58, 86, 0.15);
}

.cv-cert-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cv-cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-cert-name {
    font-size: 12px;
    font-weight: 700;
    color: #213a56;
    flex: 1;
}

.cv-cert-date {
    font-size: 11px;
    font-weight: 600;
    color: #213a56;
    white-space: nowrap;
}

.cv-cert-org {
    font-size: 11px;
    font-weight: 400;
    color: #213a56;
    font-style: italic;
    margin-top: 2px;
}

/* Watermark Logo at Top */
.cv-watermark {
    position: absolute;
    top: -25px;
    right: 0;
    z-index: 5;
    pointer-events: none;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-watermark-logo {
    /* width: 100%; */
    /* height: 100%; */
    object-fit: contain;
    filter: grayscale(100%);
}

/* Legacy styles removed - using two-column layout now */

/* CV Footer - YNWA */
.cv-footer {
    margin-top: auto;
    padding: 12px 25px;
    background-color: #E8D4B0;
    border-top: 1px solid rgba(33, 58, 86, 0.2);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.cv-footer-text {
    font-size: 9px;
    color: #213a56;
    margin: 0;
    font-weight: 400;
}

.cv-footer-text strong {
    color: #213a56;
    font-weight: 700;
}

/* Two Column Layout for Contact Info */
@media print {
    .cv-template {
        max-width: 100%;
        box-shadow: none;
    }
    
    .cv-section {
        page-break-inside: avoid;
    }
    
    .cv-item {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .cv-builder-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cv-preview-section {
        position: static;
        max-height: none;
        order: -1;
    }
    
    .cv-preview {
        min-height: 500px;
    }

    .cv-two-column {
        flex-direction: column;
    }

    .cv-left-column,
    .cv-right-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cv-form-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .cv-preview-section {
        padding: 15px;
    }

    .cv-preview {
        padding: 10px;
        min-height: 400px;
    }

    .cv-main-content {
        padding: 20px;
    }

    .cv-name-banner {
        padding: 15px 20px;
    }

    .cv-name-banner h1 {
        font-size: 24px;
    }

    .cv-summary-section {
        padding: 15px 20px;
    }

    .form-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .form-actions {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .form-actions .btn {
        width: 100%;
    }

    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-item-date {
        margin-left: 0;
        margin-top: 5px;
        text-align: left;
    }
    
    .experience-item,
    .education-item,
    .language-item,
    .certification-item {
        padding: 20px 15px;
    }
}

