html,
body {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #f0f2f5;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  position: fixed;
  left: 0;
  top: 0;
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: white;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-area {
  position: absolute;
  top: 60px;
  bottom: 55px;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 10px 5px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.progress-container {
  width: 100%;
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.progress-bar-custom {
  height: 100%;
  background-color: #0d6efd;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-complete {
  background-color: #198754 !important;
}

.card-student {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s;
}

.student-name {
  font-weight: bold;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 2px;
}

.student-phone {
  font-size: 11px;
  color: #7f8c8d;
  font-family: monospace;
  direction: ltr;
  cursor: pointer;
}

.amount-badge {
  background-color: #6f42c1;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 11px;
}

.actions-row {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.btn-compact {
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-wa {
  background-color: #25d366;
  color: white;
  text-decoration: none;
  flex: 2;
  transition: 0.2s;
}

.btn-wa:active {
  transform: scale(0.96);
}

.btn-wa-visited {
  background-color: #536471 !important;
  border-color: #536471 !important;
  color: #fff !important;
}

.btn-reply {
  background-color: #e7f1ff;
  color: #0d6efd;
}

.btn-success-mini.active {
  background-color: #198754;
  color: white;
}

.btn-success-mini {
  background-color: white;
  border: 1px solid #198754;
  color: #198754;
}

.btn-danger-mini.active {
  background-color: #dc3545;
  color: white;
}

.btn-danger-mini {
  background-color: white;
  border: 1px solid #dc3545;
  color: #dc3545;
}

.main-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  font-size: 13px;
  background-color: #f8f9fa;
  outline: none;
  margin-bottom: 10px;
}

.main-search:focus {
  background-color: white;
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

.hidden {
  display: none !important;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.nav-item.active {
  color: #0d6efd;
  transform: translateY(-3px);
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.msg-card,
.mother-card {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: white;
  border: 1px solid #eee;
  position: relative;
}

.msg-card {
  border-left: 4px solid #0d6efd;
}

.mother-card {
  border-left: 4px solid #e83e8c;
}

.mother-name {
  font-weight: bold;
  color: #e83e8c;
  font-size: 13px;
}

.msg-content {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 11px;
  white-space: pre-wrap;
  color: #555;
}

.btn-copy-abs {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  padding: 2px 8px;
}
