/* SOLO login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;           /* Usa height en lugar de min-height */
    flex-direction: column;
    text-align: center;
    margin: 0;               /* Elimina cualquier margen del body */
    overflow: hidden;        /* Previene scroll vertical */
}

body.login-page {            /* Asegúrate que el body también colabore */
    margin: 0;
    overflow: hidden;
}


/* Login Form Styles */
#login-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

#login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#login-form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#login-form button:hover {
    background-color: #0056b3;
}

/* 🎨 Estilos del logo en el formulario de login */
.dashschool-login-form .login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.dashschool-login-form .login-logo img {
    max-width: 300px;
    height: auto;
    display: block;
}


/* Dashboard Styles */


.dashschool-container {
    display: flex;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
    overflow-x: visible;
}

.dashschool-sidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: fit-content;
    position: sticky;
    top: 0;
}

.dashschool-sidebar-container {
    width: 220px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}


.logo img {
    width: 100%;
    /*max-width: 120px;*/
    margin-bottom: 20px;
}

.dashschool-menu ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.dashschool-menu ul li {
    margin: 0;
}

.dashschool-menu ul li a {
    color: #405c4b;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 5px;
}

.dashschool-menu ul li a:hover {
    background-color: #d3f6eb;
}

.dashschool-main {
    width: 100%;
    padding: 15px;
    flex: 1;
    min-width: 0;
    overflow-x: hidden; 
}

.dashschool-main-content {
    padding-bottom: 80px;
}

.dashschool-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.dashschool-webexu {
    font-size: 14px;
    color: #666;
    margin-left: 30px; /* Alineado con el sidebar */
    margin-top: 20px; /* Opcional para acercarlo más si lo ves muy separado */
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logout-button {
    background-color: #FF4B5C !important;; 
    color: #fff !important;;
    padding: 8px 15px !important;;
    border-radius: 5px !important;;
    text-decoration: none !important;;
}

/* 🧾 Botón de Export */
form[action*="export_active_students_csv"] button {
    background-color: #007bff !important;
    color: #fff !important;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashschool-main .dashschool-table th {
    background-color: #1a2b6d !important;
    color: #fff !important;
    font-weight: bold !important;
    padding: 12px !important;
    text-align: left !important;
}

.dashschool-main .dashschool-table td {
    padding: 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    white-space: nowrap !important;
    vertical-align: top !important;
}

.dashschool-main .dashschool-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
    font-size: 14px !important;
    table-layout: auto !important;
}

.dashschool-table td.actions-cell .actions-wrapper {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.dashschool-table td.actions-cell {
  white-space: nowrap;
  padding: 6px 10px;
  vertical-align: middle;
}


@media (max-width: 768px) {
    .dashschool-container {
        flex-direction: column;
    }

    .dashschool-sidebar,
    .dashschool-main {
        width: 100%;
    }
}


/* 🌐 Universal Form Style */
.dashschool-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 🔧 Menor separación entre bloques */
    padding-bottom: 30px;
    width: 100%;
    margin: 0 auto;
}

/* Labels */
.dashschool-form label {
    display: block;
    margin-bottom: 4px; /* Espaciado pequeño entre label y input */
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

/* Inputs, Selects, Textareas */
.dashschool-form input,
.dashschool-form select,
.dashschool-form textarea {
    width: 100%;
    padding: 10px 12px!important;
    font-size: 15px;
    border: 1px solid #b1b0b0 !important;
    background-color: #fff !important;
    margin: 0;             /* 🔧 Elimina cualquier margin-top */
    line-height: 1.3;      /* 🔧 Más compacto */
    
}

.dashschool-form input:focus,
.dashschool-form select:focus,
.dashschool-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Submit Button */
.dashschool-form button {
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    align-self: flex-start; /* Alínea el botón a la izquierda */
    margin-top: 10px;
}

.dashschool-form button:hover {
    background-color: #0056b3;
}

/* Group layout: checkboxes / radios */
.dashschool-form .checkbox-group,
.dashschool-form .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

/* Alinear ítems */
.checkbox-item,
.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: normal;
}

/* Checkbox tamaño uniforme */
.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}


.dashschool-pagination {
    margin-top: 10px;
    text-align: center;
}

.dashschool-pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}

.dashschool-pagination a:hover {
    background: #0073aa;
    color: #fff;
}

.dashschool-pagination a[style*="font-weight:bold;"] {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

/* Botón "Remove" */
.remove-student {
    background: #dc3545; /* rojo tipo Bootstrap danger */
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.remove-student:hover {
    background: #c82333;
}

/* Reutilizamos la misma clase de paginación */
.dashschool-pagination {
    margin-top: 10px;
    text-align: center;
}

.dashschool-pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}

.dashschool-pagination a:hover {
    background: #0073aa;
    color: #fff;
}

.dashschool-pagination a[style*="font-weight:bold;"] {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

.dashschool-pagination .button.button-primary {
    background: #0073aa;
    color: #fff;
    border-color: #006799;
}


.dashschool-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* Agrupar contenedores de hora */
.time-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* Contenedor individual de cada bloque de tiempo */
.time-block {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-block label {
    min-width: 80px;
    font-weight: bold;
}

/*Para identificar los grupos*/
.group-title.pending { color: #d6a600; }
.group-title.active { color: #28a745; }
.group-title.closed { color: #a5a5a5; }

.groups-list-container {
    display: flex;
    flex-direction: column;
    gap: 0px; /* eliminamos el gap global */
}

/* Título del bloque de grupo */
.groups-list-container h3.group-title {
    margin-bottom: 10px;  /* espacio entre título y tabla */
    margin-top: 40px;     /* espacio entre tabla anterior y este título */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
}

/* Espaciado extra solo entre bloques de grupo */
.groups-list-container .group-section:not(:first-child) {
    margin-top: 50px;
}

.dashschool-scroll-wrapper {
    overflow-x: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
    width: 100%;
    /*border: 1px solid #ddd;
    border-radius: 4px;*/
}

.dashschool-scroll-wrapper table {
    /*min-width: 1200px; */
    border-collapse: collapse;
}

.dashschool-scroll-wrapper th,
.dashschool-scroll-wrapper td {
    white-space: nowrap;
    padding: 6px 10px;
}

.dashschool-description-cell {
    max-width: 250px;
    max-height: 80px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 4px;
    border-radius: 4px;
}

/* 🔒 Estilos reforzados para botones del plugin */
.dashschool-main-content button.dashschool-btn,
.dashschool-main-content input[type="submit"].dashschool-btn,
.dashschool-main-content input[type="button"].dashschool-btn {
    background-color: #007bff !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: bold !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease !important;
}

.dashschool-main-content button.dashschool-btn-primary:hover,
.dashschool-main-content input.dashschool-btn-primary:hover {
    background-color: #0056b3 !important;
}

/* 🧾 Botón de exportar estudiantes */
.dashschool-main-content form[action*="export_active_students_csv"] button {
    background-color: #007bff !important;
    color: #fff !important;
    font-weight: bold !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 🟢 Botones de acción en tabla */
.dashschool-main-content .enroll-student-btn {
    background-color: #28a745 !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-weight: normal !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    transition: background-color 0.3s ease;
}

.dashschool-main-content .enroll-student-btn:hover {
    background-color: #218838 !important;
}

.ds-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.ds-pagination .student-page-btn,
.ds-pagination .payment-page-btn,
.ds-pagination .withdrawn-page-btn,
.ds-pagination .teacher-page-btn,
.ds-pagination .withdrawn-teacher-page-btn,
.ds-pagination .completed-group-page-btn {
  appearance: none;
  border: 1px solid #2d5be3;
  background: #2d5be3;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.ds-pagination .student-page-btn:hover:not([disabled]),
.ds-pagination .payment-page-btn:hover:not([disabled]),
.ds-pagination .withdrawn-page-btn:hover:not([disabled]),
.ds-pagination .teacher-page-btn:hover:not([disabled]),
.ds-pagination .withdrawn-teacher-page-btn:hover:not([disabled]), 
.ds-pagination .completed-group-page-btn:hover:not([disabled]) {
  background: #1f4fd6;
}

.ds-pagination .student-page-btn[disabled],
.ds-pagination .payment-page-btn[disabled],
.ds-pagination .withdrawn-page-btn[disabled],
.ds-pagination .teacher-page-btn[disabled],
.ds-pagination .withdrawn-teacher-page-btn[disabled],
.ds-pagination .completed-group-page-btn[disabled] {
  background: #e9eefc;
  border-color: #c7d2fe;
  color: #6b7280;
  cursor: not-allowed;
}

.ds-pagination .ds-ellipsis {
  color: #6b7280;
  padding: 0 4px;
}

.hamburger-button {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  margin-right: auto;
}

@media (max-width: 768px) {
  .dashschool-container {
    flex-direction: column;
  }

  .dashschool-sidebar {
    display: none;
    width: 100%;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
  }

  .dashschool-sidebar.active {
    display: block;
  }

  .hamburger-button {
    display: block;
  }

  .dashschool-header {
    justify-content: space-between;
  }

  .dashschool-sidebar-container {
    width: 100%;
  }

  .dashschool-main {
    padding: 10px;
  }
}

