/* Daily Motivation Scoped Styles */

.dm {
  /* Inherit global colors or define specific ones here */
  /* The app primarily uses --deep-purple and --light-purple */
}

/* Button Overrides */
.dm .bt {
  background: var(--deep-purple);
  color: var(--rich-white);
  border: 2px solid var(--deep-purple);
  width: 100%;
}

.dm .bt:hover {
  background: var(--dark-purple);
  border-color: var(--dark-purple);
  color: var(--rich-white);
}

.dm .bt-secondary {
  background: var(--rich-white);
  color: var(--deep-purple);
  border: 2px solid var(--deep-purple);
  width: 100%;
}

.dm .bt-secondary:hover {
  background: var(--light-purple);
  color: var(--deep-purple);
}

/* App Bar */
.dm .app-bar {
  height: 5rem;
  background: var(--rich-white);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.dm .icon-btn {
  background: none;
  border: none;
  padding: 0.75rem;
  color: var(--medium-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  cursor: pointer;
}

.dm .icon-btn:hover {
  background: var(--light-purple);
  color: var(--deep-purple);
}

.dm .app-bar__logo {
  height: 3.75rem;
}

.dm .hex-bolt {
  width: 1.5rem;
  height: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--medium-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm .hex-bolt::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: grey;
  border-radius: 50%;
}

/* Content Container */
.dm .content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 30rem;
  padding: 1.5rem;
  margin: 5rem auto 0;
  min-height: calc(100vh - 5rem);
  background-color: var(--rich-white);
}

/* Quote Card */
.dm .quote-card-container {
  position: relative;
  margin: 1rem 0;
}

.dm .quote-card {
  background-color: var(--light-purple);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 0.5rem 1.5rem rgba(103, 58, 183, 0.1);
  min-height: 11.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm .quote-card__text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--deep-purple);
  margin: 0;
}

.dm .quote-card__bolt {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #2196f3;
  z-index: 10;
  transition: transform 0.2s;
  cursor: pointer;
}

.dm .quote-card__bolt:hover {
  transform: scale(1.1);
}

/* Forms */
.dm .form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}

.dm .input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: inherit;
  color: var(--almost-black);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.dm .input:focus {
  border-color: var(--deep-purple);
}

.dm .input::placeholder {
  color: var(--medium-grey);
}

.dm .error-text {
  color: #f44336;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Button Stack */
.dm .button-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Bottom Sheet */
.dm .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.dm .bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  max-height: 90vh;
  z-index: 210;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.dm .bottom-sheet.is-active {
  transform: translateY(0);
}

.dm .bottom-sheet__handle {
  width: 2.5rem;
  height: 0.25rem;
  background: #eee;
  border-radius: 0.125rem;
  margin: -0.75rem auto 1.5rem;
}

.dm .bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dm .bottom-sheet__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.dm .bottom-sheet__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--medium-grey);
}

.dm .bottom-sheet__content {
  flex: 1;
  overflow-y: auto;
  font-size: 1.1rem;
  padding-bottom: 2rem;
}

.dm .sheet-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Settings List */
.dm .section-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--medium-grey);
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  margin: 2rem 0 0.5rem 1rem;
}

.dm .section-header--primary {
  color: var(--deep-purple);
}

.dm .settings-list {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
  margin-inline: 0.25rem;
  display: flex;
  flex-direction: column;
}

.dm .list-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}

.dm .list-tile:last-child {
  border-bottom: none;
}

.dm .list-tile:hover {
  background: #f9f9f9;
}

.dm .list-tile__title {
  font-size: 1rem;
  color: var(--almost-black);
}

.dm .list-tile__title--bold {
  font-weight: 700;
}

.dm .list-tile__trailing-text {
  font-size: 0.95rem;
  color: var(--almost-black);
}

.dm .list-tile__pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  color: var(--almost-black);
}

.dm .check-icon.hidden {
  display: none;
}

/* Switch */
.dm .switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: #ccc;
  border-radius: 0.75rem;
  transition: background 0.3s;
}

.dm .switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.dm .switch.is-on {
  background: #2196f3;
}

.dm .switch.is-on::after {
  transform: translateX(1.25rem);
}

/* Profile */
.dm .profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.dm .avatar {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.dm .profile__name {
  font-size: 1.25rem;
  color: var(--almost-black);
  font-weight: bold;
  margin: 0.25rem 0;
}

.dm .profile__id-value {
  font-size: 1rem;
  color: var(--deep-purple);
  background: #f5f5f5;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
  margin-top: 1rem;
}

.dm .profile__guest-text {
  font-size: 1.125rem;
  color: #9e9e9e;
  margin-bottom: 1rem;
}

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

/* Dialog */
.dm .dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.dm .dialog-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.dm .dialog {
  background: #ffffff;
  border-radius: 1.75rem;
  width: min(19.5rem, 90vw);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dm .dialog-overlay.is-active .dialog {
  transform: scale(1);
}

.dm .dialog__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--almost-black);
  margin: 0 0 1rem 0;
}

.dm .dialog__content {
  font-size: 0.95rem;
  color: var(--medium-grey);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.dm .dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.dm .dialog__btn {
  background: none;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep-purple);
  cursor: pointer;
}

.dm .dialog__btn:hover {
  background: var(--light-purple);
}

/* Utilities */
.dm .hidden {
  display: none !important;
}

.dm .screen {
  display: none;
}

.dm .screen.is-active {
  display: block;
}

.dm .empty-state {
  text-align: center;
  color: var(--medium-grey);
  font-size: 1rem;
  padding: 3rem 1rem;
}

.dm .ad-container {
  margin-top: 1.5rem;
  height: 6.25rem;
  background: #f9f9f9;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  border: 1px dashed #ddd;
}