/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 15 abr 2025, 09:07:47
    Author     : jaayala
*/

:root {
    --flacso-primary: #003366;
    --flacso-secondary: #f5f5f5;
    --flacso-accent: #e9ecef;
}

body {
    background-color: var(--flacso-secondary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
}

.logo-container {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    flex: 1;
    min-width: 300px;
}

.login-title {
    margin-bottom: 1.5rem;
    color: var(--flacso-primary);
    font-weight: 600;
    text-align: center;
}

.form-label {
    font-weight: 500;
    color: var(--flacso-primary);
}

.btn-login {
    background-color: var(--flacso-primary);
    border: none;
    padding: 0.5rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #002244;
    transform: translateY(-2px);
}

.login-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.login-links a {
    color: var(--flacso-primary);
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 0.5rem;
}

.login-links a:hover {
    color: #001a33;
    text-decoration: underline;
}

.separator {
    display: inline-block;
    margin: 0 0.5rem;
    color: #6c757d;
}

.ui-widget-header {
    background: #ffffff !important;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .login-box {
        padding: 1.5rem;
    }

    .logo {
        max-width: 200px;
    }
}

/* Estilo para el diálogo de carga */
/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-gif {
    width: 90px;
    height: 80px;
}

/* Ajustes para PrimeFaces con Bootstrap */
.ui-panelgrid .ui-grid-responsive .ui-grid-row {
    border: none !important;
}

@media (max-width: 768px) {
    .responsive-column {
        margin-bottom: 15px;
    }
}

/* Estilos personalizados para el tab menu */
.nav-tabs-custom {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs-custom .ui-menuitem-link {
    padding: 0.75rem 1.5rem;
    border: none !important;
    border-radius: 0 !important;
}

.nav-tabs-custom .active .ui-menuitem-link {
    border-bottom: 3px solid var(--primary-color) !important;
    font-weight: 500;
}

/* Estilo para el botón de scroll */
.btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Estilos para la tabla responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Anchos mínimos para columnas */
.min-width-80 {
    min-width: 80px;
}
.min-width-100 {
    min-width: 100px;
}
.min-width-120 {
    min-width: 120px;
}
.min-width-150 {
    min-width: 150px;
}
.min-width-200 {
    min-width: 200px;
}
.min-width-250 {
    min-width: 250px;
}

/* Estilos para la tabla */
.auto-width-table th, .auto-width-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ajustes para PrimeFaces con Bootstrap */
.ui-datatable table {
    table-layout: auto !important;
    width: 100% !important;
}

.ui-datatable thead th {
    white-space: nowrap;
    position: relative;
}

/* Mejora visual para mensajes de error */
.invalid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
}

/* Estilo para el diálogo modal */
.bootstrap-dialog {
    max-width: 90%;
    width: 900px !important;
}

/* Mejora la legibilidad en móviles */
@media (max-width: 576px) {
    .bootstrap-dialog {
        margin: 10px auto;
    }

    .dialog-content {
        padding: 1rem !important;
    }
}


/* Estilos para el diálogo de PDF */
.pdf-viewer-dialog .ui-dialog-content {
    padding: 0;
    overflow: hidden;
}

.pdf-container-panel {
    border: none;
    height: 100%;
}

.pdf-viewer-container {
    position: relative;
    height: calc(100vh - 150px);
    width: 100%;
}

.pdf-embed {
    border: none;
    height: 100%;
    width: 100%;
}

.pdf-loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
}

.loading-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dialog-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.dialog-footer {
    text-align: right;
    padding: 0.5rem;
    border-top: 1px solid #e5e5e5;
}

.confirmation-dialog {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.confirmation-message {
    line-height: 1.6;
    color: #495057;
}

.confirmation-list {
    list-style-type: none;
}

.confirmation-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.btn-confirm {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
}

.btn-review {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
}

.btn-confirm .pi, .btn-review .pi {
    margin-right: 0.5rem;
}

.modal-header {
    border-bottom: none !important;
}

.confirmation-success {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-title {
    color: var(--primary-color);
    font-weight: 600;
}

.alert-success {
    background-color: #f6ffed;
    border-color: #b7eb8f;
    color: #389e0d;
    padding: 1rem;
    border-radius: 4px;
}

.steps-title {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.steps-list {
    list-style: none;
    padding-left: 0;
}

.step-item {
    padding: 0.5rem 0;
}

.step-icon {
    color: var(--primary-color);
    margin-top: 2px;
}

.institution-thanks {
    color: var(--text-secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-home {
    background-color: var(--primary-color) !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.activation-card {
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.activation-icon {
    font-size: 2rem;
    margin-right: 10px;
    vertical-align: middle;
    color: #2196F3;
}

.checklist-item {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.checkmark {
    color: #4CAF50;
    margin-right: 10px;
}

@media (max-width: 640px) {
    .activation-card {
        margin: 10px;
        width: auto;
    }
}

/* Estilos para el TabMenu con Bootstrap */
.nav-tabs-custom {
    border-bottom: none !important;
}

.nav-tabs-custom .ui-tabmenu-nav {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs-custom .ui-menuitem {
    margin-bottom: -1px;
}

.nav-tabs-custom .ui-menuitem-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
}

.nav-tabs-custom .ui-menuitem-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs-custom .ui-state-active .ui-menuitem-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 3px solid #007bff !important;
}

.nav-tabs-custom .ui-menuitem-text {
    margin-left: 0.5rem;
}

/*bases del concurso texto*/
.contenido-bases {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
.contenido-bases table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.contenido-bases table,
.contenido-bases th,
.contenido-bases td {
    border: 1px solid #ddd;
}
.contenido-bases th,
.contenido-bases td {
    padding: 8px;
    text-align: left;
}
.contenido-bases th {
    background-color: #f2f2f2;
}
.contenido-bases tr:nth-child(even) {
    background-color: #f9f9f9;
}
.contenido-bases a {
    color: #0066cc;
    text-decoration: none;
}
.contenido-bases a:hover {
    text-decoration: underline;
}
.contenido-bases sup {
    font-size: 0.8em;
    vertical-align: super;
}