/* Home del docente rediseñado. Todo queda scopeado a isDocenteArea (ruta
   exacta /docente) o a clases con prefijo .docente- para no afectar otros roles. */

.docente-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.docente-topbar .nav-item.dropdown {
  position: relative;
}

.docente-topbar .dropdown-menu {
  position: absolute !important;
  top: 100%;
  right: 0;
  left: auto;
  margin-top: .25rem;
}

.docente-topbar .navbar-nav {
  gap: .6rem;
}

.docente-pending-badge {
  background-color: #fff;
  color: var(--ebiocolornav);
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: none;
}

.docente-pending-badge:hover {
  opacity: .9;
}

.docente-pending-count {
  background-color: #e6553f;
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  min-width: 1.2rem;
  height: 1.2rem;
  line-height: 1.2rem;
  text-align: center;
  padding: 0 .25rem;
}

.docente-home {
  padding: 1.5rem 1.5rem 3rem;
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}

.docente-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(20, 30, 60, .06);
}

.docente-greeting-card {
  background: linear-gradient(120deg, var(--ebiocolornav), #2c8fd6);
  color: #fff;
}

.docente-greeting-card .text-muted {
  color: rgba(255, 255, 255, .85) !important;
}

.docente-wave-icon {
  font-size: 2rem;
  line-height: 1;
}

.docente-greeting-text {
  min-width: 220px;
}

.docente-quick-actions {
  gap: 0;
  align-items: stretch;
}

.docente-btn-primary,
.docente-btn-success {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-align: left;
  border-radius: .75rem;
  padding: .6rem 1rem;
  border: none;
  color: #fff;
  font-size: .8rem;
  line-height: 1.25;
  min-height: 58px;
}

.docente-btn-primary {
  background-color: rgba(255, 255, 255, .18);
}

.docente-btn-primary:hover {
  background-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.docente-btn-success {
  background-color: #34c38f;
}

.docente-btn-success:hover {
  background-color: #2ba97b;
  color: #fff;
}

.docente-btn-primary i,
.docente-btn-success i {
  font-size: 1rem;
}

.docente-btn-primary small,
.docente-btn-success small {
  opacity: .85;
  font-weight: 400;
}

.docente-viewall-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.docente-viewall-btn:hover {
  background-color: var(--ebiocolornav);
  color: #fff;
  text-decoration: none;
}

.docente-empty {
  padding: 1.5rem 1rem;
}

.docente-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e6f7ef;
  color: #34c38f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.1rem;
}

.docente-class-item,
.docente-book-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eef0f2;
}

.docente-class-item:last-of-type,
.docente-book-item:last-of-type {
  border-bottom: none;
}

.min-w-0 {
  min-width: 0;
}

.docente-item-cover {
  width: 52px;
  height: 52px;
  border-radius: .6rem;
  object-fit: cover;
  background-color: #eef0f2;
  flex-shrink: 0;
}

.docente-item-cover-portrait {
  width: 42px;
  height: 52px;
  border-radius: .4rem;
  object-fit: cover;
  background-color: #eef0f2;
  flex-shrink: 0;
}

.docente-btn-outline {
  border: 1px solid var(--ebiocolornav);
  color: var(--ebiocolornav);
  background-color: #fff;
  border-radius: .6rem;
  font-size: .8rem;
  padding: .35rem .8rem;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.docente-btn-outline:hover {
  background-color: var(--ebiocolornav);
  color: #fff;
}

.docente-btn-outline-icon {
  border: 1px solid var(--ebiocolornav);
  color: var(--ebiocolornav);
  background-color: #fff;
  border-radius: .5rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.docente-btn-outline-icon:hover {
  background-color: var(--ebiocolornav);
  color: #fff;
}

.docente-help-card {
  background-color: #f5f8fc;
}

.docente-help-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.docente-characters {
  display: none;
}

.docente-footer {
  color: #9aa1b1;
  font-size: .8rem;
  padding-top: .5rem;
}

/* Modal "Nueva clase" */

#modalNewClass .modal-dialog {
  max-width: 700px;
  width: 94vw;
}

.docente-modal-content {
  border: none;
  border-radius: 1.1rem;
  padding: .5rem;
  position: relative;
}

.docente-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 1.3rem;
  opacity: .5;
  z-index: 2;
}

.docente-modal-body {
  padding: 2rem 2.25rem 0;
}

.docente-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .75rem;
}

.docente-modal-title {
  font-weight: 700;
  margin-bottom: .15rem;
  color: #2c313a;
}

.docente-modal-subtitle {
  color: #9aa1b1;
  font-size: .85rem;
  margin-bottom: 1.4rem;
}

.docente-form-group {
  margin-bottom: 1.4rem;
}

.docente-form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #52596b;
  margin-bottom: .4rem;
}

.docente-form-control {
  width: 100%;
  border: 1px solid #e2e6ec;
  border-radius: .6rem;
  padding: .6rem .8rem;
  font-size: .88rem;
  color: #2c313a;
  background-color: #fff;
}

.docente-form-control:focus {
  outline: none;
  border-color: var(--ebiocolornav);
  box-shadow: 0 0 0 3px rgba(44, 143, 214, .12);
}

.docente-input-icon-wrap {
  position: relative;
}

.docente-input-icon-wrap > i {
  position: absolute;
  left: .8rem;
  top: .75rem;
  color: #9aa1b1;
  font-size: .85rem;
}

.docente-input-icon-wrap > .docente-form-control {
  padding-left: 2.1rem;
}

.docente-textarea-wrap > i {
  top: .75rem;
}

.docente-form-control[rows] {
  resize: none;
}

.docente-char-counter {
  text-align: right;
  font-size: .72rem;
  color: #9aa1b1;
  margin-top: .25rem;
}

.docente-school-row {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.docente-school-row .docente-form-control {
  min-height: 44px;
}

.docente-school-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.docente-school-dropdown {
  position: absolute;
  top: calc(100% + .3rem);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #e2e6ec;
  border-radius: .6rem;
  box-shadow: 0 8px 20px rgba(20, 30, 60, .12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
}

.docente-school-option {
  padding: .55rem .9rem;
  font-size: .85rem;
  cursor: pointer;
}

.docente-school-option:hover {
  background-color: #f2f6fb;
  color: var(--ebiocolornav);
}

.docente-btn-outline-list {
  flex: 0 0 auto;
  border: 1px solid var(--ebiocolornav);
  color: var(--ebiocolornav);
  background-color: #fff;
  border-radius: .6rem;
  font-size: .82rem;
  font-weight: 600;
  padding: 0 1.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

.docente-btn-outline-list:hover {
  background-color: var(--ebiocolornav);
  color: #fff;
}

.docente-form-alert {
  display: flex;
  gap: .6rem;
  background-color: #eaf3fc;
  color: #3d6a91;
  border-radius: .6rem;
  padding: .75rem .9rem;
  font-size: .78rem;
  line-height: 1.4;
  margin-bottom: 1.3rem;
}

.docente-form-alert i {
  flex-shrink: 0;
  margin-top: .1rem;
}

.docente-form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239aa1b1' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 1.1rem;
  padding-right: 2rem;
}

.docente-code-generated {
  background-color: #f5f8fc;
  border-radius: .8rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.docente-code-box {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ebiocolornav);
}

.docente-code-box i {
  font-size: 1rem;
  color: #9aa1b1;
}

.docente-code-box i:hover {
  color: var(--ebiocolornav);
}

.docente-modal-footer {
  border-top: none;
  padding: 1.1rem 2.25rem 1.8rem;
}

.docente-btn-cancel {
  color: #52596b;
  font-weight: 600;
  font-size: .85rem;
  background: transparent;
  border: none;
}

.docente-btn-save {
  background-color: var(--ebiocolornav);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  border-radius: .6rem;
  padding: .55rem 1.3rem;
  border: none;
}

.docente-btn-save:hover {
  opacity: .92;
  color: #fff;
}

/* Modal "Listado de colegios" */

.docente-schools-dialog {
  max-width: 960px;
  width: 94vw;
}

.docente-schools-body {
  padding-bottom: 2rem;
}

.docente-modal-icon-inline {
  margin-bottom: 0;
  flex-shrink: 0;
}

.docente-btn-add-school {
  background-color: var(--ebiocolornav);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  border-radius: .6rem;
  border: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.docente-btn-add-school:hover {
  opacity: .92;
  color: #fff;
}

.docente-schools-table-wrap {
  max-height: 24rem;
  overflow-y: auto;
  border: 1px solid #eef0f2;
  border-radius: .8rem;
  margin-top: .5rem;
}

.docente-schools-table {
  margin-bottom: 0;
}

.docente-schools-table thead th {
  background-color: #f5f8fc;
  color: #52596b;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border: none;
  padding: .8rem 1rem;
  position: sticky;
  top: 0;
}

.docente-schools-table tbody td {
  border: none;
  border-top: 1px solid #eef0f2;
  padding: .8rem 1rem;
  vertical-align: middle;
  font-size: .88rem;
  color: #2c313a;
}

.docente-schools-table tbody tr:first-child td {
  border-top: none;
}

.docente-school-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

.docente-schools-action-btn {
  border: none;
  background: transparent;
  color: #9aa1b1;
  font-size: 1rem;
  padding: .3rem .6rem;
  border-radius: .4rem;
}

.docente-schools-action-btn:hover {
  background-color: #f2f6fb;
  color: #52596b;
}

@media (max-width: 991px) {
  .docente-topbar #docenteUserDropdownMenuLink .admin-user-name,
  .docente-topbar #docenteUserDropdownMenuLink .admin-user-role {
    display: none !important;
  }

  .docente-topbar #docenteUserDropdownMenuLink .mr-2 {
    margin-right: 0 !important;
  }

  .docente-pending-badge span:not(.docente-pending-count) {
    display: none;
  }

  .docente-pending-badge {
    padding: .4rem .6rem;
  }
}

@media (max-width: 767px) {
  .docente-home {
    padding: 1rem 1rem 5rem;
  }

  .docente-greeting-card .card-body {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .docente-quick-actions {
    width: 100%;
    margin-top: 1rem;
  }

  .docente-btn-primary,
  .docente-btn-success {
    width: 100%;
  }

  .docente-btn-primary {
    margin-bottom: .5rem;
  }

  .docente-characters {
    display: none;
  }
}
