
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* ------------------------- */
/*         BASE GLOBAL       */
/* ------------------------- */
/*html, body, .canal-label {
 /* styles.css */
  /*font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif !important;
}*/

html, body, .canal-label {
  font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: 20px;
}

/* ------------------------- */
/*        COMPONENTES        */
/* ------------------------- */
.card {
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1f1f1f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  width: 100%;
}
.section-title i {
  margin-right: 0.5rem;
  font-size: 1.6rem;
  color: #6c63ff;
  vertical-align: middle;
}
.section-title::after {
  content: "";
  display: block;
  width: 150px;
  height: 4px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 5px;
}

/* Admin panel */
.admin-section {
  border: 1px solid #90ee90;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 40px;
  background-color: #f8f9fa;
}
.admin-section h4 {
  font-weight: bold;
  margin-bottom: 20px;
}
.admin-buttons .btn {
  margin-right: 10px;
  margin-bottom: 10px;
  min-width: 180px;
}
.nav-buttons .btn {
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
}

/* ------------------------- */
/*        BOTONES            */
/* ------------------------- */
.panel-nav-btn {
  min-width: 230px;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  text-align: center;
}
.btn-custom {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white !important;
  border: none;
  transition: background 0.3s ease;
}
.btn-custom:hover {
  background: linear-gradient(45deg, #5a67d8, #5b2c84);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-danger-gradient {
  background: linear-gradient(45deg, #ff7b7b, #b71c1c);
  color: white !important;
  border: none;
  transition: 0.3s ease;
}
.btn-danger-gradient:hover {
  background: linear-gradient(45deg, #ff5252, #9b0000);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-warning-gradient {
  background: linear-gradient(45deg, #fbc02d, #f57f17);
  color: white !important;
  border: none;
  transition: background 0.3s ease;
}
.btn-warning-gradient:hover {
  background: linear-gradient(45deg, #f9a825, #ef6c00);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-success-gradient {
  background: linear-gradient(45deg, #43a047, #2e7d32);
  color: white !important;
  border: none;
  transition: background 0.3s ease;
}
.btn-success-gradient:hover {
  background: linear-gradient(45deg, #388e3c, #1b5e20);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-secondary-gradient {
  background: linear-gradient(45deg, #b0bec5, #78909c);
  color: white !important;
  border: none;
  transition: background 0.3s ease;
}
.btn-secondary-gradient:hover {
  background: linear-gradient(45deg, #90a4ae, #607d8b);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-celeste-gradient {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}
.btn-celeste-gradient:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ------------------------- */
/*         FORMULARIOS       */
/* ------------------------- */
.form-section {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.btn-group-centered {
  justify-content: center;
}

/* Select2 */
.select2-container .select2-selection--multiple {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  min-height: 38px;
  padding: 0.25rem 0.5rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* ------------------------- */
/*           TABLAS          */
/* ------------------------- */
.table-bordered,
.table-bordered th,
.table-bordered td {
  border-color: #b8c4f3 !important;
}
.table thead th {
  background-color: #b8c4f3;
  color: black;
  border: none;
}
.tabla-usuarios input,
.tabla-usuarios select {
  width: 100%;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  font-weight: 500;
  outline: none;
}
.tabla-usuarios tr.selected-row,
.tabla-usuarios tr.selected-row td {
  background-color: #e0f0ff !important;
}
.tabla-usuarios tr.selected-row input:focus,
.tabla-usuarios tr.selected-row select:focus {
  box-shadow: inset 0 0 0 1px #a3c9f1;
}

/* ------------------------- */
/*       OTROS ELEMENTOS     */
/* ------------------------- */
#emoji-palette {
  width: 400px !important;
  max-width: none !important;
  position: fixed !important;
  left: 100px !important;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  padding: 10px;
}
#emoji-palette #tab-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
}
#emoji-palette #tab-panel span {
  font-size: 2.2rem !important;
  padding: 4px !important;
  cursor: pointer;
}
.form-label {
  font-weight: 600;
}

/* ------------------------- */
/*         RESPONSIVE        */
/* ------------------------- */
@media (max-width: 768px) {
  .admin-buttons .btn,
  .nav-buttons .btn {
    width: 100%;
  }
  .panel-nav-btn {
    min-width: 100%;
  }
}

@media (max-width: 992px) {
  .admin-section {
    padding: 15px;
  }
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .form-label,
  .form-select,
  .form-control,
  .form-text,
  .form-check-label {
    font-size: 0.95rem;
  }

  .btn,
  .panel-nav-btn {
    font-size: 1rem;
    padding: 10px;
  }

  .admin-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .tabla-usuarios input,
  .tabla-usuarios select {
    font-size: 0.9rem;
    padding: 0.3rem;
  }

  .container {
    padding: 0.5rem;
  }
}
.icon-rojo {
  color: #dc3545 !important; /* Bootstrap rojo */
}
.btn-align-fix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 200px;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
/* Ajustes generales */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.4rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

/* Responsive de botones */
@media (max-width: 576px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 0.75rem;
  }

  .card,
  .form-section {
    padding: 1rem !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  }

  .card-body {
    padding: 0 !important;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .form-label,
  .form-select,
  .form-control,
  .form-text,
  .form-check-label {
    font-size: 0.95rem;
  }

  .btn,
  .btn-lg,
  .panel-nav-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .row.mt-4.text-center .col-md-3,
  .row.g-3 .col-md-3,
  .row.row-cols-2 > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .alert {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .card h2 {
    font-size: 1.2rem;
  }
}
.boton-panel {
  min-height: 58px;  /* Aproximadamente 2 líneas de texto */
  font-size: 1rem;
  line-height: 1.2;
  white-space: normal !important;  /* Permite salto de línea */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.canal-box {
  transition: background-color 0.3s ease;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ced4da;
}

.canal-box input[type="checkbox"]:checked ~ .canal-label {
  background-color: #d1e7dd; /* verde claro */
}

.canal-box input[type="checkbox"]:not(:checked) ~ .canal-label {
  background-color: #f8d7da; /* rojo claro */
}

.canal-box input[type="checkbox"]:disabled ~ .canal-label {
  background-color: #e2e3e5; /* gris claro */
  color: #6c757d;
}
.telegram-bubble {
  background-color: #e6f3ff;
  border-radius: 15px;
  max-width: 100%;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}

.telegram-bubble img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.telegram-button {
 
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
}

.section-title {
  font-size: 1.6rem;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 20px;
}
.data-table td {
  padding: 0.4rem 1rem;
}
.back-btn {
  margin-top: 30px;
}
@media (max-width: 576px) {
  .table td, .table th {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}
.btn-uniforme {
  min-height: 48px;
  min-width: 180px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
