/* =====================
   GOOGLE FONTS IMPORT
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* =====================
   THEME VARIABLES - AETHVION STYLE
   ===================== */

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --accent: #00ffcc;
  --card-bg: #1a1a3a;
  --card-hover: #2a2a4a;
  --accent-rgb: 0, 255, 204;
  --text-secondary: #cccccc;
  --border-color: rgba(0, 255, 204, 0.3);
}

[data-theme="light"] {
  --bg: #f9f9fb;
  --fg: #111111;
  --accent: #007acc;
  --card-bg: #ffffff;
  --card-hover: #f0f4f8;
  --accent-rgb: 0, 122, 204;
  --text-secondary: #555555;
  --border-color: rgba(0, 122, 204, 0.3);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --accent: #00ffcc;
  --card-bg: #1a1a3a;
  --card-hover: #2a2a4a;
  --text-secondary: #cccccc;
  --border-color: rgba(0, 255, 204, 0.3);
}

/* =====================
   GLOBAL STYLES
   ===================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, .logo, .project-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 600;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle Grid Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
  animation: subtleGrid 20s linear infinite;
}

@keyframes subtleGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* =====================
   SIDEBAR
   ===================== */

.sidebar {
  width: 260px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem;
  height: calc(100vh - 50px);
  position: fixed;
  right: 0;
  top: 45px;
  overflow-y: auto;
  border-left: 1px solid var(--border-color);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.sidebar-collapsed .sidebar {
  transform: translateX(100%);
}

.sidebar-toggle {
  position: fixed;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: var(--accent);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
  height: auto;
}

.sidebar-toggle:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: var(--accent);
  transform: translateY(-50%); /* Override global button transform */
}

.sidebar-nav h2 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-nav ul ul {
  margin-left: 20px;
  margin-top: 10px;
  border-left: 2px solid rgba(0, 255, 204, 0.3);
  padding-left: 15px;
}

.sidebar-nav ul ul li {
  margin: 3px 0;
}

.sidebar-nav ul ul li a {
  font-size: 14px;
  padding: 8px 12px;
  background: rgba(0, 255, 204, 0.03);
  margin-bottom: 3px;
}

.sidebar-nav ul ul li a:hover {
  background: rgba(0, 255, 204, 0.12);
  transform: translateX(3px);
}

.sidebar-nav li {
  margin: 6px 0;
}

.sidebar-nav a {
  color: var(--fg);
  text-decoration: none;
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 255, 204, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 5px;
  border-radius: 8px;
  background: rgba(0, 255, 204, 0.05);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent);
  background: rgba(0, 255, 204, 0.15);
  border-left: 3px solid var(--accent);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

.sidebar-search {
  margin-bottom: 1rem;
}

.sidebar-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  transition: all 0.3s ease;
}

.sidebar-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb, 0, 255, 204), 0.3);
  background: rgba(0, 0, 0, 0.8);
}

.sidebar-nav strong {
  color: var(--accent);
  font-size: 1.1rem;
  display: block;
  margin: 0.5rem 0;
}

/* =====================
   MAIN CONTENT
   ===================== */

.main-content {
  margin-right: 260px;
  margin-top: 50px;
  padding: 2rem;
  flex: 1;
  min-width: 0;
}

.sidebar-collapsed .main-content {
  margin-right: 0;
}

/* =====================
   HERO SECTION
   ===================== */

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  animation: glow 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent); }
  to { text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent), 0 0 40px var(--accent); }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--fg);
}

.hero .search-container {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero #search-bar {
  width: 100%;
  max-width: 800px;
  padding: 1.25rem 1.5rem;
  font-size: 1.4rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero #search-bar:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px rgba(var(--accent-rgb, 0, 255, 204), 0.3);
}

.hero #search-bar::placeholder {
  color: rgba(var(--fg-rgb, 224, 224, 224), 0.6);
  font-style: italic;
}

.btn {
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #00ddb5;
}

[data-theme="light"] .hero {
  background: radial-gradient(circle at top, #ffffff, #f9f9fb);
}

[data-theme="light"] .hero #search-bar {
  background: #ffffff;
  border-color: #ccc;
  color: #111;
}

[data-theme="light"] .hero #search-bar::placeholder {
  color: #888;
}

/* =====================
   CATEGORIES
   ===================== */

.category-box-container {
  display: grid;
  gap: 2rem;
}

.category-box {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 204, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-box:hover::before {
  opacity: 1;
}

.category-box:hover {
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 255, 204, 0.2);
  border-color: rgba(0, 255, 204, 0.3);
}

.category-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.category-box ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.category-box ul li a {
  display: block;
  background: rgba(0, 255, 204, 0.05);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 204, 0.1);
}

.category-box ul li a:hover {
  background: rgba(0, 255, 204, 0.15);
  border-color: rgba(0, 255, 204, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
}

.category-box,
.tool-wrapper {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-box:hover,
.tool-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .category-box ul li a {
  background: #f5f7fa;
  color: #111;
}

[data-theme="light"] .category-box ul li a:hover {
  background: #e4ecf3;
}

[data-theme="light"] .category-box,
[data-theme="light"] .tool-wrapper {
  border: 1px solid #e6e6e6;
}

/* =====================
   FOOTER
   ===================== */

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: linear-gradient(45deg, #0a0a0a, #1a1a3a, #2a004a, #0a0a0a);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-content p {
  margin: 0 0 1rem;
}

.footer-content nav {
  margin-top: 0.5rem;
}

.footer-content nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-content nav a:hover {
  text-decoration: underline;
}

[data-theme="light"] footer {
  background: #f5f7fa;
}

/* =====================
   THEME TOGGLE
   ===================== */


/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar-collapsed .sidebar {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  .sidebar-toggle {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* =====================
   PAGE CONTENT CONTAINER
   ===================== */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.page-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-container p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* =====================
   TOP HEADER
   ===================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1001;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  padding-left: 45px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.logo:hover {
  text-shadow: 0 0 20px var(--accent);
}

.subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.subtext a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.subtext a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #00ccaa);
  transition: width 0.3s ease;
}

.subtext a:hover::before {
  width: 100%;
}

.subtext a:hover {
  color: #00ccaa;
  text-shadow: 0 0 8px rgba(var(--accent-rgb, 0, 255, 204), 0.5);
}

.powered-by {
  font-size: 0.85rem;
  color: var(--fg);
}

.powered-by a {
  color: var(--accent);
  text-decoration: underline;
}

.top-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Progressive hiding of navigation items based on screen width */
@media (max-width: 1400px) {
  .top-nav a:nth-last-child(-n+2) { /* Hide last 2 items */
    display: none;
  }
}

@media (max-width: 1200px) {
  .top-nav a:nth-last-child(-n+4) { /* Hide last 4 items */
    display: none;
  }
}

@media (max-width: 1000px) {
  .top-nav a:nth-last-child(-n+6) { /* Hide last 6 items */
    display: none;
  }
}

@media (max-width: 900px) {
  .top-nav a:nth-last-child(-n+8) { /* Hide last 8 items */
    display: none;
  }
}

@media (max-width: 800px) {
  .top-nav a:nth-last-child(-n+10) { /* Hide last 10 items, keep only Home */
    display: none;
  }
}

.top-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 4px 8px;
}

.top-nav a:hover {
  color: white;
}

.theme-toggle {
  position: fixed;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  z-index: 1002;
  transition: all 0.3s ease;
  height: auto;
}

.theme-toggle:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: var(--accent);
  transform: translateY(-50%); /* Override global button transform */
}

.nav-toggle {
  display: none;
  background: var(--accent);
  color: #000;
  border: none;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1002;
}

/* Additional responsive adjustments for header elements */
@media (max-width: 1100px) {
  .powered-by {
    display: none; /* Hide "Powered by Aethvion" text to save space */
  }
}

@media (max-width: 900px) {
  .top-nav {
    gap: 0.75rem; /* Reduce gap between nav items */
  }
}

@media (max-width: 768px) {

  .hero .search-container {
    margin-top: 1.5rem;
  }
  .hero #search-bar {
    max-width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.2rem;
    border-radius: 8px;
  }

  .top-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
  }

  .top-nav.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 90px;
    top: 12px;
  }

  .theme-toggle {
    position: fixed;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header-left {
    gap: 0.5rem;
  }

  .logo {
    padding-left: 45px;
    font-size: 1.1rem;
  }

  .powered-by {
    display: none;
  }
}

/* Additional logo scaling for very small screens */
@media (max-width: 600px) {
  .logo {
    font-size: 1.0rem;
    padding-left: 45px;
  }
}

@media (max-width: 500px) {
  .logo {
    font-size: 0.9rem;
    padding-left: 45px;
  }

  .sidebar {
    transform: translateX(100%);
    width: 280px;
    max-width: 280px;
  }

  .sidebar-collapsed .sidebar {
    transform: translateX(0);
  }

  .main-content {
    margin-right: 0;
    padding: 1rem;
  }

  .sidebar-toggle {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
}


/* Hidden class for search filtering */
.hidden {
  display: none;
}

/* No results message for main search */
.no-results {
  color: var(--fg);
  margin-top: 20px;
  font-size: 1rem;
  text-align: center;
}

/* Sidebar search live region */
#sidebar-search-results {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* =====================
   GLOBAL BUTTON STYLES
   ===================== */

button {
  background: rgba(0, 255, 204, 0.12);
  color: var(--fg);
  border: 1px solid rgba(0, 255, 204, 0.25);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: rgba(0, 255, 204, 0.25);
  border-color: rgba(0, 255, 204, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

button:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 0, 255, 204), 0.3);
}

button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Light theme button styles */
[data-theme="light"] button {
  background: #f5f7fa;
  color: #111;
  border-color: rgba(0, 122, 204, 0.2);
}

[data-theme="light"] button:hover {
  background: #e4ecf3;
  border-color: rgba(0, 122, 204, 0.4);
  box-shadow: 0 5px 15px rgba(0, 122, 204, 0.2);
}

[data-theme="light"] button:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.3);
}

[data-theme="light"] button:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 0, 0, 0.1);
}

/* =====================
   GLOBAL INPUT STYLES
   ===================== */

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--fg);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb, 0, 255, 204), 0.3);
  background: rgba(0, 0, 0, 0.4);
}

/* Light theme input styles */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="time"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.8);
  color: #111;
  border-color: rgba(0, 122, 204, 0.3);
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] input[type="date"]:focus,
[data-theme="light"] input[type="time"]:focus,
[data-theme="light"] input[type="datetime-local"]:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.3);
}

/* =====================
   TOOL WRAPPER (UNIVERSAL)
   ===================== */

.tool-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 255, 204, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tool-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 204, 0.15);
  border-color: rgba(0, 255, 204, 0.3);
}

.tool-wrapper h1 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent);
}

.tool-wrapper h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}

.tool-wrapper p {
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.tool-wrapper .calculator {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.tool-wrapper .error-message {
  color: #ff4d4d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.tool-wrapper .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 768px) {
  .tool-wrapper {
    padding: 1rem;
  }
  
  .tool-wrapper h1 {
    font-size: 1.8rem;
  }
  
  .tool-wrapper h2 {
    font-size: 1.3rem;
  }
  
  .tool-wrapper .calculator {
    padding: 0.75rem;
  }
}

/* =====================
   Webkit Scrollbar
   ===================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ccaa;
}

body::-webkit-scrollbar {
  opacity: 0;
  transition: opacity 0.3s;
}

body:hover::-webkit-scrollbar {
  opacity: 1;
}

/* =====================
   Light Theme Sidebar, Footer, Header
   ===================== */
[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #ddd;
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid #ddd;
}

[data-theme="light"] .footer {
  background: #f4f4f4;
  color: #555;
}

[data-theme="light"] .footer-content nav a {
  color: var(--accent);
}

[data-theme="light"] .footer-content nav a:hover {
  text-decoration: underline;
}

/* Sidebar links */
[data-theme="light"] .sidebar-nav a {
  color: #111;
}

[data-theme="light"] .sidebar-nav a:hover {
  color: #007acc;
}

[data-theme="light"] .sidebar-search input {
  background: rgba(0, 0, 0, 0.05);
  color: #111;
}

[data-theme="light"] .theme-toggle {
  background: none;
  border-color: rgba(0, 122, 204, 0.3);
  color: var(--accent);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 122, 204, 0.1);
  border-color: var(--accent);
  transform: translateY(-50%); /* Override global button transform */
}

[data-theme="light"] .top-nav a {
  color: #111;
}

[data-theme="light"] .top-nav a:hover {
  color: #007acc;
}

[data-theme="light"] .powered-by {
  color: #555;
}
