/* =========================
   Default Theme
   ========================= */
[data-theme="default-day"] {
  --card-bg: #ffffff;
  --card-border: #cccccc;
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #333333;
  --header-color: #0078d7;
  --button-bg: #0078d7;
  --button-bg-hover: #005a9e;
  --button-text: #ffffff;
  --table-header-bg: #e0e0e0;
  --table-footer-bg: #f0f0f0;
}
[data-theme="default-night"] {
  --card-bg: #1e1e1e;
  --card-border: #444444;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #f5f5f5;
  --header-color: #66aaff;
  --button-bg: #444444;
  --button-bg-hover: #666666;
  --button-text: #f5f5f5;
  --table-header-bg: #333333;
  --table-footer-bg: #2a2a2a;
}

/* =========================
   Solarized Theme
   ========================= */
[data-theme="solarized-day"] {
  --card-bg: #fdf6e3;
  --card-border: #eee8d5;
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #657b83;
  --header-color: #268bd2;
  --button-bg: #2aa198;
  --button-bg-hover: #268bd2;
  --button-text: #fdf6e3;
  --table-header-bg: #eee8d5;
  --table-footer-bg: #e0dac2;
}
[data-theme="solarized-night"] {
  --card-bg: #002b36;
  --card-border: #073642;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #839496;
  --header-color: #2aa198;
  --button-bg: #586e75;
  --button-bg-hover: #657b83;
  --button-text: #fdf6e3;
  --table-header-bg: #073642;
  --table-footer-bg: #002b36;
}

/* =========================
   Gruvbox Theme
   ========================= */
[data-theme="gruvbox-day"] {
  --card-bg: #fbf1c7;
  --card-border: #ebdbb2;
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #3c3836;
  --header-color: #b57614;
  --button-bg: #d79921;
  --button-bg-hover: #b57614;
  --button-text: #fbf1c7;
  --table-header-bg: #ebdbb2;
  --table-footer-bg: #d5c4a1;
}
[data-theme="gruvbox-night"] {
  --card-bg: #282828;
  --card-border: #3c3836;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #ebdbb2;
  --header-color: #fabd2f;
  --button-bg: #98971a;
  --button-bg-hover: #b8bb26;
  --button-text: #282828;
  --table-header-bg: #3c3836;
  --table-footer-bg: #282828;
}

/* =========================
   Monokai Theme
   ========================= */
[data-theme="monokai-day"] {
  --card-bg: #f5f5f5;
  --card-border: #cccccc;
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #272822;
  --header-color: #f92672;
  --button-bg: #a6e22e;
  --button-bg-hover: #f92672;
  --button-text: #272822;
  --table-header-bg: #e0e0e0;
  --table-footer-bg: #f0f0f0;
}
[data-theme="monokai-night"] {
  --card-bg: #272822;
  --card-border: #444444;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #f8f8f2;
  --header-color: #a6e22e;
  --button-bg: #f92672;
  --button-bg-hover: #fd971f;
  --button-text: #f8f8f2;
  --table-header-bg: #444444;
  --table-footer-bg: #373844;
}

/* =========================
   Dracula Theme (day + night)
   ========================= */
[data-theme="dracula-day"] {
  --card-bg: #f8f8f2;          /* light background */
  --card-border: #dcdcdc;      /* soft gray border */
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #282a36;       /* dark text */
  --header-color: #bd93f9;     /* signature purple accent */
  --button-bg: #6272a4;        /* muted blue */
  --button-bg-hover: #44475a;  /* darker hover */
  --button-text: #f8f8f2;      /* light text on button */
  --table-header-bg: #e6e6e6;
  --table-footer-bg: #f0f0f0;
}

[data-theme="dracula-night"] {
  --card-bg: #282a36;
  --card-border: #44475a;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #f8f8f2;
  --header-color: #bd93f9;
  --button-bg: #6272a4;
  --button-bg-hover: #44475a;
  --button-text: #f8f8f2;
  --table-header-bg: #44475a;
  --table-footer-bg: #373844;
}

/* =========================
   Tiger Orange Theme
   ========================= */
[data-theme="tiger-day"] {
  --card-bg: #fff8f0;
  --card-border: #ffcc99;
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #2c2c2c;
  --header-color: #ff6600;
  --button-bg: #ff6600;
  --button-bg-hover: #cc5200;
  --button-text: #fff8f0;
  --table-header-bg: #ffcc99;
  --table-footer-bg: #ffe5cc;
}
[data-theme="tiger-night"] {
  --card-bg: #1a1a1a;
  --card-border: #333333;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #ffcc99;
  --header-color: #ff9933;
  --button-bg: #cc5200;
  --button-bg-hover: #ff6600;
  --button-text: #1a1a1a;
  --table-header-bg: #333333;
  --table-footer-bg: #1a1a1a;
}

/* =========================
   xToys Theme
   ========================= */
[data-theme="xtoys-day"] {
  --card-bg: #ffffff;
  --card-border: #cccccc;
  --card-shadow: rgba(0,0,0,0.1);
  --text-color: #333333;

  /* pulled from your oh-my-posh colors */
  --header-color: #7B68EE;      /* path segment */
  --button-bg: #48D1CC;         /* git segment */
  --button-bg-hover: #CECE04;   /* root yellow accent */
  --button-text: #ffffff;

  --table-header-bg: #e0e0e0;
  --table-footer-bg: #f0f0f0;
}

[data-theme="xtoys-night"] {
  --card-bg: #1c1c1c;
  --card-border: #444444;
  --card-shadow: rgba(0,0,0,0.6);
  --text-color: #f5f5f5;

  /* pulled from your oh-my-posh colors */
  --header-color: #7B68EE;      /* path segment */
  --button-bg: #48D1CC;         /* git segment */
  --button-bg-hover: #CECE04;   /* root yellow accent */
  --button-text: #1c1c1c;

  --table-header-bg: #333333;
  --table-footer-bg: #2a2a2a;
}
/* =========================
   Apply variables globally
   ========================= */
body {
  background: var(--card-bg);
  color: var(--text-color);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 6px var(--card-shadow);
}

.card h2 {
  color: var(--header-color);
}

.card button {
  background: var(--button-bg);
  color: var(--button-text);
}
.card button:hover {
  background: var(--button-bg-hover);
}

.excel-table thead {
  background-color: var(--table-header-bg);
}
.excel-table tfoot {
  background-color: var(--table-footer-bg);
}
