:root, .dark {
  --radius: 0.7rem;
  
  /* Dark Theme Colors */
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --muted-foreground: 240 5% 64.9%;
  --border: 240 3.7% 15.9%;
  
  --primary: hsl(0, 0%, 98%); 
  --primary-darker: hsl(0, 0%, 80%);
  --primary-foreground: hsl(240, 5.9%, 10%); 

  --secondary: hsl(240, 3.7%, 20%);
  --secondary-darker: hsl(240, 3.7%, 10%);
  --secondary-foreground: hsl(0, 0%, 98%);

  --notification-background: hsl(0, 0%, 98%);
  --notification-foreground: hsl(240, 5.9%, 10%);
  --notification-border: hsl(0, 0%, 90%);
}

.light-theme {

  --background: 0 0% 98%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --muted-foreground: 240 3.8% 46.1%;
  --border: 240 5.9% 90%;

  --card: hsl(220, 20%, 100%);   
  --muted-foreground: hsl(223, 10%, 45%);
  --border: hsl(220, 15%, 85%);


  --primary: hsl(220, 10%, 15%);     
  --primary-darker: hsl(220, 10%, 5%);
  --primary-foreground: hsl(220, 15%, 96%); 

  --secondary: hsl(220, 15%, 93%);     
  --secondary-darker: hsl(220, 15%, 78%);
  --secondary-foreground: hsl(223, 15%, 20%);
  --notification-background: hsl(240, 10%, 3.9%);
  --notification-foreground: hsl(0, 0%, 98%);
  --notification-border: hsl(240, 3.7%, 15.9%);
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: 'Inter', sans-serif; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-feature-settings: 'liga' 1, 'calt' 1; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; 
  
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; }
h1 { font-size: 1.875rem; line-height: 2.25rem; }
h2 { font-size: 1.5rem; line-height: 2rem; border-bottom: 1px solid hsl(var(--border)); padding-bottom: 0.5rem; }
h3 { font-size: 1.25rem; line-height: 1.75rem; color: hsl(var(--muted-foreground)); }


.app-container { max-width: 800px; margin: 0 auto; padding: 2rem; }
main { margin-top: 2rem; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 3rem; }
.space-y-md > * + * { margin-top: 1rem; }
.space-y-lg > * + * { margin-top: 1.5rem; }

.w-full { width: 100%; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }


.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted { color: hsl(var(--muted-foreground)); }


.btn {
  position: relative; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; 
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  cursor: pointer;
  border-bottom-width: 4px;
  transform: translateY(0);
  transition: all 0.1s ease-out;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  border-bottom-width: 6px;
}
.btn:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  filter: brightness(0.9);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: translateY(0);
  filter: none;
  border-bottom-width: 4px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary-darker);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary-darker);
}

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 1px 3px 0 hsla(0, 0%, 0%, 0.1);
  
  
  padding: 1.25rem; 
}


.card-header {
  padding: 0;
  padding-bottom: 1rem; 
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 1rem; 
}


.card-body {
  padding: 0; 
}
.card-title { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }

.tabs-list { display: flex; border-bottom: 1px solid hsl(var(--border)); }
.tabs-trigger {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tabs-trigger:hover { color: hsl(var(--foreground)); }
.tabs-trigger[data-state="active"] {
  color: hsl(var(--foreground));
  border-bottom-color: var(--primary);
}

.page { display: none; }
.page.active { display: block; }


#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }


.log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.log-details .description {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.log-details .log-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.log-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0; 
}

.log-actions .xp-gain {
  font-weight: 700;
  color: hsl(142, 71%, 45%); 
}

.edit-log-button {

  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  

  background-color: transparent;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}

.edit-log-button:hover {

  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--secondary));
}

.edit-log-button:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
  filter: brightness(0.9);
}

.form-group {
  margin-bottom: 1rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.textarea,
.select {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s ease;
}

.textarea:focus,
.select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.3);
}

.textarea {
  resize: vertical;
  min-height: 80px;
}


.divider {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0;
}

.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

.btn.loading {
  filter: brightness(0.9);
  animation: pulse-subtle 1.5s infinite ease-in-out;
}

.btn.loading:active {
  transform: translateY(0);
  border-bottom-width: 4px;
}

@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
}

.btn .button-text {
  transition: opacity 0.2s ease-in-out;
}

.btn .spinner {
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease-in-out;
  opacity: 0; 
}

.btn-primary .spinner {
  border-color: hsla(var(--primary-foreground), 0.3);
  border-top-color: hsl(var(--primary-foreground));
}
.light-theme .btn-primary .spinner {
  border-color: hsla(0, 0%, 98%, 0.4);
  border-top-color: hsl(0, 0%, 98%);
}
.light-theme .edit-log-button {
 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom-width: 3px;
  transform: translateY(0);
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary-darker);
}

.light-theme .edit-log-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  border-bottom-width: 4px;
}

.light-theme .edit-log-button:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
  filter: brightness(0.9);
}

#image-preview-box {
  max-width: 100%;
  max-height: 400px;
  margin: 1rem auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

#image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

#shop .space-y-lg,
#stats .space-y-lg {
  max-width: 768px; 
  margin-left: auto;
  margin-right: auto;
}

header nav {
  display: flex;
  gap: 0.5rem; 
  border-bottom: 1px solid hsl(var(--border));
}

.nav-button {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  margin-bottom: -1px; 
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-button:hover {
  color: hsl(var(--foreground));
}

.nav-button.active {
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--primary)); 
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; 
}


.powerup-button {
  position: relative; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  cursor: pointer;
  border-bottom-width: 4px;
  transform: translateY(0);
  transition: all 0.1s ease-out;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary-darker);
}

.powerup-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  border-bottom-width: 6px;
}

.powerup-button:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  filter: brightness(0.9);
}

#shop {
  position: relative;
}

#shop-coin-display {
  position: absolute;
  top: 1.25rem;
  right: 0; 
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 999px; 
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  z-index: 10; 
}

.coin-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: hsl(48, 95%, 53%); 
  border: 1px solid hsl(48, 95%, 45%);
}





.onboarding-overlay {
  position: fixed;
  
  
  z-index: 998; 
  box-shadow: 0 0 0 3px hsl(var(--primary)), 0 0 20px hsla(var(--primary), 0.7);
  

  border-radius: var(--radius);
  
  
  transition: all 0.3s ease-in-out;
  
  
  pointer-events: none; 
}

.onboarding-popover {
  position: absolute; 
  z-index: 1000;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  padding: 1.25rem;
  max-width: 350px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.onboarding-popover.visible {
  transform: scale(1);
  opacity: 1;
}

.onboarding-content {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.onboarding-nav {
  margin-top: 1rem;
  text-align: right;
}

.onboarding-popover::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  border-right: 1px solid hsl(var(--border));
  transform: rotate(45deg);
}

.onboarding-popover.arrow-top::after { top: -0.5rem; left: 2rem; }
.onboarding-popover.arrow-bottom::after { bottom: -0.5rem; left: 2rem; }
.onboarding-popover.arrow-left::after { left: -0.5rem; top: 2rem; }

.quest-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quest-details {
  flex-grow: 1;
}

.quest-description {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.quest-reward {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(48, 95%, 53%);
  margin-top: 0.25rem;
}

.quest-progress-bar {
  background-color: hsl(var(--background));
  border-radius: 99px;
  height: 8px;
  width: 100%;
  margin-top: 0.75rem;
  overflow: hidden;
}

.quest-progress-fill {
  background-color: hsl(var(--primary));
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.3s ease-out;
}

.quest-claim-button {
  flex-shrink: 0;
  min-width: 100px; 
}
#notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.notification-banner {
  pointer-events: all;
  background-color: var(--notification-background); 
  color: var(--notification-foreground);           
  border: 1px solid var(--notification-border);
  padding: 0.75rem 1.5rem;
  border-radius: 999px; 
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  animation: slideInAndOut 4s forwards ease-in-out;
}
@keyframes slideInAndOut {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  15%, 85% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

.shop-category-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.shop-category-title:first-child {
  margin-top: 0;
}

.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 50%; 
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: hsl(var(--primary));
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

#active-powerup-timers {

  position: fixed;
  top: 1.5rem;   
  left: 2rem;  
  
  z-index: 99;
  
  display: flex;
  flex-direction: column;
  gap: 10px;

  
  pointer-events: none;
}

.timer-capsule {
  pointer-events: all; 
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 999px; 
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  pointer-events: all;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  

  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInCapsule 0.5s forwards ease-out;
}

@keyframes fadeInCapsule {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.bounty-timer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}


.bounty-progress {
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}


.timer-capsule.expiring {
  border-color: hsl(0, 84%, 60%); 
  animation: fadeInCapsule 0.5s forwards ease-out, pulse-warning 1.5s infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 hsla(0, 84%, 60%, 0.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 6px hsla(0, 84%, 60%, 0);
  }
}

.chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;

  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--primary-darker);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1);
  transition: transform 0.2s ease-out;
}
.chat-bubble:hover {
  transform: scale(1.1);
}


.chat-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 995;
  
  width: 400px;
  max-width: 90vw;
  height: 600px;
  max-height: 80vh;

  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  
  display: flex;
  flex-direction: column;


  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  pointer-events: none;
  backdrop-filter: none;
}
.chat-window:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}
.chat-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  color: hsl(var(--foreground));
}
.close-chat-btn {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.close-chat-btn:hover {
  color: hsl(var(--foreground));
}

.chat-message-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  max-width: 80%;
  line-height: 1.6;
}
.user-message {
  background-color: var(--primary);
  color: var(--primary-foreground);
  align-self: flex-end;
  border-bottom-right-radius: 4px; 
}
.ai-message {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid hsl(var(--border));
  flex-shrink: 0;
}
.chat-form {
  display: flex;
  gap: 0.5rem;
}
#chat-input {
  flex-grow: 1;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
#chat-input:focus {
  outline: none;
  border-color: var(--primary);
}
.send-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
}
.chat-message-counter {
  font-size: 0.75rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}


.empty-state-card {
  background-color: hsl(var(--card));
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.empty-state-card h3 {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.empty-state-card p, .empty-state-text {
  color: hsl(var(--muted-foreground));
  max-width: 450px;
  margin: 0 auto;
  line-height: 1.6;
}


.card .empty-state-text {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-container-confidence {

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  

  max-height: 400px;
}



#mobile-timers-area h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.mobile-timer-capsule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}
.mobile-timer-capsule .item-name {
  font-weight: 600;
}
.mobile-timer-capsule .time-left {
  font-weight: 600;
  font-family: monospace; 
  font-size: 1.1rem;
}


#mobile-timers-area {
  display: none;
}
.light-theme .card,



.light-theme .dialog-title {
  color: hsl(var(--foreground));
}
.light-theme .quest-card { 
  border: 1px solid hsl(220, 15%, 85%);
}
.light-theme .log-entry { 

  border: 1px solid hsl(220, 15%, 85%);
}

.dialog {

  background-color: hsl(var(--card)); 
  
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
}

.light-theme .dialog {
  background-color: hsl(var(--card)); 
}
@media (max-width: 768px) {

  #active-powerup-timers {
    display: none;
  }
  

  #mobile-timers-area {
    display: block; 
  }
  .theme-toggle {
   
    top: 4.5rem; 
    right: 1rem; 
    width: 36px;
    height: 36px;
  }
}

.light-theme .chat-window {

  background-color: white; 
  

  backdrop-filter: none; 
}



.light-theme .card,

.light-theme .dialog {

  border: 1px solid hsl(220, 15%, 85%);
}

.light-theme .tabs-list {
    border-bottom: 1px solid hsl(220, 15%, 85%);
}

.light-theme .nav-button.active {

    border-bottom-color: hsl(var(--primary));
}





html.light-theme #edit-modal-backdrop.modal .dialog {
  
  background-color: white !important;
  
  
  color: hsl(223, 15%, 20%) !important;
}

html.light-theme #edit-modal-backdrop.modal .dialog .dialog-title {
  color: hsl(223, 15%, 20%) !important;
}

.danger-zone {
  border-color: hsl(0, 72%, 51%); 
}

.btn-destructive {

  position: relative; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; 
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  cursor: pointer;
  border-bottom-width: 4px;
  transform: translateY(0);
  transition: all 0.1s ease-out;


  background-color: hsl(0, 84%, 60%);
  color: hsl(0, 0%, 100%);
  border-color: hsl(0, 84%, 40%);
}
.btn-destructive:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  border-bottom-width: 6px;
}
.btn-destructive:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  filter: brightness(0.9);
}


.timer-capsule {
  position: relative; 
  pointer-events: all; 
}


.timer-capsule::before {
  
  content: attr(data-description); 
  

  position: absolute;
  top: 100%; 
  left: 0;
  margin-top: 10px; 
  

  width: 250px;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.6;
  

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none; 
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}


.timer-capsule::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 1.5rem; 
  margin-top: 4px; 


  width: 12px;
  height: 12px;
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-left: 1px solid hsl(var(--border));
  transform: rotate(45deg);


  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.timer-capsule:hover::before,
.timer-capsule:hover::after {
  opacity: 1;
  transform: translateY(0);
}