* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #3a8dde;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .login-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
  }
  
  .login-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
  }
  
  .input-group {
    margin-bottom: 1.2rem;
  }
  
  .input-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    font-weight: 500;
  }
  
  .input-group input {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
  }
  
  .input-group input:focus {
    border-color: #667eea;
    outline: none;
  }
  
  button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background-color: #3a8dde;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  button:hover {
    background-color: #5a67d8;
  }
  
  .error-message {
    margin-top: 1rem;
    color: red;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
  }
  
  /* Animación  de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .main-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1100px;
    margin: auto;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .btn-nuevo {
    background-color: #3a8dde;
    color: white;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: none;
    width: auto;
    min-width: fit-content;
    margin-top: 0;
    margin: 7px;
  }

  .filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  
  .search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .search-box input {
    padding: 0.5rem;
    border: none;
    outline: none;
  }
  
  .search-box button {
    background-color: #3a8dde;
    color: white;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
  }
  
  .advanced-search {
    color: #3a8dde;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  .order-select,
  .per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .table th {
    background-color: #eaf1f9;
    text-align: left;
    color: #555;
    font-weight: 500;
  }
  
  .table td a {
    color: #3a8dde;
    text-decoration: none;
  }
  
  .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
  }
  
  .pagination .controls {
    display: flex;
    gap: 0.5rem;
  }
  
  .pagination button {
    border: 1px solid #ccc;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    background: white;
    cursor: pointer;
  }
  
  .pagination button.active {
    background-color: #3a8dde;
    color: white;
    border: none;
  }
  .actions {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }
  
  .action-btn {
    background-color: #3a8dde;
    color: white;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    max-width: 110px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  }
  
  .action-btn:hover {
    background-color: #5a67d8;
    transform: translateY(-1px);
  }
  .logo-img {
    max-width: 100%;
    width: 250px;
    display: block;
    margin: 0 auto 2rem auto;
    object-fit: contain;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: white;
    padding: 2rem;
    margin: 10% auto;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
  }
  
  .modal-content h3 {
    text-align: center;
    margin-bottom: 1.2rem;
  }
  
  .modal-content input,
  .modal-content select {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
  }
  
  .modal-content button {
    width: 100%;
    padding: 0.7rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .modal-content button:hover {
    background-color: #5a67d8;
  }
  
  .close {
    float: right;
    font-size: 1.4rem;
    cursor: pointer;
    font-weight: bold;
  }
  .icon-doc {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .logout-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    line-height: 1.2;
    height: auto;
    width: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .profile-btn {
  position: absolute;
  bottom: 60px; /* lo subimos respecto al logout */
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.session-buttons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.session-btn {
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-btn:hover {
  background-color: #0056b3;
}
.session-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 2000;
}
.actions {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 2000;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.action-btn {
  background-color: #3a8dde;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.action-btn:hover {
  background-color: #5a67d8;
  transform: translateY(-1px);
}
/* Contenedor principal del FAB */
.fab-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Botón principal */
.fab-btn {
  width: 56px;
  height: 56px;
  background-color: #3a8dde;
  color: white;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.fab-btn:hover {
  background-color: #5a67d8;
  transform: rotate(45deg);
}

/* Menú de opciones oculto inicialmente */
.fab-menu {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

/* Botones de opciones */
.fab-action {
  width: 120px;
  padding: 0.6rem 0.8rem;
  background-color: #3a8dde;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.fab-action:hover {
  background-color: #5a67d8;
}

/*busqueda usuarios*/
.users-search {
  position: relative;
  margin: 10px 0 14px;
}
.users-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.users-search input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.2rem; /* hueco para el icono */
  border: 1px solid #ccd3e0;
  border-radius: 10px;
  background: #6e7cf5; /* tono como en tu captura */
  color: #fff;
  outline: none;
}
.users-search input::placeholder { color: rgba(255,255,255,0.9); }
.users-count { margin: 6px 2px 0; color:#666; font-size: .9rem; }

/* Contenedor del modal */
#usersListModal .modal-content {
  max-width: 700px;
  max-height: 80vh; /* altura máxima del modal */
  display: flex;
  flex-direction: column;
}

/* Contenedor de la tabla desplazable */
#usersListModal .table-container {
  max-height: 50vh;  /* ajusta el tamaño de la tabla */
  overflow-y: auto;  /* añade scroll vertical */
  margin-top: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* Cabecera fija para la tabla */
#usersListModal .table thead th {
  position: sticky;
  top: 0;
  background: #eaf1f9;
  z-index: 2;
}


/* Animación de aparición */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
