/* Estilos do Frontend - Formulário de Upload */

.curriculo-upload-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.curriculo-upload-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.curriculo-upload-form h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.curriculo-upload-form .description {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

/* Estilos para seção de foto */
.cv-photo-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cv-photo-section h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cv-photo-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.cv-photo-upload-area {
    display: block;
    cursor: pointer;
    margin-bottom: 15px;
}

.cv-photo-preview {
    width: 120px;
    height: 160px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-photo-preview:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.cv-photo-placeholder {
    text-align: center;
    color: #666;
}

.cv-photo-placeholder svg {
    margin-bottom: 8px;
    opacity: 0.6;
}

.cv-photo-placeholder span {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

#cv-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.cv-photo-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.cv-photo-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv-photo-name {
    font-weight: 500;
    color: #333;
}

.cv-photo-size {
    color: #666;
    font-size: 12px;
}

.cv-remove-photo {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cv-remove-photo:hover {
    background: #f8d7da;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    cursor: pointer;
}

.file-label {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.file-label:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input[type="file"] {
    display: none;
}

.file-name {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.form-actions {
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    padding: 15px 30px;
    background: #00a86b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    background: #008c59;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividade */
@media (max-width: 768px) {
    .curriculo-upload-container {
        padding: 10px;
    }
    
    .curriculo-upload-form {
        padding: 20px;
    }
    
    .curriculo-upload-form h2 {
        font-size: 24px;
    }
}

/* Estilos da Seção de Resultados */
.cv-results-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.cv-analysis-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cv-analysis-title {
    text-align: center;
    margin: 0;
    padding: 30px 40px 20px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Seção da Nota */
.cv-score-section {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    background: #e3f2fd;
    border-bottom: 1px solid #e9ecef;
}

.cv-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2196f3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-right: 20px;
    flex-shrink: 0;
}

.cv-score-number {
    color: white;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.cv-score-total {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.cv-score-text h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.cv-score-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Seções da Análise */
.cv-section {
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-section p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.cv-section ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.cv-section li {
    margin-bottom: 8px;
}

/* Cores específicas para cada seção */
.cv-summary {
    background: #f8f9fa;
}

.cv-improve {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.cv-suggestions {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
}

.cv-formatting {
    background: #ffe6f0;
    border-left: 4px solid #e91e63;
}

.cv-content {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

/* Ícones (usando símbolos Unicode) */
.cv-icon-warning::before {
    content: "⚠️";
    margin-right: 5px;
}

.cv-icon-lightbulb::before {
    content: "💡";
    margin-right: 5px;
}

.cv-icon-format::before {
    content: "🎨";
    margin-right: 5px;
}

.cv-icon-content::before {
    content: "📝";
    margin-right: 5px;
}

/* Responsividade para resultados */
@media (max-width: 768px) {
    .cv-results-section {
        padding: 10px;
    }
    
    .cv-analysis-title {
        padding: 20px;
        font-size: 24px;
    }
    
    .cv-score-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .cv-score-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cv-section {
        padding: 20px;
    }
}


