/* =========================================================

   ESTILO GENERAL DEL SISTEMA DE COBROS UNIVERSITARIO
   Instituto Universitario Luis Felipe Domínguez Suárez
   ========================================================= */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333;
}

/* =========================================================
   LOGIN
   ========================================================= */
.login-container { 
  width: 360px; 
  margin: 15px auto;
}

.login-card {
  background: hsl(0, 0%, 90%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  margin-top: 0px;
}

.login-card h1 {
  font-size: 26px;  /* <-- Cambia a lo que desees */
  color: #000000;
  margin-bottom: 5px;
  line-height: 1.2;
}

.login-card h2 {
  font-size: 20px;  /* <-- Cambia tamaño */
  color: #000000;
  margin-top: 10px;
  margin-bottom: 5px;
}

.login-card p {
  font-size: 14px;  /* <-- Cambia tamaño */
  color: #555;
  line-height: 1.3;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* evita centrarlo verticalmente */
    padding-top: 0px;            /* reduce al mínimo el espacio arriba */
    margin-top: 0;               /* por si el navegador agrega margen */
    margin-bottom: 0;

}

.logo {
  width: 150px;
  margin-top: 10px;

}

.error {
  background: #ffdede;
  color: #b60000;
  padding: 8px;
  border-radius: 6px;
  margin: 10px 20px;
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
  padding: 0 0px;
  margin-top: 10px;
}

input {
 
  margin: 8px 0;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 38px;
  font-size: 15px;
}

button {
  background: #1e6b3b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* espacio para el ícono */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #555;
}

.toggle-password:hover {
    color: #000;
}


button:hover { background: #175730; }

.links { margin-top: 10px; font-size: 13px; }

.links a {
  color: #1e6b3b;
  text-decoration: none;
  display: block;
}

footer {
  background: #1e6b3b;
  color: white;
  padding: 12px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 16px 16px;
}

footer .social img { width: 18px; margin: 0 4px; }

/* =========================================================
   DASHBOARD GENERAL
   ========================================================= */
.dashboard-body {
  display: flex;
  margin: 0;
  background-color: #f6f9f7;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #004c2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.1);

}

.sidebar-logo {
text-align: center;
padding: 20px 10px;
}

.sidebar-logo img {
width: 100%;                /* ocupa todo el ancho disponible */
max-width: 150px;           /* limita su tamaño máximo */
height: auto;               /* mantiene la proporción original */
object-fit: contain;        /* evita que se recorte */
border-radius: 0;           /* sin redondear */
display: block;
margin: 0 auto 10px;        /* centrado */
}

.sidebar-logo h2 {
font-size: 16px;
text-align: center;
color: #fff;
margin-top: 10px;
line-height: 1.2;
}

.menu {
display: flex;
flex-direction: column;
width: 100%;
margin-top: 20px;
        
}

.menu a {
padding: 12px 20px;
color: white;
text-decoration: none;
display: block;
}

.menu a.active,
.menu a:hover {
background-color: #007a4d;
}

.main-content {
margin-left: 250px;
padding: 30px;
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */
.main-content {
  margin-left: 250px;
  padding: 40px 30px;
  width: calc(100% - 250px);
  background-color: #f8f9fa;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
}

.main-header h1 {
  color: #1e6b3b;
  margin-bottom: 5px;
}

.main-header p {
  color: #444;
}

/* =========================================================
   TARJETAS DEL DASHBOARD
   ========================================================= */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

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

.card h3 {
  color: #1e6b3b;
  margin-bottom: 10px;
}

.card p {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 25px;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.modal-logo {
    width: 120px;        /* tamaño del logo */
    display: block;
    margin: 0 auto 15px auto;  /* centrado y espacio inferior */
    object-fit: cover;
}


.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Opcional: estilos del formulario */
.fs-field {
    margin-bottom: 12px;
}

.fs-label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.fs-input,
.fs-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.fs-button {
    padding: 10px 15px;
    width: 100%;
    border: none;
    background-color: #1e6b3b;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.fs-button:hover {
    background-color: #1e6b3b;
}



/* =========================================================
   FORMULARIOS Y FILTROS COMUNES
   ========================================================= */
fieldset {
  border: 2px solid #1e6b3b;
  border-radius: 8px;
  margin-bottom: 25px;
  padding: 15px 20px 20px;
  background-color: white;
}

legend {
  color: #1e6b3b;
  font-weight: bold;
  font-size: 15px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.form-actions {
  text-align: right;
  margin-top: 20px;
}

.form-actions button {
  background-color: #1e6b3b;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 5px;
}

.form-actions button:hover {
  background-color: #175730;
}

.filtros {
  display: flex;
  gap: 10px;
  margin: 0 auto 15px auto;
  max-width: 950px;
}

.filtros input,
.filtros select {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
---------------------------------------------
/* =========================================================
   TABLAS GENERALES
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 14px;
}

th {
  background-color: #1e6b3b;
  color: white;
}

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

.acciones button {
  margin-right: 5px;
  background-color: #1e6b3b;
  border-radius: 6px;
  padding: 6px 10px;
}

.acciones button:hover {
  background-color: #175730;
}

/* =========================================================
   MÓDULO ESTUDIANTES
   ========================================================= */
form#formAlumno {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin: 0 auto 30px auto;
  max-width: 950px;
}



/* Historial */
.historial {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
/* =========================================================
   MÓDULO PAGOS
   ========================================================= */
.pago-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}

.pago-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* === Tabla de conceptos === */
.tabla-cobros {
  flex: 1 1 60%;
  min-width: 500px;
}

.tabla-cobros table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tabla-cobros th,
.tabla-cobros td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.tabla-cobros th {
  background-color: #1e6b3b;
  color: white;
  font-weight: 600;
}

.tabla-cobros tr:hover {
  background-color: #f8f9f8;
}

.tabla-cobros td input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
}

.total-section {
  text-align: right;
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
  color: #1e6b3b;
}

/* === Perfil del estudiante === */
.perfil-estudiante {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-perfil {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  width: 240px;
}

.card-perfil h3 {
  color: #1e6b3b;
  margin-bottom: 6px;
}

.card-perfil p {
  color: #444;
  font-size: 14px;
  margin-bottom: 15px;
}

.foto-estudiante {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f1f1f1;
  margin-bottom: 10px;
}

/* === Botón de pago === */
.pago-btn {
  background-color: #1e6b3b;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
}

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


/* =========================================================
   REPORTES PDF
   ========================================================= */
.reporte-container {
  background: white;
  padding: 25px;
  border-radius: 10px;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.reporte-container h2 {
  color: #1e6b3b;
  margin-bottom: 15px;
}

.reporte-container .desc {
  color: #444;
  margin-bottom: 20px;
  font-size: 14px;
}

.reporte-container .btn-pdf {
  background-color: #c92a2a;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.reporte-container .btn-pdf:hover {
  background-color: #9b1b1b;
}

/* Asegurar que ambos inputs se vean IGUALES */
input[type="text"],
input[type="password"] {
  width: 100%;
  background: #ffffff;
  margin: 8px 0;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 38px;
  font-size: 15px;
  box-sizing: border-box;
  appearance: none;
}


/* === CONTENEDOR GENERAL DEL LOGIN (IMAGEN + FORMULARIO) === */
.login-wrapper {
    display: flex;
    align-items: center;      /* centra verticalmente al personaje */
    justify-content: flex-start;
    gap: 340px;                /* separación entre personaje y login */
    padding-left: 140px;       /* margen desde el borde izquierdo */
    min-height: 100vh;        /* ocupa toda la altura */
}

/* Imagen del personaje */
.login-character {
    max-width: 380px;
    height: auto;
    object-fit: contain;
}

/* Alinear el login container a la izquierda SIN afectar el diseño */
.login-container {
    margin: 0;               /* elimina el centrado automático */
}


/* fila cuando se selecciona (Mejora B) */
.fila-activa {
    background: #d7ffd7 !important;
    border-left: 4px solid #00a000;
}

/* mini mini foto */
.thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

/* Ocultar flechas en input type number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}

/* =========================================================
   RESPONSIVE LOGIN – ORDEN CORRECTO EN MÓVILES
   ========================================================= */

@media (max-width: 768px) {

  /* Cambiar a columna */
  .login-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-left: 0;
    padding-top: 20px;
  }

  /* Login arriba */
  .login-container {
    order: 1;
    width: 100%;
    max-width: 360px;
  }

  /* Mascota abajo */
  .login-character {
    order: 2;
    max-width: 260px;
  }

  /* Ajustes dashboard */
  .dashboard-body {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  /* Módulo pagos */
  .pago-container {
    flex-direction: column;
  }
}

/* =========================================================
   SIDEBAR HAMBURGUESA – MÓVILES
   ========================================================= */

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  align-self: flex-start;
  margin-left: 15px;
  margin-bottom: 10px;
}

/* ---------- MODO MÓVIL ---------- */
@media (max-width: 768px) {

  .dashboard-body {
    flex-direction: column;
  }

  /* Sidebar como barra superior */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-end; /* logo a la derecha */
    padding: 10px 15px;
  }

  /* Mostrar botón hamburguesa */
  .hamburger {
    display: block;
    align-self: flex-start;
  }

  /* Logo alineado a la derecha */
  .sidebar-logo {
    width: 40%;
    text-align: left;
  }

  .sidebar-logo img {
    margin-right: 0;
    margin-left: auto;
  }

  /* Menú oculto por defecto */
  .menu {
    display: none;
    width: 50%;
    margin-top: 10px;
  }

  /* Menú visible */
  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 12px 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  /* Contenido debajo del sidebar */
  .main-content {
    margin-left: 0;
    width: 80%;
    padding: 20px;
  }
}
