/* ======= ESTILO GENERAL ======= */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #c6f7ef ; /* color predominante */
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ======= CONTENEDORES GENERALES ======= */
.container,
.form-container,
.panel-container {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ======= TIPOGRAFÍA ======= */
h1,
h2,
h3 {
  color: #2e8b57; /* verde fuerte */
  font-weight: bold;
  margin-bottom: 1rem;
}
h5 {
  color: #6abf69; /* verde medio */
}
.form-label {
  font-weight: 500;
  color: #343a40;
}

/* ======= FORMULARIOS ======= */
.form-control,
.form-select {
  border: 1px solid #8ed1c2; /* borde verde-agua */
}
.form-control:focus,
.form-select:focus {
  border-color: #2e8b57;
  box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

/* ======= SELECT2 PERSONALIZADO ======= */
.select2-container--default .select2-selection--single {
  height: 38px;
  padding: 6px 12px;
  border: 1px solid #8ed1c2;
  border-radius: 0.375rem;
  font-size: 1rem;
  background-color: #d4f7ef;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 24px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 38px;
  right: 10px;
}
.select2-container {
  width: 100% !important;
}
.acciones a {
  display: inline-block;
  margin: 0 2px;
}

/* ======= CONTAINER MENU ======= */
.container-menu {
    max-width: 1400px !important;
    width: 100%;
    background-color: #dcece9 !important; /* fondo verde suave */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);

}

/* Fondo general para todos los formularios */
.fondo-app {
    background-color: #a4e8db !important; /* El mismo verde suave */
}


/* ======= LOGIN/SIGNUP PANEL ======= */
.container-login {
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background-color: #e3fff9; /* fondo suave */
}
.form-panel {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  transition: transform 0.6s ease-in-out;
  position: absolute;
  top: 0;
  padding: 2rem;
}
.login-panel {
  left: 0;
  z-index: 2;
}
.signup-panel {
  right: 0;
  z-index: 1;
}
.overlay {
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #2e8b57, #6abf69);
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 3;
  text-align: center;
  flex-direction: column;
}
.container-login.active .overlay {
  transform: translateX(100%);
}
.container-login.active .login-panel {
  transform: translateX(0%);
}
.container-login.active .signup-panel {
  transform: translateX(-100%);
  z-index: 2;
}
.form-box {
  width: 100%;
  max-width: 400px;
}
.form-box h2 {
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #2e8b57;
}
.btn-toggle {
  background: none;
  border: 2px solid white;
  padding: 0.6rem 2rem;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s;
}
.btn-toggle:hover {
  background: white;
  color: #2e8b57;
}

/* ======= MEJORAS DE PRESENTACIÓN DEL FORMULARIO ======= */
.form-container {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.form-container .row.g-3 > div {
  margin-bottom: 1rem;
}
.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="email"],
.form-container input[type="date"],
.form-container select {
  width: 100%;
}

/* ======= BOTONES ======= */
.btn-danger {
  background-color: #2e8b57;
  border: none;
}
.btn-danger:hover {
  background-color: #256d45;
}
.btn-success {
  background-color: #6abf69;
  border: none;
}
.btn-success:hover {
  background-color: #57a15a;
}
.btn-secondary {
  background-color: #92e0cf;
  border: none;
  color: #333;
}
.btn-secondary:hover {
  background-color: #6ab7a4;
  color: white;
}

.table-container {
  width: 100%; /* Aumenta el ancho total */
  margin: 0 auto; /* Centra horizontalmente */
  overflow-x: visible; /* Permite que las columnas se vean completas */
}

.table {
  font-size: 0.95rem; /* Tamaño de texto ajustado */
  white-space: nowrap; /* Evita que el texto se corte o salte de línea */
}

.custom-sticky-header {
    background-color: #c9f5d2 !important;   /* color table-danger */
    z-index: 10; 
}

.custom-sticky-header th {
    background-color: #f4b9be !important;
}

.table th,
.table td {
  padding: 0.75rem 1rem; /* Espacio interno más amplio */
}

.col-mesa {
  width: 100px !important;
  min-width: 100px !important;
  text-align: center;
}

/* Verde corporativo suave */
.bg-verde {
    background: #58e6a3  !important;   /* verde medio que ya usas */
    color: white !important;
}
.bg-verde-oscuro {
    background-color: #32af68 !important;
    color: white !important;
}

.bg-rojo-suave {
    background-color: #f8d7da !important;
    color: #a33a3a !important;
}

.footer-corporativo {
  
    background: #c6f7ef;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #444;
}

.footer-corporativo .footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.footer-corporativo .footer-text {
    line-height: 1.3;
}




/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 768px) {
  .container,
  .form-container,
  .panel-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .form-panel,
  .overlay {
    width: 100%;
    position: relative;
  }

  .form-panel {
    padding: 1rem;
    height: auto;
  }

  .container-login {
    flex-direction: column;
    height: auto;
  }

  .overlay {
    display: none;
  }

  .form-box {
    max-width: 90%;
  }

  .form-container .btn {
    width: 100%;
  }
  .table-container {
    width: 100%; /* En pantallas pequeñas, ocupa todo el ancho */
  }
  .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
  .table {
    font-size: 0.8rem;
    white-space: normal; /* Permite saltos de línea en móvil */
  }
}
