/* Importamos una fuente moderna y limpia */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f6f8; /* El gris suave de fondo de LinkedIn */
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

#bio-form {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
}

h2 {
    color: #1d2226;
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Para que el padding no ensanche el input */
    transition: border-color 0.2s;
}

/* El efecto cuando haces clic para escribir */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0077B5; /* El azul corporativo */
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

button {
    width: 100%;
    background-color: #0077B5;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 25px; /* Botón redondeado estilo LinkedIn */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s; 
    max-width: 100%;
    box-sizing: border-box;
}


button:hover {
    background-color: #004182; /* Un azul más oscuro al pasar el ratón */
}

textarea {
    resize: vertical;
    min-height: 100px;
}
/* Estilos para el contenedor de vista previa */
#preview-container {
    background-color: #ffffff;
    margin-top: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-width: 500px;
    width: 100%;
    overflow: hidden; /* Para que las esquinas del header no se salgan */
}

.preview-header {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#copy-btn {
    background: none;
    border: 1px solid #0077B5;
    color: #0077B5;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#copy-btn:hover {
    background-color: #f0f7ff;
}

.preview-content {
    padding: 20px;
    min-height: 150px;
    line-height: 1.6;
    color: #1d2226;
    font-size: 0.95rem;
    white-space: pre-wrap; /* Mantiene los saltos de línea de la IA */
}

.placeholder-text {
    color: #8492a6;
    font-style: italic;
}