/**
 * 100x Life Planning System - Admin/Coach Dashboard Styles
 */

/* ==========================================================================
   Coach Sharing in Settings Modal
   ========================================================================== */

.coach-sharing-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.coach-sharing-header h5 {
  font-size: calc(0.95rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coach-sharing-header h5 i {
  color: var(--teal-accent);
}

.coach-sharing-desc {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

.coach-sharing-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.coach-sharing-empty {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: calc(0.9rem + var(--text-bump));
}

.coach-sharing-empty p {
  margin: 0;
}

.coach-share-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.coach-share-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: calc(1rem + var(--text-bump));
  flex-shrink: 0;
  overflow: hidden;
}

.coach-share-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-share-info {
  flex: 1;
  min-width: 0;
}

.coach-share-name {
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-share-email {
  font-size: calc(0.8rem + var(--text-bump));
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-share-level {
  font-size: calc(0.75rem + var(--text-bump));
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  flex-shrink: 0;
}

.coach-share-level.full {
  background: var(--teal-light);
  color: var(--teal-accent);
}

.coach-share-level.completion {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.coach-share-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.coach-share-actions button {
  padding: 0.35rem 0.5rem;
  font-size: calc(0.8rem + var(--text-bump));
}

/* ==========================================================================
   Share with Coach Modal
   ========================================================================== */

.share-coach-modal {
  max-width: 480px;
}

.share-coach-form .form-group {
  margin-bottom: 1.25rem;
}

.share-coach-form label {
  display: block;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.share-coach-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: calc(1rem + var(--text-bump));
  background: var(--bg-primary);
  color: var(--text-dark);
}

.share-coach-form .form-control:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(74, 155, 181, 0.15);
}

.share-coach-form .form-hint {
  font-size: calc(0.8rem + var(--text-bump));
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.sharing-level-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sharing-level-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sharing-level-option:hover {
  border-color: var(--teal-accent);
  background: var(--teal-light);
}

.sharing-level-option input[type="radio"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.sharing-level-option input[type="radio"]:checked + .sharing-level-content {
  color: var(--text-dark);
}

.sharing-level-option:has(input[type="radio"]:checked) {
  border-color: var(--teal-accent);
  background: var(--teal-light);
}

.sharing-level-content {
  flex: 1;
}

.sharing-level-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sharing-level-title i {
  color: var(--teal-accent);
}

.sharing-level-desc {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-secondary);
  line-height: 1.4;
}

.share-coach-status,
.edit-share-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: calc(0.9rem + var(--text-bump));
  display: none;
}

.share-coach-status.error,
.edit-share-status.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.share-coach-status.success,
.edit-share-status.success {
  display: block;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.share-coach-status.loading,
.edit-share-status.loading {
  display: block;
  background: var(--teal-light);
  color: var(--teal-accent);
  border: 1px solid var(--teal-accent);
}

/* Edit share form */
.edit-share-coach-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.edit-share-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: calc(1.25rem + var(--text-bump));
  flex-shrink: 0;
}

.edit-share-name {
  font-weight: 600;
  color: var(--text-dark);
}

.edit-share-email {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-muted);
}

/* ==========================================================================
   Coach Selection List
   ========================================================================== */

.coach-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.coach-list-loading,
.coach-list-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: calc(0.9rem + var(--text-bump));
}

.coach-list-error {
  color: #dc2626;
}

.coach-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.coach-list-item:hover {
  border-color: var(--teal-accent);
  background: var(--teal-light);
}

.coach-list-item:has(input:checked) {
  border-color: var(--teal-accent);
  background: var(--teal-light);
}

.coach-list-item input[type="radio"] {
  display: none;
}

.coach-list-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.coach-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-medium);
  color: white;
  font-weight: 600;
  font-size: calc(1rem + var(--text-bump));
}

.coach-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coach-list-name {
  font-weight: 600;
  color: var(--navy-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-list-email {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-list-check {
  color: var(--teal-accent);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.coach-list-item:has(input:checked) .coach-list-check {
  opacity: 1;
}

/* Spinning animation for loading */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   Admin Bootstrap Modal
   ========================================================================== */

.admin-bootstrap-modal {
  max-width: 480px;
}

.admin-bootstrap-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.admin-bootstrap-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.admin-bootstrap-features li i {
  color: var(--teal-accent);
  font-size: calc(1.1rem + var(--text-bump));
}

.admin-bootstrap-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  color: #92400e;
  font-size: calc(0.9rem + var(--text-bump));
}

.admin-bootstrap-warning i {
  font-size: calc(1.1rem + var(--text-bump));
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.admin-bootstrap-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: calc(0.9rem + var(--text-bump));
  display: none;
}

.admin-bootstrap-status.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
}

.admin-bootstrap-status.success {
  display: block;
  background: #f0fdf4;
  color: #16a34a;
}

/* ==========================================================================
   Admin Dashboard Module
   ========================================================================== */

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.admin-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-header-title {
  flex: 1;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: calc(2rem + var(--text-bump));
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header h1 i {
  color: var(--teal-accent);
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: calc(1rem + var(--text-bump));
  margin: 0;
}

/* Spinning refresh icon */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: calc(0.95rem + var(--text-bump));
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: var(--teal-accent);
}

.admin-tab.active {
  color: var(--teal-accent);
  border-bottom-color: var(--teal-accent);
}

.admin-tab i {
  margin-right: 0.5rem;
}

/* Shared Users Grid */
.admin-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.admin-user-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.admin-user-card:hover {
  border-color: var(--teal-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-user-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: calc(1.25rem + var(--text-bump));
  flex-shrink: 0;
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: calc(1.1rem + var(--text-bump));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-email {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-level {
  font-size: calc(0.75rem + var(--text-bump));
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-user-level.full {
  background: var(--teal-light);
  color: var(--teal-accent);
}

.admin-user-level.completion {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.admin-user-progress {
  margin: 1rem 0;
}

.admin-user-progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.admin-user-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-accent), var(--navy-medium));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.admin-user-progress-text {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.admin-user-meta {
  font-size: calc(0.8rem + var(--text-bump));
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.admin-user-meta i {
  margin-right: 0.25rem;
}

.admin-user-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-user-actions .btn {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: calc(0.9rem + var(--text-bump));
}

/* Empty state */
.admin-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px dashed var(--border-light);
}

.admin-empty-icon {
  font-size: calc(4rem + var(--text-bump));
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.admin-empty-title {
  font-size: calc(1.25rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.admin-empty-desc {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ==========================================================================
   Admin Detail View (User Profile)
   ========================================================================== */

.admin-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-detail-back {
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.admin-detail-back:hover {
  background: var(--bg-secondary);
  color: var(--text-dark);
}

.admin-detail-back i {
  font-size: calc(1.25rem + var(--text-bump));
}

.admin-detail-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.admin-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: calc(1.5rem + var(--text-bump));
  flex-shrink: 0;
}

.admin-detail-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.admin-detail-info h2 {
  font-size: calc(1.5rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
}

.admin-detail-meta {
  font-size: calc(0.9rem + var(--text-bump));
  color: var(--text-muted);
}

.admin-detail-actions {
  display: flex;
  gap: 0.5rem;
}

/* Module Accordion */
.admin-modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-module-accordion {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.admin-module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s ease;
}

.admin-module-header:hover {
  background: var(--bg-secondary);
}

.admin-module-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1.1rem + var(--text-bump));
  flex-shrink: 0;
}

.admin-module-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-dark);
}

.admin-module-progress {
  width: 100px;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.admin-module-progress-fill {
  height: 100%;
  background: var(--teal-accent);
  border-radius: 3px;
}

.admin-module-percent {
  font-size: calc(0.9rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-dark);
  min-width: 40px;
  text-align: right;
}

.admin-module-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.admin-module-accordion.expanded .admin-module-chevron {
  transform: rotate(180deg);
}

.admin-module-content {
  display: none;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.admin-module-accordion.expanded .admin-module-content {
  display: block;
}

.admin-module-section {
  margin-bottom: 1rem;
}

.admin-module-section:last-child {
  margin-bottom: 0;
}

.admin-module-section-label {
  font-size: calc(0.8rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.admin-module-section-content {
  font-size: calc(0.95rem + var(--text-bump));
  color: var(--text-dark);
  line-height: 1.6;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.admin-module-section-content:empty::before {
  content: "Not yet completed";
  color: var(--text-muted);
  font-style: italic;
}

/* Completion only view */
.admin-completion-only {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-style: italic;
}

.admin-completion-only i {
  font-size: calc(1.5rem + var(--text-bump));
  margin-bottom: 0.5rem;
  display: block;
}

/* ==========================================================================
   Super Admin - Manage Coaches Panel
   ========================================================================== */

.admin-coaches-section {
  margin-top: 1rem;
}

.admin-coaches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-coaches-header h3 {
  font-size: calc(1.1rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.admin-coaches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-coach-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.admin-coach-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.admin-coach-info {
  flex: 1;
  min-width: 0;
}

.admin-coach-name {
  font-weight: 500;
  color: var(--text-dark);
}

.admin-coach-email {
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-muted);
}

.admin-coach-role {
  font-size: calc(0.75rem + var(--text-bump));
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.admin-coach-role.super_admin {
  background: #fef3c7;
  color: #92400e;
}

.admin-coach-role.coach {
  background: var(--teal-light);
  color: var(--teal-accent);
}

.admin-coach-role.player_coach {
  background: #ede9fe;
  color: #6d28d9;
}

.admin-coach-role.pending {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px dashed var(--border-light);
}

.admin-coach-role-select {
  font-size: calc(0.75rem + var(--text-bump));
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-coach-role-select:hover {
  border-color: var(--teal-accent);
}

.admin-coach-role-select:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 2px rgba(74, 155, 181, 0.2);
}

.admin-coach-role-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-coach-actions {
  flex-shrink: 0;
}

/* Coach Photo Upload Section */
.coach-photo-section {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.coach-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-photo-placeholder {
  color: white;
  font-weight: 600;
  font-size: calc(1rem + var(--text-bump));
}

.coach-photo-upload-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: calc(0.7rem + var(--text-bump));
  border: 2px solid var(--bg-primary);
}

.coach-photo-upload-btn:hover {
  background: var(--navy-primary);
}

.coach-photo .spinning {
  color: var(--teal-accent);
  font-size: calc(1.25rem + var(--text-bump));
}

/* Add Coach Form */
.admin-add-coach-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-add-coach-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: calc(0.9rem + var(--text-bump));
}

.admin-add-coach-form input:focus {
  outline: none;
  border-color: var(--teal-accent);
}

.admin-add-coach-status {
  width: 100%;
  margin-top: 0.5rem;
  font-size: calc(0.85rem + var(--text-bump));
  display: none;
}

.admin-add-coach-status.error {
  display: block;
  color: #dc2626;
}

.admin-add-coach-status.success {
  display: block;
  color: #16a34a;
}

/* ==========================================================================
   Admin Print Styles
   ========================================================================== */

@media print {
  .admin-container {
    padding: 0;
  }

  .admin-tabs,
  .admin-user-actions,
  .admin-detail-actions,
  .admin-detail-back {
    display: none !important;
  }

  .admin-module-accordion {
    break-inside: avoid;
    border: 1px solid #ddd;
  }

  .admin-module-content {
    display: block !important;
  }

  .admin-module-chevron {
    display: none;
  }
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */

[data-theme="dark"] .coach-sharing-section {
  border-top-color: var(--border-light);
}

[data-theme="dark"] .coach-sharing-empty,
[data-theme="dark"] .coach-share-card {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .sharing-level-option {
  border-color: var(--border-light);
}

[data-theme="dark"] .sharing-level-option:hover,
[data-theme="dark"] .sharing-level-option:has(input[type="radio"]:checked) {
  background: rgba(74, 155, 181, 0.15);
}

[data-theme="dark"] .admin-bootstrap-warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

[data-theme="dark"] .admin-user-card,
[data-theme="dark"] .admin-module-accordion,
[data-theme="dark"] .admin-coach-card {
  background: var(--bg-primary);
  border-color: var(--border-light);
}

[data-theme="dark"] .admin-module-section-content {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .share-coach-status.error,
[data-theme="dark"] .edit-share-status.error,
[data-theme="dark"] .admin-bootstrap-status.error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .share-coach-status.success,
[data-theme="dark"] .edit-share-status.success,
[data-theme="dark"] .admin-bootstrap-status.success {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .admin-users-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-detail-actions {
    width: 100%;
  }

  .admin-detail-actions .btn {
    flex: 1;
  }

  .admin-coaches-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .admin-add-coach-form {
    flex-direction: column;
  }

  .admin-add-coach-form input {
    width: 100%;
  }
}

/* Module nav button for admin */
.module-nav-btn-admin {
  border-left: 1px solid var(--border-light);
  margin-left: 0.5rem;
  padding-left: 1rem;
}
