/* ===================================
   General Layout
=================================== */
#east-tool {
  display: flex;
  max-width: 1100px;
  margin: 30px auto;
  border: 1px solid #ddd;
  border-radius: 16px;
  overflow: hidden;
  background: #f9fafb;
  font-family: "Inter", Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* ===================================
   Sidebar
=================================== */
#east-sidebar {
  width: 32%;
  background: #f3f4f6;
  border-right: 1px solid #ddd;
  padding: 15px;
  overflow-y: auto;
  max-height: 650px;
  display: flex;
  flex-direction: column;
}

#east-sidebar h3 {
  margin: 10px 0;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

/* ===================================
   Topbar Toggle + Filter
=================================== */
.east-topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  position: relative;
}

/* Toggle Container */
.east-toggle {
  position: relative;
  display: flex;
  border-radius: 10px;
  background: #eef3f9;
  border: 1px solid #cdddf0;
  overflow: hidden;
}

/* Animated Active Background */
.east-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #005EB8;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  z-index: 0;
}

/* When UK-wide active (slide to right) */
.east-toggle.uk-active::before {
  transform: translateX(100%);
}

/* Toggle Buttons */
.east-tab {
  all: unset;
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  color: #004494;
  font-size: 14px;
  cursor: pointer;
  z-index: 1;
  transition: color 0.25s ease-in-out;
  border-right: 1px solid #cdddf0;
}
.east-tab:last-child {
  border-right: none;
}

.east-tab.active {
  color: #fff;
}

.east-tab:hover {
  color: #002f72;
}

/* Filter Dropdown */
#east-filter-uk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

#east-filter-uk label {
  font-weight: 600;
  color: #444;
}

#east-authority {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
}

/* ===================================
   School List
=================================== */
#east-school-list {
  margin-top: 10px;
}

.east-school {
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
  background: #fff;
  border: 1px solid transparent;
}

.east-school:hover {
  background: #e6f0fa;
  border-color: #cdddf0;
}

.east-school.active {
  background: #005EB8;
  color: #fff;
  font-weight: bold;
  transform: translateX(2px);
}

/* ===================================
   Pagination
=================================== */
#east-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

#east-pagination button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #005EB8;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

#east-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#east-pagination button:hover:not(:disabled) {
  background: #004494;
}

#east-page-info {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* ===================================
   Main Content Area
=================================== */
#east-content {
  flex: 1;
  padding: 25px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

#east-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: #222;
}

#east-school-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #444;
}

#east-email-body {
  width: 100%;
  margin: 15px 0;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  min-height: 200px;
  background: #fafafa;
}

/* ===================================
   Send Email Button
=================================== */
#east-send-btn {
  display: inline-block;
  padding: 12px 18px;
  background: #005EB8;
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  transition: background 0.3s, transform 0.1s;
  font-weight: 600;
  align-self: flex-start;
}

#east-send-btn:hover {
  background: #004494;
  transform: translateY(-1px);
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 768px) {
  #east-tool {
    flex-direction: column;
  }
  #east-sidebar {
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  #east-content {
    padding: 20px;
  }
}