body {
  font-family: 'Poppins', sans-serif;
  max-width: 900px;
  margin: 2rem auto;
  font-size: 15px;
  color: #333;
}
input, select {
  display: block;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem;
}
button {
  font-family: 'Poppins', sans-serif;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
}
.error {
  color: red;
}
#module-content {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  overflow-x: auto;
  max-width: 100%;
}

.color-verde {
  background-color: lightgreen;
}
.color-amarillo {
  background-color: #f5f176;
}
.color-rosado {
  background-color: #ffc0cb;
}

table a {
  text-decoration: none;
}

.text-center {
  text-align: center;
}

/* Toast notification styles */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-weight: 500;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.toast-error {
  background: #f56565;
}

.toast-success {
  background: #48bb78;
}

.slideOut {
  animation: slideOut 0.3s ease-in !important;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Role error page styles */
.role-error-container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.role-error-message {
  margin: 1rem 0;
  font-size: 1.1em;
  line-height: 1.5;
}

.role-error-buttons {
  margin: 2rem 0;
}

.btn-primary {
  background: #026e81;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background: #024a5a;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Empty state styles */
.empty-state-container {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 1rem 0;
}

.empty-state-message {
  color: #666;
  margin: 1rem 0;
}

.empty-state-note {
  color: #666;
  font-size: 0.9em;
}

/* Profile styles */
.perfil-container {
  max-width: 420px;
  margin: 2rem auto;
}

.perfil-table {
  width: 100%;
}

/* Login form styles */
.login-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-footer {
  margin-top: 2.5rem;
  text-align: center;
  color: #888;
  font-size: 0.98em;
}

/* Forgot password styles */
.forgot-password-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forgot-password-title {
  margin-bottom: 1.2rem;
}

.forgot-password-description {
  margin-bottom: 1.2rem;
  color: #555;
}

.forgot-password-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #026e81;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}

.forgot-password-button:hover {
  background-color: #024a5a;
}

.forgot-password-back {
  width: 100%;
  padding: 0.75rem;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.forgot-password-back:hover {
  background-color: #e0e0e0;
}

.forgot-error {
  color: #d32f2f;
  margin-top: 1rem;
}

.forgot-success {
  color: #388e3c;
  margin-top: 1rem;
}

.forgot-password-link {
  margin-left: 1rem;
  font-size: 0.95em;
  color: #026e81;
  text-decoration: underline;
  cursor: pointer;
}

.forgot-password-input {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

table {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: white;
}

table thead {
  background-color: #f2f2f2;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
}

table th {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.access-table {
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  font-size: small;
}

.access-table th {
  background-color: #f2f2f2;
  text-align: center;
  font-weight: 600;
  padding: 8px;
  font-size: 0.95rem;
}

.access-table td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: middle;
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

#encabezado-dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.enc-col {
  display: flex;
  align-items: center;
}

.enc-col.centro {
  flex: 1;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enc-col.derecha {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

#logo-empresa {
  height: 100px;
}

#logo-colegio {
  height: 100px;
}

#encabezado-login {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

#encabezado-login img {
  height: 50px;
  margin-right: 1rem;
}

#encabezado-login h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-botones {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.nav-botones a,
.nav-botones button {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  margin: 0;
}

.nav-botones a:hover,
.nav-botones button:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

#btn-logout {
  color: #ff9933;
  border-color: #ff9933;
}

#btn-logout:hover {
  background-color: #ff9933;
  color: white;
}

.nav-botones a.active {
  background-color: #026e81;
  color: white;
  border-color: #026e81;
}

.locked-column {
  background-color: #f5f5f5 !important;
  color: #666;
}

.enc-col.centro h2 {
  margin-bottom: 0.2rem;
}

.enc-col.centro h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Password visibility toggle styles */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  flex: 1;
  padding-right: 2.5rem;
  margin: 0.5rem 0;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  margin: 0;
  height: auto;
  min-height: auto;
  line-height: 1;
  color: #666;
}

.password-toggle:hover {
  color: #333;
}