/* DentFlow - UI Components & Interactive Styles */

/* ==========================================================================
   BUTTONS (Codecademy Pop & Solid Border Style)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: none !important;
}

/* Primary Yellow Button (Signature Codecademy CTA) */
.btn-primary {
  background-color: var(--accent-yellow);
  color: #0A0E1F;
  border-color: #000;
  box-shadow: 3px 3px 0px #000;
}
.btn-primary:hover {
  background-color: var(--accent-yellow-hover);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
}
.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: var(--accent-cyan);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

/* Cyan Button */
.btn-cyan {
  background-color: var(--accent-cyan);
  color: #0A0E1F;
  border-color: #000;
  box-shadow: 3px 3px 0px #000;
}
.btn-cyan:hover {
  filter: brightness(1.1);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
}

/* Mint / Success Button */
.btn-mint {
  background-color: var(--accent-mint);
  color: #0A0E1F;
  border-color: #000;
  box-shadow: 3px 3px 0px #000;
}
.btn-mint:hover {
  filter: brightness(1.1);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
}

/* Danger Crimson Button */
.btn-danger {
  background-color: var(--accent-crimson);
  color: #FFFFFF;
  border-color: #000;
  box-shadow: 3px 3px 0px #000;
}
.btn-danger:hover {
  filter: brightness(1.1);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
}

/* Outline Ghost Button */
.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: var(--bg-card);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}
.btn-icon {
  padding: 7px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
}





























}

.code-card:hover {
  border-color: var(--border-focus);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0,0,0,0.1);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

/* ==========================================================================
   BADGES & CHIPS (Code & Clinical Status)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.badge-code {
  background: var(--bg-code);
  color: var(--accent-cyan);
  border: 1px solid var(--border-color);
}

.badge-yellow {
  background: var(--accent-yellow-dim);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
}

.badge-cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.badge-purple {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
}

.badge-mint {
  background: var(--accent-mint-dim);
  color: var(--accent-mint);
  border: 1px solid var(--accent-mint);
}

.badge-danger {
  background: var(--accent-crimson-dim);
  color: var(--accent-crimson);
  border: 1px solid var(--accent-crimson);
}

.badge-amber {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

/* ==========================================================================
   DATA TABLES (Codecademy Dark Grid Style)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-codecademy);
}

.dent-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;






















































































































































.dent-modal-overlay.active .dent-modal-box {
  transform: scale(1);
}

.dent-modal-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-sidebar);
}

.dent-modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dent-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.dent-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   COMMAND PALETTE (Cmd + K)
   ========================================================================== */
.cmd-palette-box {
  max-width: 580px;
  border-color: var(--accent-yellow);
}

.cmd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-sidebar);
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--accent-yellow);
}

.cmd-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.cmd-results-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.cmd-item:hover, .cmd-item.selected {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-yellow);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-item-icon {
  font-size: 16px;
  color: var(--accent-cyan);
}

.cmd-item-title {
  font-weight: 600;
  font-size: 13px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.dent-toast {
  background: var(--bg-sidebar);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), var(--shadow-codecademy);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dent-toast.success { border-color: var(--accent-mint); }
.dent-toast.danger { border-color: var(--accent-crimson); }
.dent-toast.warning { border-color: var(--accent-yellow); }

.toast-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}


   FIREBASE AUTH & USER PROFILE WIDGETS
   ========================================================================== */
.user-auth-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 3px 10px 3px 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-auth-pill:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-elevated);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0A0E1F;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-pill-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.user-pill-clinic {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cloud-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   MOBILE & RESPONSIVE COMPONENT RULES
   ========================================================================== */
@media (max-width: 768px) {
  .dent-modal-overlay {
    padding: 10px;
    align-items: center;
  }

  .dent-modal-box {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    border-radius: var(--radius-lg);
  }

  .dent-modal-header {
    padding: 12px 16px;
  }

  .dent-modal-body {
    padding: 14px;
    max-height: calc(92vh - 130px);
  }

  .dent-modal-footer {
    padding: 12px 16px;
    gap: 8px;
  }

  .dent-modal-footer .btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 10px;
  }

  .form-row, .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dent-table {
    min-width: 580px;
  }

  .cmd-palette-box {
    width: 96vw !important;
    max-width: 96vw !important;
    margin-top: 40px !important;
  }

  #toast-container {
    bottom: 16px;
    right: 12px;
    left: 12px;
  }

  .dent-toast {
    min-width: unset;
    width: 100%;
    font-size: 12px;
    padding: 10px 14px;
  }
}


