/* PromptCam Teleprompter Mobile View Stylesheet
   1:1 Pixel-Perfect replica of ConnecTab Teleprompter Flutter APK
*/

:root {
  --bg-dark: #1E1E24;
  --card-dark: #2A2C32;
  --card-hover: #32353D;
  --preview-dark: #37474F;
  --dock-dark: #212B30;
  --accent-teal: #00897B;
  --brand-cyan: #03DAC6;
  --play-orange: #FF9800;
  --reset-purple: #BB86FC;
  --preview-blue: #64B5F6;
  --danger-red: #E53935;
  --text-white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.38);
  --text-faint: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 137, 123, 0.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Mobile Container Shell */
#mobile-app-shell {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* Material Icons Helper */
.material-icons, .material-symbols-outlined {
  font-family: 'Material Icons Round', 'Material Icons', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
}

/* Screen Transitions */
.view-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  overflow: hidden;
}

.view-screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* ===================================================
   1. SPLASH SCREEN
   =================================================== */
#screen-splash {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  z-index: 100;
}

.splash-brand {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.splash-brand .part-telepr {
  color: var(--text-white);
}

.splash-brand .brand-icon-box {
  padding: 0 4px;
  display: flex;
  align-items: center;
}

.splash-brand .brand-icon-box span {
  font-size: 24px;
  color: var(--text-white);
}

.splash-brand .part-mpter {
  color: var(--brand-cyan);
}

.splash-spinner {
  margin-top: 24px;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 137, 123, 0.2);
  border-top-color: var(--accent-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================================
   2. ONBOARDING SCREEN
   =================================================== */
#screen-onboarding {
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.onboarding-progress {
  padding: 20px 30px;
  display: flex;
  gap: 8px;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.progress-segment.active {
  background-color: var(--accent-teal);
}

.onboarding-page-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.onboarding-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
}

.onboarding-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.welcome-step-content {
  margin: auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-icon-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: rgba(0, 137, 123, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.welcome-icon-circle span {
  font-size: 72px;
  color: var(--accent-teal);
}

.onboarding-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.onboarding-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.role-card {
  height: 84px;
  background-color: var(--card-dark);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-card.selected {
  background-color: rgba(0, 137, 123, 0.2);
  border-color: var(--accent-teal);
  color: var(--text-white);
  font-weight: 700;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.goal-item {
  padding: 16px 20px;
  background-color: var(--card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-item.selected {
  background-color: rgba(0, 137, 123, 0.2);
  border-color: var(--accent-teal);
}

.goal-item .goal-icon {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.24);
}

.goal-item.selected .goal-icon {
  color: var(--accent-teal);
}

.goal-item .goal-title {
  font-size: 15px;
  color: var(--text-muted);
}

.goal-item.selected .goal-title {
  color: var(--text-white);
  font-weight: 700;
}

.onboarding-footer {
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-secondary-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-teal-primary {
  background-color: var(--accent-teal);
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 14px 34px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-teal-primary:disabled {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

/* ===================================================
   3. AUTH SCREEN (Register Admin / Admin Login)
   =================================================== */
#screen-auth {
  padding: calc(var(--safe-top) + 20px) 30px calc(var(--safe-bottom) + 20px);
  overflow-y: auto;
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  margin: auto;
  width: 100%;
}

.auth-lock-icon {
  font-size: 64px;
  color: var(--accent-teal);
  margin-bottom: 20px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 34px;
}

.auth-field-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.input-pill-container {
  background-color: var(--card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 4px 16px;
  transition: border-color 0.2s ease;
}

.input-pill-container:focus-within {
  border-color: var(--accent-teal);
}

.input-pill-container .field-icon {
  font-size: 20px;
  color: var(--text-dim);
  margin-right: 12px;
}

.input-pill-container input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 15px;
  padding: 12px 0;
  font-family: inherit;
}

.input-pill-container input::placeholder {
  color: var(--text-dim);
}

.auth-error-msg {
  color: var(--danger-red);
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
  min-height: 18px;
}

.btn-auth-submit {
  width: 100%;
  height: 52px;
  background-color: var(--accent-teal);
  color: #000000;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-auth-switch {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-size: 14px;
  cursor: pointer;
  margin-top: 18px;
  font-weight: 500;
}

/* ===================================================
   4. HOME / DASHBOARD SCREEN
   =================================================== */
#screen-home {
  padding-top: var(--safe-top);
  display: flex;
  flex-direction: column;
}

.appbar-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: var(--bg-dark);
  flex-shrink: 0;
}

.btn-icon-header {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-card-wrapper {
  flex: 1;
  margin: 12px 16px 8px 16px;
  background-color: var(--card-dark);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.search-bar-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-input-box {
  flex: 1;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.search-input-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
}

.search-input-box input::placeholder {
  color: var(--text-dim);
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-action-btn {
  background: none;
  border: none;
  color: var(--accent-teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-action-btn.faint {
  color: rgba(255, 255, 255, 0.15);
}

/* Scripts List / Empty State */
.scripts-list-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 84px;
  position: relative;
}

.empty-state-view {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
}

.empty-state-view .empty-icon {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

.empty-state-view .empty-text {
  font-size: 15px;
  color: var(--text-dim);
}

.script-tile-item {
  margin: 10px 16px;
  background-color: #27292F;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.script-tile-item:active {
  background-color: #202227;
}

.script-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 137, 123, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.script-icon-box span {
  color: var(--accent-teal);
  font-size: 24px;
}

.script-info-col {
  flex: 1;
  min-width: 0;
}

.script-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.script-snippet-text {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.script-date-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
}

.btn-tile-menu {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 6px;
}

/* Speed-dial FAB */
.fab-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fab-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.fab-cluster {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 30;
}

.sub-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: popIn 0.15s ease-out forwards;
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fab-cluster.expanded .sub-fab {
  display: flex;
}

.main-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fab-cluster.expanded .main-fab {
  background-color: #4A4D54;
  transform: rotate(90deg);
}

.main-fab span {
  font-size: 30px;
}

/* Bottom Footer (Media Controls) */
.home-bottom-footer {
  padding: 10px 16px calc(var(--safe-bottom) + 16px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.footer-icons-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.footer-icon-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.footer-icon-btn.active {
  color: var(--accent-teal);
}

.footer-media-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-media-status .media-icon {
  font-size: 38px;
  color: rgba(255, 255, 255, 0.1);
}

.footer-media-status .media-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.24);
}

/* ===================================================
   DRAWER NAVIGATION
   =================================================== */
.drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.nav-drawer.active {
  transform: translateX(0);
}

.drawer-banner-box {
  padding: 40px 16px 16px;
}

.drawer-banner-card {
  background-color: var(--card-dark);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-banner-card .card-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

.btn-trial-activate {
  background-color: var(--accent-teal);
  color: #000000;
  border: none;
  border-radius: 20px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.drawer-menu-list {
  flex: 1;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.drawer-menu-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-white);
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}

.drawer-menu-item span {
  color: var(--text-muted);
  font-size: 22px;
}

.drawer-menu-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 8px 16px;
}

.drawer-footer-section {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sync-trial-card {
  padding: 12px;
  background-color: rgba(0, 137, 123, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-trial-card span {
  color: var(--accent-teal);
  font-size: 24px;
}

.sync-trial-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.sync-trial-card p {
  font-size: 11px;
  color: var(--text-dim);
}

.btn-manage-acct {
  background-color: var(--accent-teal);
  color: #000000;
  border: none;
  border-radius: 20px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.drawer-version-tag {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 6px;
}

/* ===================================================
   5. SCRIPT EDITOR SCREEN
   =================================================== */
#screen-editor {
  padding-top: var(--safe-top);
  display: flex;
  flex-direction: column;
}

.editor-appbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.editor-title-h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}

.btn-save-script {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 8px;
}

.editor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}

.editor-title-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 0;
  font-family: inherit;
}

.editor-title-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.editor-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 8px 0 12px;
}

.editor-alignment-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.editor-alignment-indicator span {
  font-size: 16px;
  color: var(--text-muted);
}

.editor-textarea {
  flex: 1;
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  font-family: inherit;
  overflow-y: auto;
}

.editor-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Editor Dock Bar */
.editor-dock {
  background-color: var(--card-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 24px calc(var(--safe-bottom) + 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dock-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-btn span {
  font-size: 26px;
}

.dock-play-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--play-orange);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.dock-play-fab:active {
  transform: scale(0.94);
}

.dock-play-fab span {
  font-size: 38px;
}

/* ===================================================
   6. SETTINGS SCREEN
   =================================================== */
#screen-settings {
  padding-top: var(--safe-top);
  display: flex;
  flex-direction: column;
}

.settings-scroll-view {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--safe-bottom) + 32px);
}

.settings-preview-box {
  margin: 16px;
  padding: 24px;
  height: 180px;
  background-color: var(--preview-dark);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.settings-preview-text {
  color: var(--preview-blue);
  line-height: 1.25;
  transition: all 0.2s ease;
}

.settings-font-toolbar {
  margin: 0 16px 16px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.toolbar-picker-btn {
  flex: 3;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  height: 100%;
}

.toolbar-picker-btn .font-name-label {
  color: var(--text-muted);
  font-size: 14px;
}

.toolbar-picker-btn span {
  color: var(--text-dim);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.1);
}

.toolbar-size-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  height: 100%;
}

.toolbar-color-indicator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.toolbar-color-indicator .letter-a {
  color: var(--preview-blue);
  font-weight: 700;
  font-size: 14px;
}

.toolbar-color-indicator .color-bar {
  width: 14px;
  height: 2px;
  background-color: var(--preview-blue);
  margin-top: 2px;
}

.toolbar-paint-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.54);
  height: 100%;
}

.settings-section-header {
  padding: 22px 16px 10px;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.28);
}

.settings-tile-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  position: relative;
}

.settings-tile-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-left: 56px;
}

.tile-icon-lead {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.54);
  margin-right: 18px;
}

.tile-label-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-badge {
  background-color: var(--accent-teal);
  color: #000000;
  font-size: 8px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 4px;
}

.tile-title-text {
  font-size: 15px;
  color: var(--text-white);
  font-weight: 400;
}

/* Material Switch Styling */
.switch-wrapper {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.switch-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.2s ease;
}

.switch-track:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.2s ease;
}

.switch-wrapper input:checked + .switch-track {
  background-color: var(--accent-teal);
}

.switch-wrapper input:checked + .switch-track:before {
  transform: translateX(20px);
  background-color: #000000;
}

.tile-chevron {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.15);
}

.btn-reset-default {
  margin: 32px 24px;
  width: calc(100% - 48px);
  padding: 14px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--reset-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* ===================================================
   7. PROMPTER PLAYBACK ENGINE SCREEN
   =================================================== */
#screen-prompter {
  background-color: #000000;
  z-index: 100;
}

.prompter-camera-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.prompter-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompter-camera-video.selfie-mirrored {
  transform: scaleX(-1);
}

/* Floating Picture-In-Picture Preview Mode */
.prompter-camera-container.pip-mode {
  top: 90px;
  right: 16px;
  left: auto;
  width: 120px;
  height: 160px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 5;
}

/* Scroll Text Overlay */
.prompter-text-scroll-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.prompter-text-scroll-area::-webkit-scrollbar {
  display: none;
}

.prompter-text-content {
  padding-top: 130px;
  padding-bottom: 50vh;
  color: #FFFFFF;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.9), 1px 1px 4px rgba(0,0,0,0.8);
  white-space: pre-wrap;
  word-break: break-word;
  transition: transform 0.2s ease;
}

/* Reading Indicator Horizontal Guide Line */
.prompter-center-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 137, 123, 0.6);
  box-shadow: 0 0 8px rgba(3, 218, 198, 0.8);
  pointer-events: none;
  z-index: 6;
}

/* Big Countdown Overlay */
.prompter-countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 130px;
  font-weight: 900;
  color: var(--brand-cyan);
  text-shadow: 0 0 30px rgba(3, 218, 198, 0.8);
  pointer-events: none;
  z-index: 15;
}

/* REC Indicator */
.prompter-rec-badge {
  position: absolute;
  top: calc(var(--safe-top) + 60px);
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 4px 12px;
  z-index: 12;
}

.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--danger-red);
  animation: pulseRec 1s infinite alternate;
}

@keyframes pulseRec {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.rec-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--danger-red);
  letter-spacing: 0.5px;
}

/* Prompter Top Bar */
.prompter-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--safe-top) + 50px);
  padding-top: var(--safe-top);
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  padding-right: 12px;
  z-index: 10;
}

.prompter-page-badge {
  position: absolute;
  top: calc(var(--safe-top) + 55px);
  right: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 10;
}

/* Camera Settings Floating Badges (Bottom Left & Right) */
.prompter-res-btn {
  position: absolute;
  bottom: 110px;
  left: 20px;
  background-color: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 8;
}

.prompter-lens-btn {
  position: absolute;
  bottom: 105px;
  right: 20px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  z-index: 8;
}

.prompter-lens-btn span {
  font-size: 30px;
}

/* Prompter Bottom Dock */
.prompter-bottom-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dock-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 24px calc(var(--safe-bottom) + 14px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 10;
}

.prompter-dock-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.prompter-dock-btn.active {
  color: #FFFFFF;
}

.prompter-dock-btn:disabled {
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.prompter-dock-btn span {
  font-size: 28px;
}

.prompter-play-toggle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--play-orange);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.prompter-play-toggle-btn span {
  font-size: 40px;
}

/* ===================================================
   MODALS & BOTTOM SHEETS
   =================================================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.center-dialog {
  align-items: center;
  padding: 24px;
}

.bottom-sheet-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--card-dark);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 18px 0 calc(var(--safe-bottom) + 16px);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .bottom-sheet-card {
  transform: translateY(0);
}

.sheet-item-row {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-white);
  font-size: 15px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sheet-item-row span {
  font-size: 22px;
}

.sheet-item-row.danger {
  color: var(--danger-red);
}

.dialog-card {
  width: 100%;
  max-width: 320px;
  background-color: var(--card-dark);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.dialog-card h3 {
  font-size: 18px;
  color: var(--text-white);
  margin-bottom: 12px;
}

.dialog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 24px;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-dialog-cancel {
  background: none;
  border: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
}

.btn-dialog-confirm {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
}

.btn-dialog-confirm.danger {
  color: var(--danger-red);
}

/* Slider Controls in Modal */
.slider-picker-card {
  padding: 24px;
  width: 100%;
  text-align: center;
}

.slider-picker-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.slider-range-input {
  width: 100%;
  accent-color: var(--accent-teal);
  height: 6px;
  margin-bottom: 24px;
}
