.text-muted {
  color: var(--text-muted);
  font-size: 0.85em;
}

/* =========================
   THEME VARIABLES
   Default: Light
   ========================= */

:root {
  --font-main: "Courier New", Courier, monospace;
  
  --bg: #f3f3f3;
  --panel-bg: #ffffff;
  --border: #000000;

  --text-main: #262626;
  --text-muted: #666666;
  
  --link-color: #0066cc;
  --link-hover-color: #004499;

  --button-bg: #e6e6e6;
  --button-border: #000000;
  
  --quake-color-small-bg: #F3F3F3;
  --quake-color-small-text: #000;

  --quake-color-green-bg: #AAEEB4;
  --quake-color-green-text: #000;

  --quake-color-yellow-bg: #F9CC7A;
  --quake-color-yellow-text: #000;

  --quake-color-red-bg: #EF676C;
  --quake-color-red-text: #000;
  
  --quake-color-black-bg: #000;
  --quake-color-black-text: #fff;
}

/* =========================
   DARK THEME
   ========================= */

html[data-theme="dark"] {
  --font-main: "Inter", system-ui, sans-serif;
  
  --bg: #0f0f0f;
  --panel-bg: #151515;
  --border: #2a2a2a;

  --text-main: #eaeaea;
  --text-muted: #aaaaaa;
  
  --link-color: #0066cc;
  --link-hover-color: #004499;

  --button-bg: #222222;
  --button-border: #444444;
  
  --quake-color-small-bg: #2A2A2A;
  --quake-color-small-text: #fff;

  --quake-color-green-bg: #184B20;
  --quake-color-green-text: #fff;

  --quake-color-yellow-bg: #6C4B0D;
  --quake-color-yellow-text: #fff;

  --quake-color-red-bg: #7E181C;
  --quake-color-red-text: #fff;
  
  --quake-color-black-bg: #fff;
  --quake-color-black-text: #000;
}

/* =========================
   COZY THEME
   ========================= */

html[data-theme="cozy"] {
  --font-main: "Georgia", serif;
  
  --bg: #ECC9A4;
  --panel-bg: #F8E7D5;
  --border: #6F3018;

  --text-main: #5C2D1E;
  --text-muted: #7C4A2A;
  
  --link-color: #4B6E3D;
  --link-hover-color: #C8E59A;

  --button-bg: #C8E59A;
  --button-border: #4B6E3D;
  
  --quake-color-small-bg: #E5BE9A;
  --quake-color-small-text: #5C2D1E;

  --quake-color-green-bg: #C6C693;
  --quake-color-green-text: #5C2D1E;

  --quake-color-yellow-bg: #EEB97C;
  --quake-color-yellow-text: #5C2D1E;

  --quake-color-red-bg: #EA8B7B;
  --quake-color-red-text: #5C2D1E;
  
  --quake-color-black-bg: #3E3A35;
  --quake-color-black-text: #fff;
}

/* =========================
   PETROL BLUE THEME
   ========================= */

html[data-theme="petrol"] {
  --font-main: "Times New Roman", serif;
  
  --bg: #186D6F;
  --panel-bg: #25A2A3;
  --border: #042F39;

  --text-main: #130B0C;
  --text-muted: #382329;
  
  --link-color: #A4E3D8;
  --link-hover-color: #DCFAF5;

  --button-bg: #176A6A;
  --button-border: #042F39;
  
  --quake-color-small-bg: #5BB9BA;
  --quake-color-small-text: #061B1C;

  --quake-color-green-bg: #24B980;
  --quake-color-green-text: #061B1C;

  --quake-color-yellow-bg: #92A352;
  --quake-color-yellow-text: #061B1C;

  --quake-color-red-bg: #A74B50;
  --quake-color-red-text: #061B1C;
  
  --quake-color-black-bg: #092929;
  --quake-color-black-text: #A4E3D8;
}

/* =========================
   LIME THEME
   ========================= */

html[data-theme="lime"] {
  --font-main: "Georgia", serif;
  
  --bg: #F4F468;
  --panel-bg: #FFFCA2;
  --border: #2C8100;

  --text-main: #40930E;
  --text-muted: #1D7302;
  
  --link-color: #2CB357;
  --link-hover-color: #15A844;

  --button-bg: #E8ED62;
  --button-border: #308900;
  
  --quake-color-small-bg: #FFFDC3;
  --quake-color-small-text: #40930E;

  --quake-color-green-bg: #B2F47F;
  --quake-color-green-text: #40930E;

  --quake-color-yellow-bg: #FFD151;
  --quake-color-yellow-text: #40930E;

  --quake-color-red-bg: #F36A50;
  --quake-color-red-text: #40930E;
  
  --quake-color-black-bg: #403F29;
  --quake-color-black-text: #FFFCA2;
}

/* =========================
   BUBBLEGUM THEME
   ========================= */

html[data-theme="bgum"] {
  --font-main: "Inter", sans-serif;
  
  --bg: #FFC0FC;
  --panel-bg: #FFD8FF;
  --border: #FF4290;

  --text-main: #FF4290;
  --text-muted: #BD2B5F;
  
  --link-color: #1E92DD;
  --link-hover-color: #0883B6;

  --button-bg: #FFF1FF;
  --button-border: #FF76A9;
  
  --quake-color-small-bg: #FFF1FF;
  --quake-color-small-text: #FF4290;

  --quake-color-green-bg: #CDDBD4;
  --quake-color-green-text: #44485A;

  --quake-color-yellow-bg: #FFC8AD;
  --quake-color-yellow-text: #44485A;

  --quake-color-red-bg: #F789A3;
  --quake-color-red-text: #44485A;
  
  --quake-color-black-bg: #847084;
  --quake-color-black-text: #FFF1FF;
}

/* =========================
   Global base
   ========================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-main);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.feed-item a {
  color: var(--link-color);
}

.feed-item a:hover {
  color: var(--link-hover-color);
}

.feed-item {
  margin-bottom: 0.5rem;
}


/* =========================
   Dashboard container
   ========================= */

#dashboard {
  height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =========================
   Rows
   ========================= */

.row {
  display: grid;
  gap: 1rem;
  padding: 0.5rem;
}

/* Top row: 4 equal columns */
.top-row {
  grid-template-columns: repeat(4, 1fr);
  height: 50%;
}

/* Bottom row: 3 equal columns */
.bottom-row {
  grid-template-columns: repeat(3, 1fr);
  height: 50%;
}


/* =========================
   Panels
   ========================= */

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* =========================
   Panel headers
   ========================= */

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  font-size: 1rem;
  margin: 0;
  font-weight: bold;
}

.panel-selector {
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--button-bg);
  border: 1px solid var(--border);
  color: inherit;
}


/* =========================
   Panel content
   ========================= */

.panel-content {
  padding: 0.75rem;
  overflow-y: auto;
  flex: 1;
}


/* =========================
   Control panel specifics
   ========================= */

.control-panel .panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 1.25rem;
}


/* =====================
   CLOCK
===================== */

.clock-section {
  display: flex;
  margin-top: 16px;
  margin-bottom: 8px;
}

.clock-display {
  font-size: 2.5em;
  margin-right: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock-controls {
  display: flex;
  flex-direction: column;
}

.tz-btn {
  font-family: inherit;
  font-size: 0.6rem;
  padding: 3px 4px;
  margin-left: 6px;
  cursor: pointer;
  background: var(--button-bg);
  border: 1px solid var(--button-border);
  color: inherit;
}


/* =====================
   STOPWATCH
===================== */

.stopwatch-section {
  text-align: center;
}

.stopwatch-display {
  font-size: 1.8em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stopwatch-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stopwatch-controls button {
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  background: var(--button-bg);
  border: 1px solid var(--button-border);
  color: inherit;
}


/* =====================
   Settings
===================== */

.settings-section h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
}

.setting {
  margin-bottom: 0.5rem;
}

.toggle-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
}

.toggle-btn.on {
  background: var(--accent);
  color: var(--accent-text);
}

.toggle-btn.off {
  opacity: 0.8;
}


/* =====================
   Control links
===================== */

.control-links {
  margin-top: auto;
  display: flex;
  gap: 1rem;
}

.control-links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

.control-links a:hover {
  text-decoration: underline;
}

/* =========================
   WORK PANELS CONTENT (Theme-ready)
   ========================= */

/* Common panel content styling */
.work-panel .panel-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding: 0.5rem;
}

/* -------------------------
   Checklist
------------------------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.checklist input[type="text"] {
  flex: 1;
  padding: 3px 5px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-bg);
  color: var(--text-main);
}

.checklist input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.checklist button {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  background: var(--button-bg);
  border: 1px solid var(--button-border);
  color: var(--text-main);
}

/* -------------------------
   Notepad
------------------------- */
.work-panel textarea {
  width: 100%;
  height: 100%;
  resize: none;
  padding: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-sizing: border-box;
  background: var(--panel-bg);
  color: var(--text-main);
}

/* -------------------------
   Focus Cards
------------------------- */
.focus-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 6px;
  background-color: var(--panel-bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-main);
}

.focus-card input[type="text"] {
  font-weight: bold;
  padding: 3px 5px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-bg);
  color: var(--text-main);
}

.focus-card textarea {
  width: 100%;
  resize: none;
  padding: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-bg);
  color: var(--text-main);
}

/* Add card button */
.work-panel .focus-card + button {
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  background: var(--button-bg);
  border: 1px solid var(--button-border);
  color: var(--text-main);
}

/* -------------------------
   Scrollbars
------------------------- */
.work-panel .panel-content::-webkit-scrollbar {
  width: 8px;
}

.work-panel .panel-content::-webkit-scrollbar-track {
  background: var(--panel-bg);
}

.work-panel .panel-content::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

/* Info page */
.info-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.5;
}

.info-page h1 {
  font-size: 2em;
  margin-bottom: 1rem;
}

.info-page h2 {
  font-size: 1.2em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-page p,
.info-page li {
  font-size: 1rem;
}

.info-page ul {
  padding-left: 1.2rem;
}

.info-page footer {
  margin-top: 2rem;
}

.info-page a {
  color: var(--text-main);
  text-decoration: underline;
}
