/* Pour Pos — professional forms (EduManage add-student pattern) */

.page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pro-page-header {
  margin-bottom: 1.25rem;
}

.breadcrumb {
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.82rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

.form-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
  margin-bottom: 1.25rem;
}

.form-section:hover {
  box-shadow: var(--shadow-lg);
}

.form-section-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0.02) 100%);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-header .section-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.form-section-header h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-section-header p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-section-body {
  padding: 20px;
}

.form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 5px;
}

.form-control,
.form-select {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.required-dot {
  color: #ef4444;
  font-weight: 700;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.actions-card {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}

.actions-card .form-section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-save-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.btn-save-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  color: #fff;
}

.btn-cancel-pro {
  border-radius: var(--radius);
  padding: 11px 20px;
  font-weight: 500;
  width: 100%;
  text-align: center;
}

body.dark-mode .form-section {
  background: var(--surface);
  border-color: var(--border);
}

body.dark-mode .form-section-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--border);
}

body.dark-mode .form-section-header h6 {
  color: var(--text);
}

body.dark-mode .form-section-header p {
  color: var(--text-muted);
}

body.dark-mode .form-label {
  color: rgba(255, 255, 255, 0.78);
}
