* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    color: #1a5276;
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    height: 60px;
    width: auto;
}

.company-info p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.file-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Estilos para el selector de modelo */
.model-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-selector label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    font-size: 0.9em;
}

.model-selector select {
    padding: 10px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 6px;
    background: #fff;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.model-selector select:hover {
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.15);
}

.model-selector select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

.dropbtn {
    background: #2980b9;
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dropbtn:hover {
    background: #1f618d;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 1;
    border-radius: 6px;
    border: 1px solid #e8ecf1;
}

.dropdown-content button {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    display: block;
    background-color: transparent;
    color: #333;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-content button:hover {
    background: #f0f4f8;
    color: #2980b9;
    font-weight: 600;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    transform: translateY(-3px) scale(1.02);
}

/* Estilos para la vista previa del documento */


.preview-content {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

button {
    padding: 12px 24px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

button:hover:not(:disabled) {
    background: #1f618d;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Panel de configuración colapsable */
.setup-panel {
    margin-top: 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
    overflow: hidden;
}

.setup-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecf1;
}

.setup-panel-header h3 {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

.setup-panel-content {
    padding: 0;
}

/* Tabla de carga de documentos */
.doc-upload-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.doc-upload-table thead th {
    text-align: left;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecf1;
}

.doc-upload-table thead th:last-child {
    width: 80px;
    text-align: center;
}

.doc-upload-table tbody tr {
    transition: background 0.15s ease;
    background: #ffffff;
}

.doc-upload-table tbody tr:not(:last-child) {
    border-bottom: 1px solid #f0f2f5;
}

.doc-upload-table tbody tr:hover {
    background: #f8f9fb;
}

.doc-upload-table td {
    padding: 8px 16px;
    vertical-align: top;
    background: inherit;
}

.doc-type-label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    width: 140px;
    vertical-align: middle;
}

.doc-upload-table td:last-child {
    vertical-align: middle;
}

.doc-upload-table .file-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-upload-table .type-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
    background: #eef2f7;
    border: 1px solid #d5dbe3;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.file-input-label:hover {
    background: #dfe6ee;
    border-color: #b8c2cc;
}

.file-input-text {
    font-size: 12px;
    color: #7f8c8d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.doc-upload-table .upload-btn {
    padding: 5px 14px;
    font-size: 12px;
    min-width: 70px;
    border-radius: 4px;
}

/* Contenedor de archivos procesados dentro de celda */
.doc-upload-table .processed-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e8ecf1;
}

.doc-upload-table .document-list {
    margin-top: 6px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid #e8ecf1;
}

.process-documents-container {
    padding: 12px 16px;
    border-top: 1px solid #e8ecf1;
}

.setup-panel-header .toggle-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

/* Editor principal */
.editor-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.left-panel {
    width: 300px;
    min-width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sections-list {
    border-radius: 0 0 8px 8px;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
    border-top: 1px solid #eee;
    max-height: 500px;
    overflow-y: auto;
}

.file-types-container {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.file-type-item {
    margin-bottom: 10px;
}

.file-type-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.file-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.type-file-input {
    flex: 1;
    font-size: 12px;
}

.upload-btn {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
    background: #27ae60;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.upload-btn:not(:disabled) {
    cursor: pointer;
}

.upload-btn:not(:disabled):hover {
    background: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.upload-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.process-documents-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.full-width-btn {
    width: 100%;
    padding: 12px;
    font-weight: bold;
    background: #27ae60;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.full-width-btn:hover {
    background: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* Botones de toggle y borrado de documentos procesados */
.doc-toggle-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
    line-height: 1;
    padding: 0;
}

.doc-toggle-btn:hover {
    background: #0056b3;
}

.doc-delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
    line-height: 1;
    padding: 0;
}

.doc-delete-btn:hover {
    background: #a71d2a;
}

.doc-delete-btn-sm {
    width: 20px;
    height: 20px;
    font-size: 14px;
}

.sections-list ul {
    list-style: none;
    margin-bottom: 15px;
    overflow-y: auto;
    flex: 1;
}

.sections-list li {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    border-left: 3px solid #e8ecf1;
    transition: all 0.2s ease;
}

.sections-list li:hover {
    background: #eef2f5;
    border-left-color: #2980b9;
}

.sections-list li.active {
    background: #2980b9;
    color: white;
    border-left-color: #1a5276;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.15);
}

/* Estilos para el árbol de secciones */
.section-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.section-item:hover {
    background: #eef2f5 !important;
    border-left-color: #2980b9;
}

.section-item.selected {
    background: #2980b9 !important;
    color: #ffffff !important;
    border-left-color: #1a5276;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.15);
}

.section-item.selected:hover {
    background: #1f618d !important;
    box-shadow: 0 4px 12px rgba(31, 97, 141, 0.2) !important;
}

/* Indicadores de nivel con diferentes colores */
.section-item[style*="margin-left: 0px"] {
    border-left-color: #2980b9;
    font-weight: bold;
}

.section-item[style*="margin-left: 20px"] {
    border-left-color: #5dade2;
}

.section-item[style*="margin-left: 40px"] {
    border-left-color: #85c1e9;
}

.section-item[style*="margin-left: 60px"] {
    border-left-color: #aed6f1;
}

.editor-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Preview area removed - no longer used */

#sectionEditor {
    width: 100%;
    height: 500px;
    padding: 15px;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    resize: vertical;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    background: #ffffff;
    color: #2c3e50;
}

.editor-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.buttons-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buttons-column button {
    width: 140px;
    background: #2980b9;
    font-weight: 600;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.buttons-column button:hover:not(:disabled) {
    background: #1f618d;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

#modifyBtn {
    background: #3498db;
}

#modifyBtn:hover:not(:disabled) {
    background: #2980b9;
}

#rewriteBtn {
    background: #e67e22;
}

#rewriteBtn:hover:not(:disabled) {
    background: #d35400;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

#rewriteBtn:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed !important;
}

.modify-container {
    flex: 1;
}

#modifyText {
    width: 100%;
    height: 80px;
    padding: 15px;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    resize: vertical;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin-bottom: 15px;
    background: #ffffff;
    color: #2c3e50;
}

.retrieved-documents {
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.retrieved-documents h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.documents-list {
    max-height: 120px;
    overflow-y: auto;
}

.document-item {
    background: #e8f4f9;
    border: 1px solid #bdd7e5;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #154360;
    word-break: break-all;
    transition: all 0.2s ease;
}

.document-item:hover {
    background: #d5e8f0;
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.15);
}

.no-documents {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
    margin: 0;
    text-align: center;
    padding: 10px;
}

.retrieved-documents:empty {
    display: none;
}

.s3-config {
    margin: 20px 0;
    padding: 25px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

/* Estilos para mensajes de notificación */
.notification {
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notification.success {
    background: #d5f4e6;
    color: #0e6251;
    border: 1px solid #a3e4d7;
}

.notification.error {
    background: #fadbd8;
    color: #78281f;
    border: 1px solid #f1b5ac;
}

.notification.info {
    background: #d4e9f7;
    color: #1a5276;
    border: 1px solid #85c1e9;
}



/* Status indicators */
.status-indicator {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    flex-shrink: 0;
}

.spinner-blue {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.tick-green {
    display: inline-block;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.cross-red {
    display: inline-block;
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
}

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para la ventana de login */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.login-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.login-header {
    background: #1a5276;
    color: white;
    padding: 30px;
    text-align: center;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 300;
}

.login-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    font-weight: 300;
}

.login-content {
    padding: 40px 30px;
    text-align: center;
}

.login-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 400;
}

.login-content p {
    margin: 0 0 30px 0;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

.login-btn {
    width: 100%;
    padding: 15px 20px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    background: #1f618d;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

/* Botón unificado de exportación */
#exportBtn {
    background: #8e44ad;
    margin-left: 10px;
}

#exportBtn:hover:not(:disabled) {
    background: #6c3483;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
}

#exportBtn:disabled {
    background: #bdc3c7;
    opacity: 0.6;
}

/* Botón de importar Word */
#importWordBtn {
    background: #27ae60;
    margin-left: 10px;
}

#importWordBtn:hover {
    background: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* ===== Modal de exportación ===== */
.export-modal-content {
    max-width: 960px;
    width: 95%;
}

.export-modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: 65vh;
}

.export-format-selector {
    margin-bottom: 20px;
}

.export-format-selector label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.export-format-options {
    display: flex;
    gap: 10px;
}

.format-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.2s ease;
}

.format-btn:hover {
    border-color: #8e44ad;
    color: #8e44ad;
}

.format-btn.active {
    border-color: #8e44ad;
    background: #f4ecf7;
    color: #8e44ad;
}

.export-filename-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.export-filename-field label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.export-filename-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d5dbdb;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
}

.export-styles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.export-fieldset {
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0;
}

.export-fieldset legend {
    font-weight: 600;
    color: #2c3e50;
    padding: 0 8px;
    font-size: 14px;
}

.export-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.export-field:last-child {
    margin-bottom: 0;
}

.export-field label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.export-field input[type="number"],
.export-field input[type="text"],
.export-field select {
    width: 120px;
    padding: 5px 8px;
    border: 1px solid #d5dbdb;
    border-radius: 4px;
    font-size: 13px;
    color: #2c3e50;
}

.export-field input[type="color"] {
    width: 40px;
    height: 30px;
    padding: 2px;
    border: 1px solid #d5dbdb;
    border-radius: 4px;
    cursor: pointer;
}

.export-field.export-checkbox {
    justify-content: space-between;
}

.export-field.export-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8e44ad;
}

.export-modal-footer {
    display: flex;
    justify-content: space-between;
}

.export-modal-footer .cancel-btn {
    background: #95a5a6;
}

.export-modal-footer .save-btn {
    background: #8e44ad;
    font-size: 16px;
    padding: 10px 30px;
}

.export-modal-footer .save-btn:hover {
    background: #6c3483;
}

@media (max-width: 700px) {
    .export-styles-grid {
        grid-template-columns: 1fr;
    }
}

#dashboardBtn {
    background: #f39c12;
    margin-left: 10px;
}

#dashboardBtn:hover:not(:disabled) {
    background: #d68910;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.login-icon {
    font-size: 18px;
}

.login-info {
    color: #95a5a6;
    font-size: 14px;
    line-height: 1.4;
}

.login-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    color: #2c3e50;
}

.login-content input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.login-content form {
    width: 100%;
}

.user-info-panel {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.user-info-panel .user-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-info-panel .user-toggle-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8ecf1;
    min-width: 200px;
    flex-direction: column;
    gap: 12px;
    animation: dropdownFadeIn 0.15s ease;
}

.user-dropdown.open {
    display: flex;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-icon {
    font-size: 16px;
    color: #3498db;
}

.user-details span:last-child {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.logout-btn {
    padding: 8px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.logout-btn:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive design para login */
@media (max-width: 768px) {
    .login-modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .login-header {
        padding: 25px 20px;
    }
    
    .login-content {
        padding: 30px 20px;
    }
    
    .user-info-panel {
        top: 10px;
        right: 10px;
    }

    .user-dropdown {
        min-width: 180px;
    }
}

/* Estilos para editor de índice */
.sections-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e8ecf1;
    border-bottom: none;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
}

.edit-index-btn {
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.edit-index-btn:hover {
    background: #1f618d;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid #e8ecf1;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e8ecf1;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #e74c3c;
    transform: scale(1.1);
    background: #fadbd8;
    border-radius: 50%;
}

.modal-body {
    padding: 25px 30px;
    flex: 1;
    overflow-y: auto;
}

.index-editor-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.index-tree {
    flex: 1;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.index-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.control-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.3);
}

.control-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    opacity: 0.6;
    cursor: not-allowed;
}

.tree-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    transition: all 0.2s ease;
}

.tree-item:hover {
    background: #f0f4f8;
    border-color: #2980b9;
}

.tree-item.selected {
    background: #2980b9;
    color: white;
    border-color: #1a5276;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.15);
}

.tree-item-content {
    flex: 1;
}

.tree-item-pages {
    background: #34495e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 8px;
    font-weight: 700;
}

.section-editor {
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e8ecf1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

.save-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.save-btn:hover {
    background: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cancel-btn:hover {
    background: #7f8c8d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Actualizar estilos de botones de control */
.control-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.3);
}

.control-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para plantillas sugeridas mejorados */
.templates-toggle {
    background: #27ae60;
    transition: all 0.2s ease;
}

.templates-toggle:hover {
    background: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.templates-dropdown {
    animation: fadeIn 0.2s ease-in-out;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8ecf1;
}

.templates-dropdown::-webkit-scrollbar {
    width: 8px;
}

.templates-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.templates-dropdown::-webkit-scrollbar-thumb {
    background: #2980b9;
    border-radius: 4px;
}

.templates-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1f618d;
}

/* Estilos para editor de plantillas */
.templates-editor {
    border: none;
    border-radius: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.templates-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.template-item {
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(245, 245, 245, 0.8);
}

.template-item:hover {
    background: linear-gradient(135deg, #e0f7ff, #f0f9ff);
    border-left: 3px solid #00d4ff;
    transform: translateX(4px);
}

.template-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.template-input-group textarea {
    flex: 1;
    resize: vertical;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    transition: all 0.2s ease;
}

.template-input-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    background: rgba(245, 245, 245, 0.5);
}

.add-template-btn {
    background: linear-gradient(135deg, #06d6a0, #00d4aa);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    height: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 214, 160, 0.3);
}

/* Responsive para plantillas */
@media (max-width: 768px) {
    .templates-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
        max-height: 60%;
    }
    
    .template-input-group {
        flex-direction: column;
    }
    
    .add-template-btn {
        align-self: flex-end;
    }
    
    .container {
        min-height: 100%;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
    }

    .sections-list {
        max-height: 300px;
    }
    
    .editor-area {
        min-width: 100%;
    }
}

/* Mejoras adicionales para dropdown de plantillas */
.templates-dropdown {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.templates-dropdown::-webkit-scrollbar {
    width: 8px !important;
}

.templates-dropdown::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f9f9f9, #f5f5f5) !important;
    border-radius: 4px !important;
}

.templates-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #0099ff) !important;
    border-radius: 4px !important;
}

.templates-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099ff, #0077cc) !important;
}

/* Estilos para el Constructor de Índices JSON */
.index-builder-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 15px;
    overflow: hidden;
}

.index-builder-header {
    background: #2980b9;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.index-builder-header h3 {
    margin: 0;
    font-size: 1em;
    color: white;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.index-builder-content {
    padding: 15px;
    background: white;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.builder-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.builder-btn {
    background: #2980b9;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 150px;
}

.builder-btn:hover:not(:disabled) {
    background: #1f618d;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
}

.builder-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.builder-tree {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    max-height: 300px;
    overflow-y: auto;
    min-height: 80px;
}

.builder-tree-empty {
    color: #999;
    text-align: center;
    padding: 20px 10px;
    font-style: italic;
}

.builder-add-bar {
    display: flex;
    margin-bottom: 10px;
}

.builder-add-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    width: 100%;
    transition: all 0.2s ease;
}

.builder-add-btn:hover {
    background: #229954;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.builder-tree-item {
    padding: 8px 12px;
    margin: 5px 0;
    background: white;
    border-left: 3px solid #2980b9;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.builder-tree-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.builder-tree-item.selected {
    background: #ecf0f1;
    border-left-color: #1f618d;
    font-weight: 600;
}

.builder-tree-item-content {
    flex: 1;
}

.builder-tree-item-level {
    color: #999;
    font-size: 0.85em;
    margin-right: 10px;
}

.builder-tree-item-pages {
    background: #2980b9;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-right: 10px;
}

.builder-tree-item-actions {
    display: flex;
    gap: 5px;
}

.item-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.builder-tree-item:hover .item-action-btn {
    opacity: 1;
}

.item-action-btn:hover {
    background: #e0e0e0;
}

.item-action-btn-delete:hover {
    background: #fde8e8;
}

.builder-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

.builder-form h4 {
    margin-bottom: 12px;
    color: #333;
}

.builder-form .form-group {
    margin-bottom: 12px;
}

.builder-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.builder-form input,
.builder-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
    transition: border-color 0.2s ease;
}

.builder-form input:focus,
.builder-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.builder-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.builder-form .save-btn,
.builder-form .cancel-btn {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.builder-form .save-btn {
    background: #27ae60;
    color: white;
}

.builder-form .save-btn:hover {
    background: #229954;
}

.builder-form .cancel-btn {
    background: #e74c3c;
    color: white;
}

.builder-form .cancel-btn:hover {
    background: #c0392b;
}

.builder-info {
    padding: 12px;
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    border-radius: 3px;
    color: #1565c0;
    font-size: 0.95em;
    text-align: center;
}

/* ===== AGENTE EVALUADOR ===== */

#evaluateBtn {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#evaluateBtn:hover:not(:disabled) {
    background-color: #7d3c98;
}

#evaluateBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.evaluate-modal-content {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.evaluate-modal-body {
    overflow-y: auto;
    max-height: 70vh;
    padding: 20px;
}

.evaluate-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Summary grid */
.eval-summary-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.eval-summary-card {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eval-summary-number {
    font-size: 24px;
    font-weight: 700;
}

.eval-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eval-total { background: #eef2f7; color: #2c3e50; }
.eval-critica { background: #fdecea; color: #c0392b; }
.eval-alta { background: #fef5e7; color: #e67e22; }
.eval-media { background: #fef9e7; color: #f39c12; }
.eval-baja { background: #eafaf1; color: #27ae60; }

.eval-summary-text {
    font-size: 13px;
    color: #7f8c8d;
    margin: 4px 0 16px;
}

/* Sections list */
.eval-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.eval-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s;
}

.eval-section-header:hover {
    background: #f0f0f0;
}

.eval-section-clean .eval-section-header {
    border-left: 3px solid #27ae60;
}

.eval-section-issues .eval-section-header {
    border-left: 3px solid #e74c3c;
}

.eval-section-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eee;
    color: #555;
}

.eval-section-issues .eval-section-badge {
    background: #fdecea;
    color: #c0392b;
}

.eval-section-findings {
    display: none;
    padding: 10px 14px;
    border-top: 1px solid #eee;
}

.eval-section.expanded .eval-section-findings {
    display: block;
}

/* Individual findings */
.eval-finding {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid #bdc3c7;
    background: #fafafa;
}

.eval-finding:last-child {
    margin-bottom: 0;
}

.eval-severity-critica { border-left-color: #c0392b; background: #fef5f5; }
.eval-severity-alta { border-left-color: #e67e22; background: #fef9f0; }
.eval-severity-media { border-left-color: #f1c40f; background: #fffdf0; }
.eval-severity-baja { border-left-color: #27ae60; background: #f0fdf4; }

.eval-finding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.eval-finding-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    background: #eee;
    padding: 2px 6px;
    border-radius: 3px;
}

.eval-finding-severity {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.eval-severity-critica .eval-finding-severity { background: #c0392b; color: white; }
.eval-severity-alta .eval-finding-severity { background: #e67e22; color: white; }
.eval-severity-media .eval-finding-severity { background: #f1c40f; color: #333; }
.eval-severity-baja .eval-finding-severity { background: #27ae60; color: white; }

.eval-finding-text,
.eval-finding-evidence,
.eval-finding-suggestion {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    color: #333;
}

.eval-finding-text {
    font-style: italic;
    color: #555;
}

.eval-finding-suggestion {
    color: #2980b9;
}

.evaluate-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.evaluate-modal-footer .cancel-btn[id^="download"] {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.evaluate-modal-footer #loadLastEvaluateBtn {
    margin-right: auto;
}