/* General Form Container */
#saic-resumenes-form {
	background-color: #F0F0F0;
	border-radius: 10px;
	padding: 2rem;
	max-width: 800px;
	margin: 2rem auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	font-family: sans-serif;
	color: #1E1E1E;
}

/* Fieldsets */
#saic-resumenes-form fieldset {
	border: 1px solid #E3EEF9;
	border-radius: 10px;
	margin-bottom: 1rem;
	padding: 1rem 1.5rem;
	background-color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Legends (Section Titles) */
#saic-resumenes-form legend {
	font-weight: bold;
	font-size: 1.2rem;
	color: #0e2446;
	padding: 0 0.5rem;
}

/* Labels and Inputs */
#saic-resumenes-form label {
	display: block;
	margin-bottom: 0rem;
	color: #1E1E1E;
    font-size: 0.8rem;
}

#saic-resumenes-form input[type="text"],
#saic-resumenes-form input[type="email"],
#saic-resumenes-form input[type="file"],
#saic-resumenes-form select {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-sizing: border-box;
	background-color: #fff;
	transition: border 0.2s ease-in-out;
}

#saic-resumenes-form input:focus,
#saic-resumenes-form select:focus {
	border-color: #2572B5;
	outline: none;
}

/* Add Autor Button */
#saic-resumenes-form #add-autor {
	background-color: #27b699;
	color: white;
	border: none;
	border-radius: 10px;
	padding: 0.6rem 1.2rem;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

#saic-resumenes-form #add-autor:hover {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Autores List */
#saic-resumenes-form ul#autores-list {
	list-style: none;
	padding-left: 0;
	margin-top: 1rem;
}

#saic-resumenes-form ul#autores-list li {
	padding: 0.5rem 1rem;
	background: #E3EEF9;
	border-radius: 8px;
    margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #1E1E1E;
}

#saic-resumenes-form .remove-autor {
	cursor: pointer;
	margin-left: 1rem;
	color: red;
	font-weight: bold;
}

/* Disclaimer Text */
#saic-resumenes-form em {
	color: #666666;
	font-size: 0.9rem;
	display: block;
	margin-bottom: 0rem;
}

/* Submit Button */
#saic-resumenes-form input[type="submit"] {
	background-color: #27b699;
	color: white;
	border: none;
	border-radius: 10px;
	padding: 0.8rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: block;
	margin: 2rem auto 0;
}

#saic-resumenes-form input[type="submit"]:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

input#premio_checkbox {
    margin: 30px 0px;
}

/* Form Errors */
.saic-form-errors,
.saic-form-autores-errors {
	background: #ffe0e0;
	color: #8a1f1f;
	border: 1px solid #c33;
	padding: 10px 15px;
	margin-bottom: 20px;
	border-radius: 8px;
	list-style: disc inside;
}

/* Checkbox */
#saic-resumenes-form input[type="checkbox"] {
	margin-right: 0.5rem;
	transform: scale(1.2);
	cursor: pointer;
}

/* Textarea */
#saic-resumenes-form textarea {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-sizing: border-box;
	background-color: #fff;
	transition: border 0.2s ease-in-out;
	font-family: sans-serif;
	font-size: 0.9rem;
	color: #1E1E1E;
	resize: vertical;
}

/* Textarea focus */
#saic-resumenes-form textarea:focus {
	border-color: #2572B5;
	outline: none;
}

/* Characters limit msj */
#saic-resumenes-form #char_limit_msg {
	font-size: 0.75rem;
	color: #666666;
	margin-top: 0.3rem;
	margin-bottom: 0rem;
}

#saic-resumenes-form #char_counter {
	font-size: 0.75rem;
	color: #666666;
	margin-top: 0.2rem;
	margin-bottom: 1rem;
	transition: color 0.2s ease;
}

/* Autores table */
#saic-resumenes-form .custom-file-label {
	display: inline-flex;
	background-color: #2572B5;
	color: white;
	padding: 10px 20px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: bold;
}

#saic-resumenes-form table#autores-list {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	font-size: 0.9rem;
}

#saic-resumenes-form table#autores-list th,
#saic-resumenes-form table#autores-list td {
	border: 1px solid #ccc;
	padding: 0.6rem;
	text-align: left;
	vertical-align: middle;
}

#saic-resumenes-form table#autores-list thead {
	background-color: #E3EEF9;
	color: #0e2446;
	font-weight: bold;
}

#saic-resumenes-form .remove-autor:hover {
	color: darkred;
}


/* User profile */
/* Panel de resúmenes */
#saic-panel-resumenes {
	background-color: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	font-family: sans-serif;
	color: #1E1E1E;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#saic-panel-resumenes h2 {
	margin-top: 0;
	color: #0e2446;
	border-bottom: 2px solid #E3EEF9;
	padding-bottom: 0.5rem;
	text-align: center;
	font-weight: 400 !important;
}

#saic-panel-resumenes ul {
	list-style: none;
	padding-left: 0;
}

#saic-panel-resumenes li {
	margin-bottom: 1rem;
	padding: 0.6rem;
	border-bottom: 1px solid #ddd;
}

#saic-panel-resumenes li strong {
	color: #2572B5;
}

#saic-panel-resumenes a {
	color: #2572B5;
	text-decoration: none;
	margin-left: 0.3rem;
}

#saic-panel-resumenes a:hover {
	text-decoration: underline;
}

#saic-panel-resumenes .button {
	display: inline-block;
	margin-top: 1rem;
	background-color: #2572B5;
	color: white;
	padding: 10px 20px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 1rem;
}

#saic-panel-resumenes .button:hover {
	background-color: #1b5a91;
}

.saic-button-secondary {
	display: inline-block;
	margin-top: 1rem;
	background-color: #e0e0e0;
	color: #333;
	padding: 10px 20px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: light;
	font-size: 1rem;
	border: 1px solid #ccc;
	transition: background-color 0.2s ease;
}

.saic-button-secondary:hover {
	background-color: #d5d5d5;
}

.saic-button-center {
	text-align: center;
}

.saic-button-center .saic-button-secondary{
	margin-top: 3rem;
}

.saic-table-resumenes {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	font-size: 0.9rem;
}

.saic-table-resumenes th,
.saic-table-resumenes td {
	border: 1px solid #ccc;
	padding: 0.6rem;
	text-align: left;
	vertical-align: middle;
}

.saic-table-resumenes thead {
	background-color: #E3EEF9;
	color: #0e2446;
	font-weight: bold;
}

.saic-table-resumenes a {
	color: #2572B5;
	text-decoration: none;
}

.saic-table-resumenes a:hover {
	text-decoration: underline;
}


/* Login form */
#saic-login-register {
	background-color: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	font-family: sans-serif;
	color: #1E1E1E;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	max-width: 500px;
	margin: 5vh 0vh;
}

#saic-login-register h2,
#saic-login-register h3 {
	color: #0e2446;
	border-bottom: 2px solid #E3EEF9;
	padding-bottom: 0.5rem;
	margin-top: 0;
}

#saic-login-register p {
	margin: 1rem 0 !important;
}

#saic-login-register a {
	color: #2572B5;
	text-decoration: none;
}

#saic-login-register a:hover {
	text-decoration: underline;
}

#saic-login-register form {
	margin-top: 1rem;
}

#saic-login-register label {
	display: block;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	color: #333;
}

#saic-login-register input[type="text"],
#saic-login-register input[type="email"],
#saic-login-register input[type="password"] {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
	background-color: #fff;
	transition: border 0.2s ease-in-out;
	font-family: sans-serif;
	font-size: 0.9rem;
	color: #1E1E1E;
}

#saic-login-register input:focus {
	border-color: #2572B5;
	outline: none;
}

/* Button */
#saic-login-register input[type="submit"] {
	background-color: #2572B5;
	color: white;
	padding: 10px 20px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

#saic-login-register input[type="submit"]:hover {
	background-color: #1b5a91;
}

.saic-login-warning p {
    font-size: 1rem;
    color: #8a1f1f;
}

.saic-login-warning{
    padding: 10vh;
}


/*Pagina de evaluacion de resumenes*/
/* Contenedor del resumen */
.saic-resumen-content {
	margin-bottom: 2rem;
	padding: 4rem;
	background-color: #f9f9f9;
	border-radius: 6px;
	border: 1px solid #ddd;
}

.saic-resumen-content h2 {
	margin-bottom: 2rem;
	font-size: 1.5rem;
}

/* Formulario */
.saic-evaluacion-form {
	max-width: 50%;
	margin: 0 auto 3rem auto;
	padding: 1.5rem 2rem;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
	font-family: Arial, sans-serif;
	color: #444;
}

/* Checkbox label */
.saic-evaluacion-form label {
    display: flex;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    flex-direction: row;
    align-items: flex-start;
}

#nota_aprobacion select {
	margin-left: 0.5rem;
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	border: 1px solid #bbb;
	font-size: 0.8rem;
	cursor: pointer;
}

div#saic_evaluacion_estado {
    display: flex;
	margin-top: 1rem;
}

div#nota_aprobacion {
    display: flex;
}

/* Comentarios textarea */
.saic-evaluacion-form textarea {
	width: 100%;
	padding: 0.5rem 0 0 0.5rem;
	border-radius: 5px;
	border: 1px solid #bbb;
	font-size: 0.8rem;
	font-family: inherit;
	resize: vertical;
	min-height: 80px;
}

/* Botón de submit */
.saic-evaluacion-form input[type="submit"] {
	display: inline-block;
	margin-top: 1.5rem;
	background-color: #2c7be5;
	color: white;
	border: none;
	padding: 0.6rem 1.4rem;
	font-size: 1rem;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.saic-evaluacion-form input[type="submit"]:hover {
	background-color: #1a5fc1;
}

/* Mensajes de aviso (login-warning, warning) */
.saic-login-warning,
.saic-warning {
	max-width: 480px;
	margin: 2rem auto;
	padding: 1.2rem 1.5rem;
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
	border-radius: 6px;
	font-weight: 600;
	text-align: center;
	font-family: Arial, sans-serif;
}

.saic-login-warning a.saic-button-secondary,
.saic-warning a.saic-button-secondary {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.5rem 1.2rem;
	background-color: #856404;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.saic-login-warning a.saic-button-secondary:hover,
.saic-warning a.saic-button-secondary:hover {
	background-color: #5a4303;
}

.saic-evaluacion-exito {
	background-color: #d4edda;
	color: #155724;
	padding: 1rem;
	border: 1px solid #c3e6cb;
	border-radius: 5px;
	margin-bottom: 1.5rem;
	text-align: center;
	font-weight: bold;
}

.saic-table-resumenes td {
	padding: 0.5rem 1rem;
}

.saic-table-resumenes .evaluado {
	color: rgb(22, 68, 22);
	font-weight: bold;
}
