:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #2980b9;
  --light-color: #ecf0f3;
  --sidebar-width: 280px;
  --header-height: 70px;
}

body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f5f7fa;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

a{
  color: #777;
  text-decoration: none;
}

.padding-top{
  padding-top: 20px;
}

.login-page{
  width: 350px;
  margin: 7% auto;
  padding: 0 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.login-page .text-center{
  margin-bottom: 10px;
}

.box{
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

.page {
  position: relative;
  display: block;
  top: var(--header-height);
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 25px 20px 20px;
  min-height: calc(100vh - var(--header-height));
  background: #f5f7fa;
  transition: all 0.3s;
}

/* HEADER STYLES - Colores del sitio de referencia */
#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: var(--header-height);
  background: linear-gradient(to right, #2575ba, #2c3e50);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.header-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 25px;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-date {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
}

.header-date strong {
  color: #fff;
  font-weight: 600;
}

/* SIDEBAR STYLES - Colores del sitio de referencia */
.sidebar {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--sidebar-width);
  background: linear-gradient(to bottom, #2c5282, #1a365f);
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* RECUADRO SUPERIOR FIJO */
.sidebar-logo {
  padding: 15px 15px;
  text-align: center;
  background:  #2c3e50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-circle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.system-info {
  color: white;
}

.institute-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.system-name {
  font-size: 14px;
  opacity: 0.9;
}

/* USER PROFILE STYLES */
.user-profile {
  display: flex;
  align-items: center;
  position: relative;
}

.user-info-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 8px 15px 8px 8px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.user-info-container:hover {
  background: rgba(255, 255, 255, 0.25);
}

.user-info {
  color: white;
  margin-right: 12px;
  text-align: right;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.2;
}

.profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.dropdown-arrow {
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.3s;
  color: rgba(255, 255, 255, 0.8);
}

.profile-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 8px 0;
  min-width: 200px;
  margin-top: 10px;
  right: 0;
  left: auto;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  text-decoration: none;
}

.dropdown-menu li a i {
  margin-right: 10px;
  width: 18px;
  text-align: center;
  color: #6c757d;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa;
  color: #2c5282;
  padding-left: 20px;
}


.dropdown-menu li a:hover i {
  color: #2c5282;
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown .dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  z-index: 1000;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: none;
}


.profile-dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* COMPACT MENU STYLES - Colores del sitio de referencia */
.compact-menu {
  padding: 15px 0;
  min-height: 100%;
}

.menu-header {
  padding: 12px 10px 8px; /* Puntos más cerca - padding lateral reducido */
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 10px 8px 5px; /* Margen lateral reducido */
}

/* ELIMINAR BARRA DE DESPLAZAMIENTO PERO MANTENER FUNCIONALIDAD */
.compact-menu-container::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

.compact-menu-container::-webkit-scrollbar-thumb {
  background: transparent;
}

.compact-menu-container::-webkit-scrollbar-track {
  background: transparent;
}

.compact-menu-container::-webkit-scrollbar-button {
  display: none;
}

.compact-menu-container::-webkit-scrollbar-corner {
  background: transparent;
}

.compact-menu-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
  
  /* Ocultar scrollbar para todos los navegadores */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.compact-menu .menu-link {
  padding: 12px 15px; /* Reducido padding lateral */
  font-size: 14px;
  display: flex;
  align-items: center;
  color: #d8dcdf;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 4px 8px; /* Reducido margen lateral de 10px a 8px */
  position: relative;
}

.compact-menu .menu-link i:first-child {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.compact-menu .menu-link:hover {
  background: linear-gradient(90deg, rgba(37, 117, 186, 0.3), transparent);
  color: white;
  border-left: 3px solid #2575ba;
}

.compact-menu .menu-link.active {
  background: linear-gradient(90deg, rgba(37, 117, 186, 0.4), transparent);
  color: white;
  border-left: 3px solid #2575ba;
}

/* Submenús mejorados */
.compact-menu .submenu {
  padding-left: 15px; /* Reducido de 20px */
  list-style: none;
  display: none;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 5px 5px;
  margin: 0 8px 5px 8px; /* Reducido margen lateral de 15px a 8px */
  overflow: hidden;
}


.compact-menu .submenu .menu-link {
  padding: 10px 12px 10px 40px; /* Reducido padding y más a la izquierda */
  font-size: 13.5px;
  margin: 0;
  border-left: 0;
}

.compact-menu .submenu .menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left: 0;
}

/* Animación para íconos de dropdown */
.compact-menu .submenu-toggle.active .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-icon {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s;
}

/* Resto de estilos existentes */
.bg-green{
  background-color: #A3C86D;
}
.bg-blue{
  background-color: #7ACBEE;
}
.bg-yellow{
  background-color: #FDD761;
}
.bg-red{
  background-color: #FF7857;
}

.panel-default >.panel-heading{
  background-color: #f7f7f7;
  border-bottom: 2px solid #3498DB;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 15px;
  border-radius: 10px 10px 0 0;
}

.panel-box{
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-value{
  width: 60%;
}

.panel-icon{
  padding: 30px;
  width: 40%;
  border-radius: 0;
}

.panel-icon{
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 10px 0 0 10px;
}

.panel-value{
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 10px 10px 0;
}

.panel-value h2{
  margin-top: 30px;
}

.panel-icon i{
  line-height:65px;
  font-size: 40px;
  color: #fff;
}

.sale_report_header{
  padding: 15px 0;
}

table td h6{
  margin: 0 0 0.2em 0;
}

table tfoot tr td:first-child{
  border: 0;
}

table tfoot tr td:last-child{
  border-top: 1px solid #ccc;
}

table td h6,table tfoot tr td:last-child{
  color: #000;
  _font-size: 1.2em;
  font-weight: normal;
}

.form-control{
  color: #646464;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -moz-transition: all .15s ease-out;
  -webkit-transition: all .15s ease-out;
  transition: all .15s ease-out;
  padding: 10px 15px;
}

.form-control:focus{
  background: #f8f8f8;
  border-color: #3498DB;
  outline: 0;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
  -moz-box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.btn{
  border-radius: 10px;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
   transition: all 300ms ease-in-out;
   padding: 10px 20px;
   font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(to right, #2575ba, #2c3e50);
    border: none;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active{
    color: #fff;
    background: linear-gradient(to right, #2c3e50, #2575ba);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-success{
   background: linear-gradient(135deg, #2ecc71, #27ae60);
   border: none;
}

.btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active{
  background: linear-gradient(135deg, #27ae60, #219653);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-warning{
  background: linear-gradient(135deg, #e7c13e, #d0ac2c);
  border: none;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning.focus, .btn-warning:active, .btn-warning.active{
  background: linear-gradient(135deg, #d0ac2c, #b8941f);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-danger{
  background: linear-gradient(135deg, #ed5153, #bb282a);
  border: none;
}

.btn-danger:hover, .btn-danger:focus, .btn-danger.focus, .btn-danger:active, .btn-danger.active{
  background: linear-gradient(135deg, #bb282a, #9e2022);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.input-group-addon{
  background-color: #fcfcfc;
  border: 1px solid #dbdbdb;
  border-radius: 0;
}

input[type=file]{
  text-indent: -99999px;
}

td img.img-thumbnail{
  width: 125px;
  height: 125px;
  vertical-align: top;
  border-radius: 10px;
}

.img-avatar{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6e6e6;
}

.jumbotron{
  margin-bottom: 0;
  background: linear-gradient(to right, #2575ba, #2c3e50);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.list-group-item:first-child,.list-group-item:last-child{
  border-radius: 0;
}

.profile .jumbotron{
  border-radius: 10px 10px 0 0;
}

.profile .jumbotron h3{
  color: white;
}

img.img-size-2{
  width: 125px;
  height: 125px;
  border-radius: 10px;
}

/* Estilos para el home.php (página de bienvenida) */
.welcome-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.institute-banner {
  background: linear-gradient(to right, #2575ba, #2c3e50);
  border-radius: 15px;
  padding: 30px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.institute-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.institute-banner p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.user-welcome {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.user-welcome h1 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 10px;
}

.user-welcome .subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.user-welcome .last-access {
  color: #95a5a6;
  font-size: 0.9rem;
}

.system-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.stat-card i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
}

.stat-card h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.stat-card p {
  color: #7f8c8d;
  margin-bottom: 0;
}

.panel {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table thead {
  background-color: #f7f7f7;
  color: #333;
}

.table th, .table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table tr:hover {
  background-color: #f1f1f1;
}

.table th {
  font-weight: bold;
}

.welcome-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 20px;
  text-align: center;
}

.panel-default > .panel-heading {
  background-color: #f7f7f7;
  border-bottom: 2px solid #3498DB;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 18px;
}

.welcome-box h1 {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.welcome-box .subtitle {
  color: #7f8c8d;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* NUEVOS ESTILOS PARA HEADER MEJORADO */

/* Header izquierda con fecha y hora */
.header-left {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 15px;
}


/* Estilos para el nuevo diseño del sidebar */
.institute-names {
  text-align: center;
  margin-bottom: 10px;
  color: white;
}

.institute-line-1 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
}

.institute-line-2 {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.95;
  line-height: 1.2;
  margin-top: 3px;
}

/* Botón Sistema de Matrículas */
.system-name-btn {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 10px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 15px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.system-name-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Reorganización del sidebar-logo */
.sidebar-logo {
  padding: 15px 15px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -5px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  /* Para subir el logo: ajustar el padding o tamaño de imagen */
  padding: 5px; /* Añade espacio interno si es necesario */
}

.logo-circle img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* Mejoras al dropdown de perfil */
.profile-dropdown.open .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.dropdown-menu li a i {
  margin-right: 10px;
  width: 18px;
  text-align: center;
  color: #6c757d;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa;
  color: #2c5282;
  padding-left: 20px;
}

.dropdown-menu li a:hover i {
  color: #2c5282;
}

/* NUEVOS ESTILOS PARA FECHA Y HORA EN RECTÁNGULO OVALADO */

/* Header izquierda con fecha y hora */
.header-left {
  display: flex;
  align-items: center;
  margin-right: auto;
}



.header-date-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2; /* Mismo line-height que el usuario */
}

.header-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 0; /* Sin margen inferior */
  line-height: 1.2; /* Igual que user-name */
}

.header-time {
  font-size: 11px; /* Mismo tamaño que user-role (11px) */
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.2; /* Igual que user-role */
  opacity: 0.9; /* Misma opacidad que user-role */
}

/* REDUCIR TAMAÑO DE LA CAJA DEL DROPDOWN */
.dropdown-menu {
  min-width: 150px !important; /* Reducir el ancho mínimo */
  padding: 6px 0 !important; /* Reducir padding vertical */
}

.dropdown-menu li a {
  padding: 8px 12px !important; /* Reducir padding interno */
  font-size: 13px !important; /* Reducir ligeramente el tamaño de fuente */
}

.dropdown-menu li a i {
  font-size: 13px !important; /* Ajustar tamaño de iconos */
  width: 16px !important; /* Reducir ancho de contenedor de iconos */
}

/* ESTILOS PARA EL BOTÓN SALIR - CON LÍNEA DIVISORIA Y COLOR ROJO */
.dropdown-menu li:last-child {
  border-top: 1px solid #e9ecef;
  margin-top: 4px !important; /* Reducir margen superior */
  padding-top: 4px !important; /* Reducir padding superior */
}

.dropdown-menu li:last-child a {
  color: #dc3545 !important;
}

.dropdown-menu li:last-child a i {
  color: #dc3545 !important;
}

.dropdown-menu li:last-child a:hover {
  color: #fff !important;
  background-color: #dc3545 !important;
}

.dropdown-menu li:last-child a:hover i {
  color: #fff !important;
}

/* ESTILOS MEJORADOS PARA LA IMAGEN PRINCIPAL - MISMO ANCHO QUE EL BANNER */
.institution-image-container {
    width: 100%;
    text-align: center;
    margin: 30px 0;
    padding: 0 30px; /* Mismo padding que el banner */
    box-sizing: border-box;
}

.institution-main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 8px solid white;
    transition: all 0.3s ease;
    display: block;
}

.institution-main-image:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Ajustar el banner para que coincida exactamente con el ancho de la imagen */
.institute-banner {
    background: linear-gradient(to right, #2575ba, #2c3e50);
    border-radius: 15px;
    padding: 30px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Ajustar el contenedor de bienvenida para mejor flujo */
.user-welcome {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Ajustar estadísticas para mejor flujo */
.system-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
    .welcome-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .institute-banner,
    .user-welcome,
    .institution-image-container,
    .system-stats {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
    .welcome-container {
        padding: 15px;
    }
    
    .institute-banner,
    .user-welcome,
    .institution-image-container,
    .system-stats {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .institute-banner {
        padding: 25px 15px;
    }
    
    .user-welcome {
        padding: 20px 15px;
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
    .welcome-container {
        padding: 10px;
    }
    
    .institute-banner,
    .user-welcome,
    .institution-image-container,
    .system-stats {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .institute-banner {
        padding: 20px 10px;
    }
    
    .user-welcome {
        padding: 15px 10px;
    }
    
    .institution-main-image {
        border-width: 5px;
    }
    
    .institute-banner h2 {
        font-size: 1.8rem;
    }
    
    .institute-banner p {
        font-size: 1.1rem;
    }
    
    .user-welcome h1 {
        font-size: 1.8rem;
    }
}

/* ESTILOS MEJORADOS PARA COINCIDIR CON EL ESPACIADO DE LAS TABLAS */

/* Contenedor principal con el mismo espaciado que las tablas */
.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Panel styling para coincidir con las tablas */
.welcome-container .panel {
    margin-bottom: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.welcome-container .panel-body {
    padding: 20px;
}

/* Mensaje de bienvenida - con espaciado de tabla y estilo mejorado */
.user-welcome {
    text-align: center;
    padding: 30px;
    margin: 0;
    background: linear-gradient(to right, #2575ba, #2c3e50);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-welcome h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.user-welcome .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.user-welcome .last-access {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    display: block;
    margin-top: 15px;
    font-style: italic;
}

/* ESTILOS MEJORADOS PARA LA IMAGEN PRINCIPAL */
.institution-image-container {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.institution-main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 5px solid #f8f9fa;
    transition: all 0.3s ease;
    display: block;
}

.institution-main-image:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estadísticas con espaciado de tabla */
.system-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e6e6e6;
}

.stat-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.stat-card h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-card p {
    color: #7f8c8d;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
    .welcome-container {
        padding: 0 20px;
    }
}

/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
    .user-welcome h1 {
        font-size: 1.9rem;
    }
    
    .user-welcome .subtitle {
        font-size: 1.2rem;
    }
    
    .system-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
    .welcome-container .panel-body {
        padding: 15px;
    }
    
    .user-welcome {
        padding: 20px 15px;
    }
    
    .user-welcome h1 {
        font-size: 1.6rem;
    }
    
    .user-welcome .subtitle {
        font-size: 1.1rem;
    }
    
    .user-welcome .last-access {
        font-size: 0.9rem;
    }
    
    .system-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .institution-main-image {
        border-width: 3px;
    }
}

/* DISEÑO WOW PARA LA PÁGINA DE INICIO - CORREGIDO */

/* Contenedor principal */
.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Panel styling para coincidir con las tablas */
.welcome-container .panel {
    margin-bottom: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.welcome-container .panel-body {
    padding: 20px;
}

/* Tarjeta de bienvenida mejorada */
.welcome-card {
    background: linear-gradient(135deg, #2575ba 0%, #2c3e50 100%);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 117, 186, 0.3);
    margin-bottom: 25px;
}

.welcome-content {
    padding: 30px;
    color: white;
}

.welcome-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.welcome-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-name {
    color: #FFD700;
    font-weight: 800;
}

.welcome-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.welcome-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.access-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    opacity: 0.9;
}

.access-info i {
    color: #FFD700;
}

.user-role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Panel de imagen mejorado - VERSIÓN SIMPLIFICADA */
.image-panel {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.institution-hero {
    text-align: center;
}

/* Marco simplificado para la imagen */
.simple-image-frame {
    border: 5px solid transparent;
    border-radius: 12px;
    background: linear-gradient(45deg, #2575ba, #2c3e50);
    padding: 5px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.institution-hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.institution-hero-image:hover {
    transform: scale(1.02);
}

.image-caption h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.image-caption p {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

/* Estadísticas mejoradas */
.stats-panel {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-title {
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.enhanced-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e6e6e6;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    color: white;
}

.stat-icon.students {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-icon.payments {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.stat-icon.new {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-data h3 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.stat-data p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Efectos de animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-card {
    animation: fadeInUp 0.8s ease-out;
}

.image-panel {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stats-panel {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .enhanced-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .simple-image-frame {
        border-width: 3px;
    }
    
    .image-caption h3 {
        font-size: 1.5rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .welcome-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .simple-image-frame {
        border-width: 2px;
        padding: 3px;
    }
}

/* ESTILO PARA AUMENTAR EL TAMAÑO DEL NOMBRE DEL USUARIO EN HOME */
.welcome-card .user-name {
    font-size: 3.5rem !important;
    margin-top: 5px;
}


/* ESTILOS MEJORADOS PARA TABLAS - CENTRADO SOLO EN TITULOS */
.table thead th {
  text-align: center !important;
  vertical-align: middle;
  font-weight: bold !important;
  background-color: #f7f7f7;
  border-bottom: 2px solid #3498DB;
}

.table tbody td {
  text-align: left;
  vertical-align: middle;
}

/* Columna de acciones con ancho fijo */
.fixed-actions-column {
  width: 120px !important;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
}

/* ESTILOS UNIFICADOS PARA COLUMNAS DE ACCIONES EN TABLAS */
.table thead th.fixed-actions-column,
.table tbody td.fixed-actions-column {
  width: 120px !important;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
}

/* Contenedor de botones de acción */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
}

/* Botones de acción */
.btn-action {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
}




/* ESTILOS PARA LAS TARJETAS DE BIENVENIDA EN POSTULANTES Y CARRERAS */
.welcome-card {
    background: linear-gradient(135deg, #2575ba 0%, #2c3e50 100%);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 117, 186, 0.3);
    margin-bottom: 25px;
}

.welcome-content {
    padding: 30px;
    color: white;
}

.welcome-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.welcome-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-title .user-name {
    color: #FFD700;
    font-weight: 800;
}

.welcome-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.welcome-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.access-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    opacity: 0.9;
}

.access-info i {
    color: #FFD700;
}

.user-role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-role-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-details {
        flex-direction: column;
        gap: 15px;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .welcome-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size:2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.3rem;
    }
}

/* ESTILOS MEJORADOS PARA BOTONES DE ACCIÓN - CONSISTENTES CON TABLAS */
.btn-primary-enhanced {
    background: linear-gradient(135deg, #2575ba 0%, #2c3e50 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-enhanced:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #2575ba 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.btn-success-enhanced {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-success-enhanced:hover {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.btn-warning-enhanced {
    background: linear-gradient(135deg, #e7c13e 0%, #d0ac2c 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-warning-enhanced:hover {
    background: linear-gradient(135deg, #d0ac2c 0%, #b8941f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.btn-danger-enhanced {
    background: linear-gradient(135deg, #ed5153 0%, #bb282a 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-danger-enhanced:hover {
    background: linear-gradient(135deg, #bb282a 0%, #9e2022 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

/* Botones pequeños para formularios */
.btn-sm-enhanced {
    padding: 8px 16px;
    font-size: 14px;
}

/* Botones en formularios */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Estilos para formularios */
.form-panel {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.form-panel .panel-heading {
    background: linear-gradient(to right, #2575ba, #2c3e50);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
    margin: -25px -25px 25px -25px;
}

.form-panel .panel-heading h3 {
    margin: 0;
    font-weight: 600;
}

/* Campo ID deshabilitado */
.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* ESTILOS PARA HEADER FLOTANTE - MANTENIENDO DISEÑO ORIGINAL DE FECHA/HORA */
/* ESTILOS PARA HEADER FLOTANTE - SIN BORDES REDONDEADOS */
#header {
  position: fixed;
  z-index: 99;
  top: 15px; /* Separación del borde superior */
  left: calc(var(--sidebar-width) + 15px); /* Separación del sidebar */
  width: calc(100% - var(--sidebar-width) - 30px); /* Reducir ancho para márgenes */
  height: var(--header-height);
  background: linear-gradient(to right, #2575ba, #2c3e50);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border-radius: 0; /* Sin bordes redondeados */
  transition: all 0.3s;
  margin: 0;
}

/* Ajustar el contenido de la página para el header flotante */
.page {
  position: relative;
  display: block;
  top: calc(var(--header-height) + 30px); /* Más espacio para el header flotante */
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 25px 20px 20px;
  min-height: calc(100vh - var(--header-height) - 30px);
  background: #f5f7fa;
  transition: all 0.3s;
}

/* Mejoras al header container para el diseño flotante */
.header-container {
  display: flex;
  justify-content: flex-end; /* Volver al estilo original */
  align-items: center;
  padding: 0 25px;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* RESTAURAR ESTILOS ORIGINALES DE FECHA Y HORA */
.header-date {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
}

.header-date strong {
  color: #fff;
  font-weight: 600;
}

/* Ajustar el sidebar para que no se superponga */
.sidebar {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--sidebar-width);
  background: linear-gradient(to bottom, #2c5282, #1a365f);
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Responsive para el header flotante */
@media (max-width: 992px) {
  #header {
    left: 15px;
    width: calc(100% - 30px);
    border-radius: 0; /* Sin bordes redondeados en móvil */
  }
  
  .page {
    left: 0;
    width: 100%;
    top: calc(var(--header-height) + 45px);
  }
  
  /* Ajustar fecha en responsive */
  .header-date {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Efecto de elevación para el header */
#header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
              0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ESTILOS PARA HEADER STICKY AL HACER SCROLL */
#header {
  position: fixed;
  z-index: 99;
  top: 15px; /* Separación inicial del borde superior */
  left: calc(var(--sidebar-width) + 15px); /* Separación del sidebar */
  width: calc(100% - var(--sidebar-width) - 30px); /* Reducir ancho para márgenes */
  height: var(--header-height);
  background: linear-gradient(to right, #2575ba, #2c3e50);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border-radius: 0;
  transition: all 0.3s ease;
  margin: 0;
}

/* Header cuando se hace scroll (sticky) */
#header.scrolled {
  top: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Ajustar el contenido de la página para el header sticky */
.page {
  position: relative;
  display: block;
  top: calc(var(--header-height) + 30px); /* Espacio inicial */
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 25px 20px 20px;
  min-height: calc(100vh - var(--header-height) - 30px);
  background: #f5f7fa;
  transition: all 0.3s;
}

/* Cuando el header está sticky, ajustar el contenido */
#header.scrolled ~ .page {
  top: var(--header-height);
}

/* Responsive para el header sticky */
@media (max-width: 992px) {
  #header {
    left: 15px;
    width: calc(100% - 30px);
  }
  
  #header.scrolled {
    left: 0;
    width: 100%;
  }
  
  .page {
    left: 0;
    width: 100%;
    top: calc(var(--header-height) + 45px);
  }
  
  #header.scrolled ~ .page {
    top: var(--header-height);
  }
}

/* ESTILOS MEJORADOS PARA PÁGINA DE LOGIN - COHERENTES CON EL SISTEMA */

.login-page {
  width: 400px;
  margin: 5% auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid #e6e6e6;
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: white;
}

.login-form h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-weight: 700;
}

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

.login-form .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.login-form .input-group-text {
  background: #f8f9fa;
  border: 2px solid #e6e6e6;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.login-form .btn-login {
  background: linear-gradient(to right, #2575ba, #2c3e50);
  border: none;
  padding: 12px;
  font-weight: bold;
  width: 100%;
  border-radius: 8px;
  color: white;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.login-form .btn-login:hover {
  background: linear-gradient(to right, #2c3e50, #2575ba);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 14px;
}

/* Responsive para login */
@media (max-width: 768px) {
  .login-page {
    width: 90%;
    margin: 10% auto;
    padding: 20px;
  }
  
  .login-logo img {
    width: 80px;
    height: 80px;
  }
}

/* Ajustes para pantallas muy pequeñas en login */
@media (max-height: 600px) {
  .login-page {
    margin: 5% auto;
  }
}

/* Estilos para el loader de búsqueda */
#loader {
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loader p {
    margin-top: 15px;
    font-size: 16px;
    color: #2c3e50;
}

.fa-spinner {
    color: #3498db;
}


/* Estilos para reportes */
.welcome-card.reportes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
}

.welcome-card.reportes .welcome-icon {
    background: rgba(255, 255, 255, 0.2);
}

.form-inline .form-group {
    margin-bottom: 15px;
}

/* Estilos para la tabla de reportes */
#tablaReporte th {
    background-color: #f8f9fa;
    font-weight: bold;
}

#tablaReporte tr:hover {
    background-color: #f5f5f5;
}

/* Botones de exportación */
.btn-export {
    margin: 5px;
    padding: 8px 15px;
}

/* Gráfico responsive */
#chartPostulantes {
    max-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-inline .form-group {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .form-inline .form-control {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ESTILOS RESPONSIVE PARA TABLAS - MEJORADOS */
.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: white;
}

.table-responsive-custom table {
    min-width: 1200px;
    margin-bottom: 0;
}

/* Estilos para pantallas grandes */
@media (min-width: 1400px) {
    .table-responsive-custom table {
        min-width: 100%;
    }
}

/* Estilos para pantallas medianas */
@media (max-width: 1399px) and (min-width: 992px) {
    .table-responsive-custom {
        font-size: 13px;
    }
    
    .table th, .table td {
        padding: 8px 6px;
    }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 991px) {
    .table-responsive-custom {
        font-size: 12px;
        border-radius: 6px;
    }
    
    .table th, .table td {
        padding: 6px 4px;
    }
    
    .btn-action {
        width: 25px;
        height: 25px;
        padding: 0;
    }
    
    .btn-action .glyphicon {
        font-size: 11px;
    }
}

/* Scrollbar personalizado para tablas */
.table-responsive-custom::-webkit-scrollbar {
    height: 8px;
}

.table-responsive-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive-custom::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive-custom::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Indicador visual de que hay más contenido */
.table-responsive-custom {
    position: relative;
}

.table-responsive-custom::after {
    content: "← Desplaza →";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #7f8c8d;
    opacity: 0.7;
}

@media (min-width: 1400px) {
    .table-responsive-custom::after {
        display: none;
    }
}

