/* Estilos para o gerador de currículo */

/* Seção Hero */
.resume-hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.resume-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.resume-hero .accent {
    color: var(--accent-color);
    font-weight: 700;
}

.resume-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Container principal */
.resume-container {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    overflow: hidden;
}

/* Barra lateral */
.resume-sidebar {
    width: 320px;
    background-color: #f5f7fa;
    border-right: 1px solid #e5e9f2;
    padding: 0;
}

.steps-container {
    padding: 20px 0;
}

.steps-header {
    padding: 0 20px 15px;
    border-bottom: 1px solid #e5e9f2;
    margin-bottom: 15px;
}

.steps-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.steps-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.step:hover {
    background-color: #eef2f7;
}

.step.active {
    background-color: #e7edf7;
    border-left: 3px solid var(--primary-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.step-info h4 {
    font-size: 1rem;
    margin: 0 0 3px;
    color: #1e293b;
}

.step-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Conteúdo principal */
.resume-content {
    flex: 1;
    padding: 30px;
    max-width: calc(100% - 320px);
}

.resume-form {
    display: block;
}

.resume-form.hidden {
    display: none;
}

.form-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e9f2;
}

.form-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-header h2 i {
    margin-right: 10px;
}

.form-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.form-body {
    margin-bottom: 30px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e5e9f2;
}

/* Elementos de formulário */
.form-row {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 0.5;
}

label {
    display: block;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-size: 0.85rem;
    color: #334155;
}

.form-tip {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}

.character-count {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
    margin-top: 5px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn i {
    margin-left: 8px;
    margin-right: 0;
}

.btn i:first-child {
    margin-left: 0;
    margin-right: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.add-btn {
    margin-top: 10px;
}

.remove-btn {
    margin-top: 5px;
    align-self: flex-end;
}

/* Foto de perfil */
.photo-upload {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e5e9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
    overflow: hidden;
    margin-right: 20px;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-input {
    display: none;
}

.photo-btn {
    margin-bottom: 5px;
}

/* Seções específicas */
.education-item,
.experience-item,
.certification-item,
.language-item {
    padding: 20px;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f8fafc;
    position: relative;
}

/* Habilidades */
.skills-input-container {
    display: flex;
    margin-bottom: 15px;
}

.skills-input-container .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.skills-input-container .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 15px;
    padding-right: 15px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.skill-tag {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.skill-tag .remove-skill {
    margin-left: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.8rem;
}

.skill-tag .remove-skill:hover {
    color: #ef4444;
}

.proficiency-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    background-color: #fff;
}

.proficiency-item .skill-name {
    font-weight: 500;
    margin-bottom: 8px;
}

.proficiency-slider {
    width: 100%;
    margin-bottom: 5px;
}

/* Template Selection */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.template-card {
    border: 2px solid #e5e9f2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.template-card.active {
    border-color: var(--primary-color);
}

.template-preview {
    height: 200px;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-info {
    padding: 15px;
}

.template-info h4 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.template-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.color-options {
    margin-top: 30px;
}

.color-options h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.color-selector {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

/* Form Section */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e9f2;
}

/* Modal de Visualização */
.resume-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.resume-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e9f2;
}

.resume-modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #ef4444;
}

.resume-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.resume-preview {
    background-color: #fff;
    margin: 0 auto;
    max-width: 800px;
    min-height: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.resume-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #e5e9f2;
}

/* Estilos responsivos */
@media (max-width: 991px) {
    .resume-container {
        flex-direction: column;
    }

    .resume-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e9f2;
    }

    .resume-content {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .template-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 767px) {
    .resume-hero h1 {
        font-size: 1.8rem;
    }

    .resume-hero p {
        font-size: 1rem;
    }

    .resume-modal-content {
        width: 95%;
    }

    .resume-preview {
        padding: 20px;
    }
}

/* Estilos para os templates de currículo */
/* Template Clássico */
.resume-template-classic {
    font-family: 'Georgia', serif;
    color: #333;
    line-height: 1.6;
}

.resume-template-classic .resume-header {
    text-align: center;
    margin-bottom: 30px;
}

.resume-template-classic .resume-name {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}

.resume-template-classic .resume-title {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.resume-template-classic .resume-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-template-classic .contact-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.resume-template-classic .contact-item i {
    margin-right: 5px;
}

.resume-template-classic .resume-section {
    margin-bottom: 25px;
}

.resume-template-classic .section-title {
    font-size: 1.3rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #000;
}

.resume-template-classic .resume-item {
    margin-bottom: 20px;
}

.resume-template-classic .item-header {
    margin-bottom: 10px;
}

.resume-template-classic .item-header h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--resume-color, var(--primary-color));
}

.resume-template-classic .item-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 3px;
}

.resume-template-classic .item-date {
    font-size: 0.85rem;
    font-style: italic;
    color: #777;
}

.resume-template-classic .item-content {
    font-size: 0.95rem;
}

.resume-template-classic .skills-list,
.resume-template-classic .languages-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.resume-template-classic .skill-item,
.resume-template-classic .language-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.resume-template-classic .skill-name,
.resume-template-classic .language-name {
    font-weight: 500;
}

.resume-template-classic .skill-level,
.resume-template-classic .language-level {
    color: #666;
    font-style: italic;
}

/* Template Moderno */
.resume-template-modern {
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
}

.resume-template-modern .resume-sidebar {
    width: 35%;
    background-color: var(--resume-color, var(--primary-color));
    color: #fff;
    padding: 30px;
}

.resume-template-modern .resume-main {
    width: 65%;
    padding: 30px;
}

.resume-template-modern .resume-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #fff;
    margin: 0 auto 20px;
    overflow: hidden;
}

.resume-template-modern .resume-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-template-modern .resume-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.resume-template-modern .resume-title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.resume-template-modern .sidebar-section {
    margin-bottom: 30px;
}

.resume-template-modern .sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.resume-template-modern .sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.resume-template-modern .contact-info {
    margin-bottom: 20px;
}

.resume-template-modern .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.resume-template-modern .contact-item i {
    margin-right: 10px;
}

.resume-template-modern .skill-item {
    margin-bottom: 15px;
}

.resume-template-modern .skill-name {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.resume-template-modern .skill-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.resume-template-modern .skill-progress {
    height: 100%;
    background-color: #fff;
}

.resume-template-modern .language-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.resume-template-modern .main-section {
    margin-bottom: 30px;
}

.resume-template-modern .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--resume-color, var(--primary-color));
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.resume-template-modern .resume-item {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
    position: relative;
}

.resume-template-modern .resume-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--resume-color, var(--primary-color));
}

.resume-template-modern .item-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.resume-template-modern .item-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 3px;
}

.resume-template-modern .item-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

/* Template Criativo */
.resume-template-creative {
    font-family: 'Montserrat', 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    position: relative;
}

.resume-template-creative .resume-header {
    background-color: var(--resume-color, var(--primary-color));
    color: #fff;
    padding: 40px;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.resume-template-creative .resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.resume-template-creative .resume-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    padding: 5px;
    position: absolute;
    top: 20px;
    right: 40px;
    overflow: hidden;
}

.resume-template-creative .resume-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.resume-template-creative .resume-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.resume-template-creative .resume-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
}

.resume-template-creative .resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-template-creative .contact-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.resume-template-creative .contact-item i {
    margin-right: 8px;
}

.resume-template-creative .resume-body {
    padding: 40px;
}

.resume-template-creative .resume-columns {
    display: flex;
    gap: 30px;
}

.resume-template-creative .resume-column {
    flex: 1;
}

.resume-template-creative .resume-section {
    margin-bottom: 30px;
}

.resume-template-creative .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--resume-color, var(--primary-color));
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.resume-template-creative .section-title i {
    margin-right: 10px;
    background-color: var(--resume-color, var(--primary-color));
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.resume-template-creative .resume-item {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.resume-template-creative .item-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.resume-template-creative .item-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 3px;
}

.resume-template-creative .item-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

.resume-template-creative .skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resume-template-creative .skill-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.resume-template-creative .skill-circles {
    display: flex;
    gap: 5px;
}

.resume-template-creative .skill-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.resume-template-creative .skill-circle.filled {
    background-color: var(--resume-color, var(--primary-color));
}

.resume-template-creative .language-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Esquemas de cores */
:root {
    --blue: #4361ee;
    --green: #10b981;
    --purple: #8b5cf6;
    --red: #ef4444;
    --orange: #f59e0b;
    --teal: #14b8a6;
}

/* Variáveis CSS para esquemas de cores */
.color-blue {
    --resume-color: var(--blue);
}

.color-green {
    --resume-color: var(--green);
}

.color-purple {
    --resume-color: var(--purple);
}

.color-red {
    --resume-color: var(--red);
}

.color-orange {
    --resume-color: var(--orange);
}

.color-teal {
    --resume-color: var(--teal);
}

/* Estilos responsivos para os templates de currículo */
@media (max-width: 768px) {
    /* Template Moderno */
    .resume-template-modern {
        flex-direction: column;
    }

    .resume-template-modern .resume-sidebar,
    .resume-template-modern .resume-main {
        width: 100%;
    }

    .resume-template-modern .resume-sidebar {
        padding: 20px;
    }

    .resume-template-modern .resume-main {
        padding: 20px;
    }

    /* Template Criativo */
    .resume-template-creative .resume-photo {
        position: static;
        margin: 0 auto 20px;
    }

    .resume-template-creative .resume-header {
        padding: 25px;
        text-align: center;
    }

    .resume-template-creative .resume-contact {
        justify-content: center;
    }

    .resume-template-creative .resume-body {
        padding: 20px;
    }

    .resume-template-creative .resume-columns {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    /* Template Clássico */
    .resume-template-classic .resume-contact {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .resume-template-classic .skills-list,
    .resume-template-classic .languages-list {
        grid-template-columns: 1fr;
    }

    /* Template Moderno */
    .resume-template-modern .sidebar-section {
        margin-bottom: 20px;
    }

    /* Template Criativo */
    .resume-template-creative .contact-item {
        width: 100%;
        justify-content: center;
    }

    .resume-template-creative .resume-name {
        font-size: 1.8rem;
    }

    .resume-template-creative .resume-title {
        font-size: 1.1rem;
    }

    .resume-template-creative .section-title {
        font-size: 1.2rem;
    }
}

/* Ajustes para impressão */
@media print {
    body {
        background: white;
    }

    .resume-preview {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .resume-template-classic,
    .resume-template-modern,
    .resume-template-creative {
        font-size: 12pt;
        color: black;
    }

    .resume-template-modern .resume-sidebar {
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .resume-template-creative .resume-header {
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}




/* Ajustes para formatação de currículo em A4 */
@media print {
    @page {
        size: A4 portrait;
        margin: 15mm;
    }
    
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
    }
    
    .resume-template {
        box-shadow: none;
        padding: 0;
        width: 100%;
        height: 100%;
    }
}

/* Ajustes para a visualização do PDF */
.resume-preview {
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    padding: var(--spacing-md);
    overflow: auto;
}

.resume-preview iframe {
    width: 100%;
    height: 800px;
    border: none;
    box-shadow: var(--shadow-md);
    background-color: white;
}

/* Estilo para o loading durante geração do PDF */
.loading-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 15px;
    color: var(--text-gray);
}

.loading-pdf i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Mensagem de erro */
.error-message {
    color: #ef4444;
    padding: 20px;
    text-align: center;
    background-color: #fee2e2;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

/* Otimização da visualização do modal */
.resume-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.resume-modal-body {
    flex: 1;
    overflow: auto;
}

/* Ajustes específicos para a visualização do currículo */
.photo-container {
    overflow: hidden;
}

.photo-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.resume-modal.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}





/* Otimizar para geração de PDF */
@media print {
    body {
        margin: 0;
        padding: 0;
        background: white;
    }
    
    #resume-document {
        padding: 20mm;
        box-shadow: none;
        max-width: none;
    }
    
    .resume-photo img {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Melhorias na visualização do modal */
.resume-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.resume-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.resume-modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

.resume-modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background-color: #f8f9fa;
}

.resume-preview {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para o documento de currículo */
#resume-document {
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    color: #333;
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 1px solid #eaeaea;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animações */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Otimizações para impressão e geração de PDF */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
    }
    
    #resume-document {
        box-shadow: none;
        padding: 10mm;
        width: 100%;
        height: 100%;
        margin: 0;
    }
}

/* Regras para visualização melhorada do PDF */
.resume-preview iframe {
    width: 100%;
    height: 800px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* Novas classes para posicionamento otimizado */
#resume-document {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    padding: 10mm;
    margin: 0 auto;
    background-color: white;
    box-sizing: border-box;
}

.photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animação de carregamento */
.loading-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 15px;
    color: #64748b;
}

.loading-pdf i {
    font-size: 3rem;
    color: #4361ee;
}