/* 
 * Estilos principales del Sistema de Administración de Evaluaciones
 * Compatible con Bootstrap 4.6
 */

/* Variables de color */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #2c3e50;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header y navegación */
header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    margin: 0 15px;
    font-weight: 600;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    color: #ddd;
    text-decoration: none;
}

/* Navbar personalizado - Estructura mejorada */
.navbar-custom {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* Logo en desktop */
.navbar-custom .navbar-brand.d-none.d-md-flex {
    margin-right: 1rem;
    padding: 0;
}

/* Logo en móviles */
.navbar-custom .navbar-brand.d-md-none {
    flex-grow: 1;
    text-align: center;
}

/* Botón hamburguesa solo en móviles */
.navbar-custom .navbar-toggler.d-md-none {
    border: none;
    padding: 0.25rem 0.5rem;
}

/* Contenedor de menús colapsables */
.navbar-custom .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
}

/* Menú principal */
.navbar-custom .navbar-nav:first-child {
    flex-grow: 1;
    margin-left: 1rem;
}

/* Menú usuario - alineado a la derecha */
.navbar-custom .navbar-nav.ml-auto {
    margin-left: auto !important;
}

.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s;
}

.navbar-custom .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Responsive: en móviles los menús se apilan */
@media (max-width: 767.98px) {
    .navbar-custom .navbar-collapse {
        display: none !important;
    }
    
    .navbar-custom .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-custom .navbar-nav:first-child {
        margin-left: 0;
        width: 100%;
    }
    
    .navbar-custom .navbar-nav.ml-auto {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Contenedor principal */
#Contenedor {
    padding: 20px;
    min-height: calc(100vh - 150px);
}

/* Tarjetas personalizadas */
.card-custom {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

/* Botones personalizados */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 111, 165, 0.3);
    color: white;
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
}

.btn-danger-custom {
    background: linear-gradient(135deg, var(--danger-color) 0%, #bd2130 100%);
}

.btn-warning-custom {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
}

/* Tablas personalizadas */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table-custom th {
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table-custom td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background-color: rgba(74, 111, 165, 0.05);
}

/* Formularios */
.form-control-custom {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.25);
}

/* Alertas personalizadas */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success-custom {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger-custom {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning-custom {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info-custom {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Badges personalizados */
.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-primary-custom {
    background-color: var(--primary-color);
    color: white;
}

.badge-success-custom {
    background-color: var(--success-color);
    color: white;
}

.badge-danger-custom {
    background-color: var(--danger-color);
    color: white;
}

/* Iconos */
.icon-large {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Utilidades */
.shadow-custom {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.rounded-custom {
    border-radius: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    #Contenedor {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .navbar-custom .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .table-custom th,
    .table-custom td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer-custom {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-custom a {
    color: #ddd;
    text-decoration: none;
}

.footer-custom a:hover {
    color: white;
    text-decoration: underline;
}

/* Mensajes del sistema */
#pMessage {
    animation: fadeIn 0.3s ease-out;
    margin-bottom: 20px;
}

/* Loading spinner */
.spinner-custom {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA LOGIN
   ============================================ */

/* Estilos para página de login */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    max-width: 900px;
    width: 100%;
    margin: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-body {
    padding: 40px;
}

.login-form-single {
    /* Estilos para formulario único (sin tabs) */
}

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.25);
}

/* Fix for select dropdown text truncation - vertical and horizontal */
select.form-control {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2; /* Más compacto */
    padding: 6px 15px; /* Reducido aún más padding vertical */
}

select.form-control option {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 6px 12px;
    line-height: 1.2;
}

/* Ensure select elements have consistent appearance */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    padding-right: 2.5em;
}

/* Alternative: smaller select style similar to form-control-sm */
select.form-control-sm {
    padding: 4px 12px;
    font-size: 0.875rem;
    line-height: 1.2;
    border-radius: 8px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.4);
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.login-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-features {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.login-features h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.login-features ul {
    list-style: none;
    padding-left: 0;
}

.login-features li {
    padding: 5px 0;
    color: #6c757d;
}

.login-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

.dni-info {
    background-color: #e8f4fd;
    border-left: 4px solid var(--info-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA LOGIN DE ADMINISTRADOR
   ============================================ */

/* Admin login - solo cambia colores del título y botón */
body.login-page.admin-login .login-header {
    background: linear-gradient(135deg, #ff8c00 0%, #ff5500 100%) !important;
}

body.login-page.admin-login .btn-login {
    background: linear-gradient(135deg, #ff8c00 0%, #ff5500 100%) !important;
}

body.login-page.admin-login .btn-login:hover {
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4) !important;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA SUBIDA DE ARCHIVOS
   ============================================ */

.upload-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.file-preview {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.file-preview:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.file-preview.dragover {
    border-color: var(--success-color);
    background: #d4edda;
}

.file-info {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.file-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

.file-info-label {
    font-weight: bold;
    color: #495057;
}

.file-info-value {
    color: #6c757d;
}

.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 20px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 0%;
    transition: width 0.3s;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.btn-upload {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 111, 165, 0.3);
    color: white;
}

.btn-upload:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-instructions {
    background: #e7f3ff;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 0 5px 5px 0;
    margin-bottom: 25px;
}

.upload-instructions ul {
    margin-bottom: 0;
}

.upload-instructions li {
    margin-bottom: 5px;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA GESTIÓN DE DOCUMENTOS
   ============================================ */

.table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.stats-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stats-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.document-icon {
    font-size: 1.5rem;
    color: var(--danger-color);
}

.file-size-badge {
    background: var(--light-color);
    color: #6c757d;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.type-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 3px 8px;
    font-size: 0.8rem;
}

.search-box {
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA GESTIÓN DE TRABAJADORES
   ============================================ */

.status-active {
    color: var(--success-color);
    font-weight: bold;
}

.status-inactive {
    color: var(--danger-color);
    font-weight: bold;
}

.form-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Responsive para login */
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .btn-login {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA CONSULTA DE DOCUMENTOS
   ============================================ */

.consulta-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-consulta {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 5px solid #4a6fa5;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4a6fa5;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.document-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4a6fa5;
    transition: all 0.3s;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.document-type-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.btn-download {
    background: linear-gradient(135deg, #4a6fa5 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 111, 165, 0.3);
    color: white;
}

.btn-consulta-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-consulta-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-consulta-logout {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-consulta-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.file-size {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 768px) {
    .header-consulta {
        padding: 20px 0;
    }
    
    .user-info-card {
        padding: 15px;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA DASHBOARD
   ============================================ */

.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-trabajadores {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-documentos {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-usuarios {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.card-activos {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.recent-item {
    border-left: 4px solid #4a6fa5;
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.welcome-card {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
    color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.quick-actions {
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #4a6fa5;
}

.action-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #4a6fa5;
}

/* Estilos para visualización de PIN/contraseña */
.password-display {
    padding: 8px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.password-display .pin-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #2c3e50;
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    border: 2px solid #4a6fa5;
    display: inline-block;
    margin: 4px 0;
}

.password-display .pin-display.expired {
    border-color: #ffc107;
    color: #856404;
    background-color: #fff3cd;
}

.password-display .pin-display.blocked {
    border-color: #dc3545;
    color: #721c24;
    background-color: #f8d7da;
}

.password-display .pin-display.dni {
    border-color: #17a2b8;
    color: #0c5460;
    background-color: #d1ecf1;
}

.password-display .status-badge {
    font-size: 0.85rem;
    padding: 4px 8px;
    margin-right: 8px;
}

.password-display .expiry-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

/* ============================================
   ESTILOS PARA EMPRESAS (COLORES VERDES)
   ============================================ */

/* Variables de color para empresas */
:root {
    --empresa-primary: #28a745;
    --empresa-secondary: #1e7e34;
    --empresa-light: #d4edda;
    --empresa-dark: #155724;
}

/* Estilos para login de empresas */
.login-tabs-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-tabs-container .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.login-tabs-container .nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.login-tabs-container .nav-tabs .nav-link:hover {
    color: var(--empresa-primary);
    background-color: #f8f9fa;
}

.login-tabs-container .nav-tabs .nav-link.active {
    color: var(--empresa-primary);
    background-color: white;
    border-bottom: 3px solid var(--empresa-primary);
}

.login-tabs-container .nav-tabs .nav-link#empresa-tab.active {
    color: var(--empresa-primary);
    border-bottom-color: var(--empresa-primary);
}

.login-tabs-container .nav-tabs .nav-link#trabajador-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.login-form-tab {
    padding: 10px;
}

.login-icon.empresa-icon {
    background: linear-gradient(135deg, var(--empresa-primary) 0%, var(--empresa-secondary) 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
}

.btn-empresa {
    background: linear-gradient(135deg, var(--empresa-primary) 0%, var(--empresa-secondary) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    width: 100%;
}

.btn-empresa:hover {
    background: linear-gradient(135deg, var(--empresa-secondary) 0%, #155724 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-trabajador {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    width: 100%;
}

.btn-trabajador:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 111, 165, 0.3);
}

/* Estilos para dashboard de empresas */
.stat-card.bg-success {
    background: linear-gradient(135deg, var(--empresa-primary) 0%, var(--empresa-secondary) 100%) !important;
}

.empresa-header {
    background: linear-gradient(135deg, var(--empresa-primary) 0%, var(--empresa-secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.empresa-badge {
    background-color: var(--empresa-light);
    color: var(--empresa-dark);
    border: 1px solid var(--empresa-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-outline-empresa {
    color: var(--empresa-primary);
    border-color: var(--empresa-primary);
}

.btn-outline-empresa:hover {
    color: white;
    background-color: var(--empresa-primary);
    border-color: var(--empresa-primary);
}

/* Estilos para navegación de empresas */
.navbar-empresa {
    background: linear-gradient(135deg, var(--empresa-primary) 0%, var(--empresa-secondary) 100%) !important;
}

.navbar-empresa .navbar-brand,
.navbar-empresa .nav-link {
    color: white !important;
}

.navbar-empresa .nav-link:hover {
    color: #e9ecef !important;
}

/* Estilos para tarjetas de empresa */
.card-empresa {
    border-left: 4px solid var(--empresa-primary);
}

.card-empresa .card-header {
    background-color: var(--empresa-light);
    color: var(--empresa-dark);
    border-bottom: 1px solid var(--empresa-primary);
}

/* Estilos para tablas de empresa */
.table-empresa thead {
    background-color: var(--empresa-light);
    color: var(--empresa-dark);
}

.table-empresa thead th {
    border-bottom: 2px solid var(--empresa-primary);
}

/* Estilos para alertas de empresa */
.alert-empresa {
    background-color: var(--empresa-light);
    border-color: var(--empresa-primary);
    color: var(--empresa-dark);
}

.alert-empresa .alert-link {
    color: var(--empresa-secondary);
    font-weight: 600;
}

/* Estilos para botones de empresa */
.btn-empresa-primary {
    background-color: var(--empresa-primary);
    border-color: var(--empresa-primary);
    color: white;
}

.btn-empresa-primary:hover {
    background-color: var(--empresa-secondary);
    border-color: var(--empresa-secondary);
    color: white;
}

.btn-empresa-outline {
    color: var(--empresa-primary);
    border-color: var(--empresa-primary);
}

.btn-empresa-outline:hover {
    color: white;
    background-color: var(--empresa-primary);
    border-color: var(--empresa-primary);
}