/* timer component - split out from main for some reason */
.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 20px;
}

.timer-card {
  text-align: center;
  padding: 32px 20px;
}

.timer-display {
  font-size: 72px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin: 12px 0;
}

.empty-msg {
  color: #555; font-style: italic; font-size: 13px;
}

.session-entry {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #222;
  font-size: 14px; color: #aaa;
}
.session-entry:last-child { border-bottom: none; }

.session-type {
  font-weight: 600; color: #5a8dee;
}

.session-time {
  font-family: monospace; font-size: 12px; color: #666;
}

/* Goal Card Styling */
.goal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-input-container label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

#goal-input {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 10px 12px;
  color: #eee;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

#goal-input:focus {
  border-color: #5a8dee;
}

#goal-display {
  font-size: 14px;
  color: #aaa;
  font-style: italic;
  margin-top: 4px;
}

#goal-display.hidden {
  display: none;
}

#current-goal-text {
  color: #5a8dee;
  font-weight: 600;
  font-style: normal;
}

/* Mode Selector Styles */
.mode-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  color: #888;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
}

.mode-btn.active {
  background: #5a8dee;
  color: white;
  border-color: #5a8dee;
}

.settings-trigger {
  text-align: center;
  margin-top: 25px;
}

.text-link {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: color 0.2s;
}

.text-link:hover {
  color: #999;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: 90%;
  max-width: 340px;
  padding: 30px;
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.setting-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.setting-group label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setting-group input {
  padding: 12px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #eee;
  font-weight: 600;
  font-size: 16px;
  outline: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.modal-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

#save-settings-btn {
  background: #5a8dee;
  color: white;
  border: none;
}

#close-settings-btn {
  background: #333 !important;
  color: #aaa !important;
  border: none;
}

/* Attribution Styles */
.attribution {
  margin-top: 20px;
  font-size: 11px;
  color: #555;
  line-height: 1.8;
  text-align: center;
}

.attribution p {
  margin: 4px 0;
}

footer a,
.attribution a {
  color: #777;
  text-decoration: underline;
}

footer a:hover,
.attribution a:hover {
  color: #999;
}

/* Version Switcher Styling */
.version-switcher {
  position: fixed;
  bottom: 15px;
  left: 15px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1000;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-radius: 4px;
  text-decoration: none;
  color: #777;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.version-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #555;
}

.theme-brutalist .version-switcher {
  background: #fff;
  border: 2px solid #000;
  color: #000;
  box-shadow: 3px 3px 0px #000;
}

.theme-dark-brutalist .version-switcher {
  background: #000;
  border: 2px solid #0f0;
  color: #0f0;
  box-shadow: 3px 3px 0px #0f0;
}

.theme-indie-cat .version-switcher {
  background: #fff;
  border: 2px dashed #ff9a9e;
  color: #ff9a9e;
  border-radius: 12px;
}

/* AID Drawer Styling */
#aid-toggle {
  position: fixed;
  bottom: 15px;
  right: 260px;
  font-size: 10px;
  font-weight: bold;
  padding: 6px 12px;
  background: #222;
  border: 1px solid #444;
  color: #888;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s;
}

#aid-toggle:hover {
  background: #333;
  color: #fff;
}

#aid-drawer {
  position: fixed;
  bottom: 50px;
  right: 260px;
  max-width: 300px;
  background: #111;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
  font-family: monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #aaa;
  backdrop-filter: blur(10px);
}

#aid-drawer.hidden {
  display: none;
}

.aid-header {
  font-weight: bold;
  color: #5a8dee;
  margin-bottom: 8px;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.token-stat {
  color: #f0f;
}

/* Theme Overrides for AID Drawer */
.theme-brutalist #aid-toggle {
  background: #0ff;
  border: 2px solid #000;
  color: #000;
  box-shadow: 3px 3px 0 #000;
}

.theme-brutalist #aid-drawer {
  background: #fff;
  border: 3px solid #000;
  color: #000;
  box-shadow: 8px 8px 0 #000;
  border-radius: 0;
}

.theme-brutalist .aid-header {
  color: #f0f;
  border-color: #000;
}

.theme-dark-brutalist #aid-toggle {
  background: #f0f;
  border: 2px solid #0f0;
  color: #0f0;
  box-shadow: 3px 3px 0 #0f0;
}

.theme-dark-brutalist #aid-drawer {
  background: #000;
  border: 3px solid #0f0;
  color: #0f0;
  box-shadow: 8px 8px 0 #f0f;
  border-radius: 0;
}

.theme-indie-cat #aid-toggle {
  background: #fff;
  border: 2px dashed #8d6e63;
  color: #8d6e63;
  border-radius: 12px;
}

.theme-indie-cat #aid-drawer {
  background: #fff9f0;
  border: 2px dashed #ff8a80;
  color: #5d4037;
  border-radius: 20px;
}
