/* Sistema de Currículo - Estilos Modernos */

.curriculo-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.curriculo-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.curriculo-form input[type="text"],
.curriculo-form input[type="email"],
.curriculo-form input[type="tel"],
.curriculo-form input[type="url"],
.curriculo-form input[type="month"],
.curriculo-form select,
.curriculo-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.curriculo-form input:focus,
.curriculo-form select:focus,
.curriculo-form textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.curriculo-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.curriculo-form select {
    cursor: pointer;
}

.experiencia-item,
.formacao-item,
.idioma-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.btn-add {
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px dashed #bdc3c7;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-add:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    border-style: solid;
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn-gerar {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    min-width: 280px;
}

.btn-gerar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-gerar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-block;
}

#mensagem-resultado {
    margin-top: 25px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 18px 24px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    font-size: 16px;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 18px 24px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    font-size: 16px;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .curriculo-form {
        padding: 25px 20px;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section h2 {
        font-size: 20px;
    }
    
    .btn-gerar {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Placeholder style */
.curriculo-form input::placeholder,
.curriculo-form textarea::placeholder,
.curriculo-form select::placeholder {
    color: #95a5a6;
    opacity: 1;
}

/* Validação visual */
.curriculo-form input:invalid:not(:placeholder-shown),
.curriculo-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.curriculo-form input:valid:not(:placeholder-shown),
.curriculo-form textarea:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}