/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.modal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  padding-right: 30px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--surface-alt); }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
#password-form { display: flex; flex-direction: column; gap: 14px; }

.info-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}
.info-content .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-content .info-row:last-child { border-bottom: none; }
.info-content .info-label { color: var(--text-muted); font-weight: 500; }
.info-content .info-value { color: var(--text); font-weight: 600; }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--text);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.2s ease-out;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .topbar { padding: 0 14px; }
  .topbar-left { gap: 12px; }
  .section-bar { padding: 10px 14px; }
  .parent-tab { padding: 8px 14px; font-size: 13px; }
  .parent-tab .ptab-icon { display: none; }
  .sub-tabs, .toolbar, .table-wrapper { padding-left: 14px; padding-right: 14px; }
  .user-name { display: none; }
  .refresh-text { display: none; }
  .view-btn { padding: 5px 8px; font-size: 11px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .slideover { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .custom-range input[type="date"] { width: 110px; }
  .color-labels-grid { grid-template-columns: 1fr; }
}

