/* estilos.css - Estilos globales para NProgramas */

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #003366;
  min-height: 90px;
  display: flex;
  align-items: center;
}

header .container {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  max-height: 60px;
}

nav a.btn {
  transition: transform 0.2s ease-in-out;
}

nav a.btn:hover {
  transform: scale(1.05);
}

main {
  padding-top: 40px;
  padding-bottom: 40px;
}

h2, h3, h4 {
  color: #003366;
}

footer {
  background-color: #eaeaea;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
}

/* Estilo para formulario de login */
.login-container {
  max-width: 400px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container .form-control {
  font-size: 14px;
  padding: 8px 12px;
}

.login-container .btn {
  font-size: 14px;
  padding: 10px;
}

/* Estilo tabla 3D para mensajes */
.table-3d {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #ccc !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.table-3d thead {
  background: linear-gradient(to right, #f8f9fa, #e9ecef) !important;
  box-shadow: inset 0 -2px 0 #ccc !important;
}

.table-3d th {
  padding: 12px !important;
  font-weight: 600 !important;
  text-align: left !important;
  border-bottom: 1px solid #ccc !important;
  background-color: transparent !important;
}

.table-3d td {
  padding: 12px !important;
  border-bottom: 1px solid #eee !important;
  vertical-align: top !important;
  background-color: #fff !important;
}

.table-3d tbody tr:hover {
  background-color: #f3f7fc !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  transition: all 0.2s ease-in-out;
}

/* Botones 3D modernos */
.btn-3d {
  border-radius: 8px !important;
  box-shadow: 0 4px 0 #999 !important;
  transition: all 0.2s ease-in-out !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
}

.btn-3d:active {
  box-shadow: none !important;
  transform: translateY(2px);
}

/* Botón subir */
.btn-up {
  background-color: #0d6efd !important;
  color: #fff !important;
}

.btn-up:hover {
  background-color: #0b5ed7 !important;
  color: #fff !important;
}

/* Botón flotante subir */
.btn-float-up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #0d6efd;
  color: white;
  border-radius: 50px;
  padding: 10px 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

.btn-float-up:hover {
  background-color: #0b5ed7;
  transform: scale(1.08);
  text-decoration: none;
  color: white;
}

#btnIrArriba {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Oculto por defecto */
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.9;
}
#btnIrArriba:hover {
    opacity: 1;
}

.btn-ir-arriba i {
    font-size: 1.5rem; /* Puedes subir a 1.8rem si quieres aún más grande */
}
