/* ======== GLOBAL ======== */
body {
  background: url("../img/Background-gladly.png") no-repeat center center fixed;
  background-size: cover;
  font-family: 'Reem Kufi', Helvetica, Arial, Lucida, sans-serif !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
}
body::before {
  content: "";
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6,
.btn {
  font-family: 'Reem Kufi', Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 600;
}

/* ======== NAVBAR ======== */
.navbar {
  background: transparent !important;
  box-shadow: none;
  padding: 1rem 2rem;
}

.navbar .navbar-brand img {
  height: 50px;
  width: auto;
}

/* ======== CARDS ======== */
.card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #fff;
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

/* ======== BOTONES ======== */
.btn {
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background-color: #eb5030;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: #d34328;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-secondary {
  background: rgba(255,255,255,0.15);
  border: 1px solid #fff !important;
  color: #fff !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-secondary:hover {
  background-color: #9bcedd;
  border: solid 1px #9bcedd !important;
  color: #000 !important;
}

/* Botón "Gestionar" (forzamos negro) */
.btn-outline-primary {
  border: 1px solid #000 !important;
  color: #000 !important;
}

.btn-outline-primary:hover {
  background: rgba(0,0,0,0.05);
  color: #000 !important;
}

/* ======== TABLAS ======== */
.table {
  border-collapse: separate;  
  border-spacing: 0;          
  border-radius: 20px;       
  overflow: hidden;          
}

.table thead,
.table thead tr,
.table thead th {
  background-color: #9bcedd !important;
  color: black !important;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.table thead th:first-child {
  border-top-left-radius: 20px;
}
.table thead th:last-child {
  border-top-right-radius: 20px;
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}
.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

.table tbody tr {
  background: rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.15);
}

.table td, .table th {
  border-color: rgba(255,255,255,0.2);
}

.table td:first-child,
.table th:first-child {
  padding-left: 20px;
}

/* ======== PAGINACIÓN ======== */
.pagination .page-link {
  background: transparent;
  border: 1px solid white;
  border-radius: 50%;
  margin: 0 3px;
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: #eb5030;
  border-color: #eb5030;
}

.pagination .page-link:hover {
  background: rgba(255,255,255,0.15);
}

/* ======== ALERTAS ======== */
.alert {
  border-radius: 15px;
  backdrop-filter: blur(4px);
}

/* ======== TEXTO ACLARATORIO ======== */
.text-muted {
  color: white !important;
}

/* ======== CARDS SÓLIDAS ======== */
.card-solid {
  background: #fff !important;
  color: #000 !important;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.table-wrapper {
  background: rgba(255, 255, 255, 0.15)!important;
  backdrop-filter: blur(8px)!important;
  border-radius: 20px;
  padding: 15px;
}

.link-register, .btn-signup, .link-forgot-password{
    color: #fff !important;
}

.link-register:hover, .btn-signup:hover, .link-forgot-password:hover {
    color: #9bcedd !important;
}

 /* Modal header limpio */
  #manageTeamsModal .modal-header {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
    color: #333;
  }
  #manageTeamsModal .modal-title {
    font-weight: 600;
    color: #333;
  }

  /* Botones personalizados */
  .btn-add-team {
    background-color: #9bcedd;
    color: #fff;
    border: none;
    font-weight: 500;
    transition: 0.2s;
  }
  .btn-add-team:hover {
    background-color: #7fbfce;
  }

  .btn-save-user, .saveTeamBtn{
    background-color: #9bcedd;
    color: #fff;
    border: none;
    font-weight: 500;
    transition: 0.2s;
  }
  .btn-save-user:hover, .saveTeamBtn:hover {
    background-color: #7fbfce;
  }

  .btn-save-team {
    background-color: #7fc89c;
    color: #fff;
    border: none;
    transition: 0.2s;
  }
  .btn-save-team:hover {
    background-color: #68b688;
  }

  .btn-delete-team {
    background-color: #f28b82;
    color: #fff;
    border: none;
    transition: 0.2s;
  }
  .btn-delete-team:hover {
    background-color: #e57368;
  }

  /* Inputs más suaves */
  .team-name-input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
  }

  /* Tablas limpias */
  #teamsContent table {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
  }

  #teamsContent th {
    background: #f9fafb;
    color: #555;
    font-weight: 600;
  }

  /* Toast con bordes suaves */
  .toast {
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .btn-add-user, .btn-edit-user {
  background-color: #9bcedd!important; 
  color: #fff;
  border: none;
  font-weight: 500;
  padding: 10px 18px;
  transition: 0.2s ease-in-out;
}

 .btn-edit-user {
  background-color: #9bcedd!important; 
  color: #fff;
  border: none;
  font-weight: 500;
  padding: 10px 18px;
  transition: 0.2s ease-in-out;
}

.btn-add-user:hover {
  background-color: #7fbfce!important;
}

.btn-edit-user:hover {
  background-color: #7fbfce!important;
}

.btn-teams {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  font-weight: 500;
  padding: 10px 18px;
  transition: 0.2s ease-in-out;
}

.btn-teams:hover {
  background: rgba(255, 255, 255, 0.15)!important;
}

h6 { font-weight: 600; }

.border {
  border: 1px solid #e9ecef !important;
}
.shadow-sm {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.causes-text {
    color: #333 !important;
}

.dropdown-item:hover {
    background-color: #9bcedd!important; 
    border-radius: 30px;
}

.counter-text-expired {
    color: black !important;
}

.text-leave-users {
    color: black !important;
}