/* Fondo general y fuente */
body {
    min-height: 100vh;
    background: #131313;
    color: #f4f4f4;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Menú de navegación */
.menu-admin {
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    padding: 10px 0 12px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px #0003;
}
.menu-admin a {
    color: #c8c8c8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.menu-admin a:hover, .menu-admin a.active {
    background: #8855ff;
    color: #fff;
}


@media (max-width: 700px) {
  .menu-admin {
    gap: 7px;
    padding: 6px 0 8px 0;
  }
  .menu-admin a {
    font-size: 0.83rem;
    padding: 6px 8px;
  }
}





/* Logo arriba de cada sección */
.logo-gym {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 36px;      /* BAJA el logo y el título */
  margin-bottom: 8px;
}

.logo-img {
  max-width: 110px;
  max-height: 80px;
  display: block;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 3px 8px #0007);
  object-fit: contain;
}


/* Contenedores generales */
.panel-box, .form-box, .table-box {
    background: rgba(28, 28, 28, 0.98);
    border-radius: 28px;
    box-shadow: 0 8px 24px #0007;
    max-width: 100%;
    width: 96%;
    margin: 40px auto 0 auto;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.table-box {
    max-width: 1000px;
    padding: 24px 8px;
    margin: 40px auto 0 auto;
}

/* Formularios y campos */
input[type="text"], input[type="password"], input[type="date"], input[type="number"], input[type="email"], textarea, select {
    width: 100%;
    background: rgba(220, 220, 220, 0.12);
    border: none;
    border-radius: 22px;
    padding: 13px 18px;
    font-size: 1.08rem;
    color: #fff;
    margin-bottom: 18px;
    outline: none;
    box-shadow: 0 2px 6px #0001;
    font-family: inherit;
}
input::placeholder, textarea::placeholder {
    color: #bdbdbd;
    font-weight: 500;
    opacity: 1;
}
label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    color: #d0cdfc;
    font-weight: 500;
    font-size: 0.99rem;
}

/* Botones */
button, .btn-main {
    width: 100%;
    border: none;
    border-radius: 22px;
    background: #8855ff;
    color: #fff;
    padding: 13px 0;
    font-size: 1.13rem;
    font-weight: 600;
    margin: 12px 0 0 0;
    cursor: pointer;
    box-shadow: 0 2px 12px #8855ff22;
    transition: background 0.18s;
}
button:hover, .btn-main:hover {
    background: #673ab7;
}

/* Tablas */
.table-box table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    color: #fff;
}
.table-box th, .table-box td {
    padding: 13px 8px;
    border-bottom: 1px solid #222;
    text-align: left;
    font-size: 1rem;
}
.table-box th {
    background: #252525;
    font-weight: 600;
    color: #a6a6ff;
}
.table-box tr:nth-child(even) td {
    background: #181826;
}
.table-box tr:hover td {
    background: #222038;
}
.state-vencido { color: #f55; font-weight: bold; }
.state-pago { color: #7effa9; font-weight: bold; }
.state-inactivo { color: #ccc; font-weight: bold; }

/* Inputs con íconos para login, etc */
.icon-input {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}
.icon-input input {
    padding-left: 44px !important;
}
.icon-input i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.22rem;
    color: #bbb;
    z-index: 2;
    pointer-events: none;
}

/* Mensajes */
.error {
    color: #f55;
    text-align: center;
    margin-bottom: 12px;
 
    font-weight: bold;
    width: 100%;
}
.msg {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
       margin-top: 26px;
    text-align: center;
}

/* Responsive (móvil) */
@media (max-width: 700px) {
    .panel-box, .form-box, .table-box { max-width: 450px; padding: 15px 2vw; margin: 24px 0 0 0; }
    .menu-admin { font-size: 0.97rem; gap: 5px; }
    .logo-img { max-width: 90px; max-height: 70px; }
    .table-box th, .table-box td { font-size: 0.95rem; padding: 7px 4px;}
    .btn-main, button { font-size: 1rem; }
}

form {
    width: 100%;
    box-sizing: border-box;
}
input, textarea, select, button {
    box-sizing: border-box;
}

/* FILTROS EN UNA SOLA LÍNEA */
.filtros-linea {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
}
.filtros-linea input[type="text"],
.filtros-linea select,
.filtros-linea button {
    width: auto;
    min-width: 110px;
    max-width: 170px;
    flex: none;
    margin-bottom: 0;
}
.filtros-linea select { max-width: 160px; }
.filtros-linea button { max-width: 120px; }
.filtros-linea label {
    margin: 0 8px 0 0;
    color: #ccc;
    font-size: 1rem;
    font-weight: normal;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.filtros-linea input[type="checkbox"] {
    accent-color: #8855ff;
    margin-right: 4px;
}
@media (max-width: 700px) {
    .filtros-linea {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .filtros-linea input, .filtros-linea select, .filtros-linea button {
        width: 100%;
        max-width: 100%;
    }
}

#cedula {
  background: rgba(220, 220, 220, 0.12) !important;
  color: #fff !important;
  border-radius: 22px !important;
  border: none !important;
  text-align: center;
  padding: 13px 18px !important;
  font-size: 1.08rem !important;
  box-shadow: 0 2px 6px #0001 !important;
}

#cedula::placeholder {
  text-align: center;
}

/* Agranda el form y el input de cédula */
.form-box {
  max-width: 390px;
  padding: 20px 20px;
}







.icon-input {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}
.icon-input input {
  width: 100%;
  height: 58px;
  font-size: 1.32rem;
  padding-left: 90px !important;   /* más espacio para el icono */
  border-radius: 28px;
}
.icon-input i {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #bbb;
  z-index: 2;
  pointer-events: none;
}

.icon-input input::placeholder {
  color: #bdbdbd;
  font-weight: 500;
  opacity: 1;
}
/* Esconde el label de cédula */
label[for="cedula"] { display: none; }



/* Forzar que el formulario de pago esté en línea y sin saltos */
.table-box tbody tr td form {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Select más compacto y con padding ajustado */
.table-box tbody tr td form select[name="tipo"] {
    min-width: 110px !important;
    max-width: 140px !important;
    padding: 6px 10px !important;
    font-size: 0.9rem !important;
    border-radius: 22px !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* Botón más compacto y alineado */
.table-box tbody tr td form button.btn-main {
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
}



.table-box a {
  color: #fff !important;
  text-decoration: underline;
}

.table-box a:hover {
  color: #8855ff !important;
}








select, select option {
  color: #000 !important;      /* Texto negro dentro del select y las opciones */
  background-color: #fff !important;  /* Fondo blanco para que contraste */
}

/* Mantener el fondo oscuro general del select */
.table-box select {
  background-color: rgba(220, 220, 220, 0.12) !important;
  color: #fff !important;
}

/* Para que la flecha del select también se vea bien */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px; /* espacio para flecha */
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%238855ff'><polygon points='0,0 14,0 7,7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
}





dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px; /* espacio vertical y horizontal */
}

dt, dd {
  margin: 0;
  font-size: 1.1rem;
  color: #ccc;
}

dt {
  font-weight: bold;
  flex: 0 0 130px; /* ancho fijo para etiquetas */
  text-align: right;
  padding-right: 8px;
}

dd {
  flex: 1 1 auto;
  color: #eee;
}




.datos-container {
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;
  color: #ccc;
  font-size: 1.1rem;
}

.dato-item {
  display: flex;
  flex: 1 1 300px;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.dato-item strong {
  flex: 0 0 130px;
  text-align: right;
  color: #a6a6ff;
}

.dato-item span {
  flex: 1 1 auto;
  color: #eee;
  font-weight: 500;
  white-space: normal;
}






.filtros-linea.vertical {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.filtros-linea.vertical label {
    margin-bottom: 2px;
    color: #ccc;
    font-weight: 600;
}




@media (max-width: 700px) {
  .table-box {
    overflow-x: auto;
  }
  .table-box table {
    min-width: 400px; /* Ajustalo si tu tabla es más ancha */
  }
}





@media (max-width: 700px) {
  .table-box th,
  .table-box td {
    font-size: 0.83rem !important;  /* ¡Más chico! */
    padding: 4px 2px !important;
  }
  .table-box select,
  .table-box button,
  .btn-main {
    font-size: 0.81rem !important;
    padding: 7px 10px !important;
    min-width: 0 !important;
    max-width: 100%;
  }
  .table-box form {
    gap: 4px !important;
  }
}










.usuarios-sistema-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}
.usuarios-sistema-table th,
.usuarios-sistema-table td {
    padding: 7px 8px;
    text-align: left;
    font-size: 1rem;
    vertical-align: middle;
    white-space: nowrap;
}
.usuarios-sistema-table tr:not(:last-child) td {
    border-bottom: 1px solid #353535;
}
.usuarios-sistema-table th {
    border-bottom: 2px solid #666;
    font-size: 1.05rem;
}
.usuarios-sistema-table td:last-child {
    min-width: 110px;
}
.usuarios-sistema-table form,
.usuarios-sistema-table button {
    display: inline-block;
    margin: 2px 2px 2px 0;
}
.usuarios-sistema-table .btn-main.small-btn {
    font-size: 0.97rem;
    padding: 4px 12px;
}
@media (max-width: 700px) {
    .usuarios-sistema-table th,
    .usuarios-sistema-table td {
        font-size: 0.96rem;
        padding: 6px 4px;
    }
    .usuarios-sistema-table td:last-child {
        min-width: 0;
    }
    .usuarios-sistema-table .btn-main.small-btn {
        display: block;
        width: 100%;
        margin: 5px 0 0 0;
        font-size: 0.99rem;
        padding: 7px 0;
    }
}
@media (max-width: 430px) {
    .usuarios-sistema-table th,
    .usuarios-sistema-table td {
        font-size: 0.91rem;
        padding: 5px 2px;
    }
}




 .popup-exito {
        position: fixed;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #222;
        color: #a6ffa6;
        border-radius: 16px;
        box-shadow: 0 6px 32px #0009;
        padding: 28px 32px 20px 32px;
        font-size: 1.18rem;
        z-index: 9999;
        text-align: center;
        min-width: 220px;
        max-width: 90vw;
        font-weight: bold;
        animation: popupshow 0.23s;
    }
    @keyframes popupshow {
        0% { opacity: 0; transform: translate(-50%,-35%) scale(0.94);}
        100% { opacity: 1; transform: translate(-50%,-50%) scale(1);}
    }