/* 🌤 Base Theme Variables */
:root {
  --bg-color: #f5f6fa;
  --text-color: #222;
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --accent-color: #007bff;
  --border-color: #e5e5e5;
  --shadow-color: rgba(0, 0, 0, 0.05);
}

/* 🌙 Dark Mode Variables */
body.dark {
  --bg-color: #1f1f24;
  --text-color: #f0f0f0;
  --sidebar-bg: #2a2a30;
  --card-bg: #2f2f36;
  --accent-color: #4da3ff;
  --border-color: #3a3a40;
  --shadow-color: rgba(255, 255, 255, 0.05);
}

/* 🧩 General Layout */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  transition: background 0.3s, color 0.3s;
}

.sidebar {
  width: 270px;
  background: var(--sidebar-bg);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 8px var(--shadow-color);
  transition: background 0.3s, box-shadow 0.3s;
}

.content {
  margin-left: 280px;
  padding: 30px;
  transition: background 0.3s;
}

/* 📋 Sidebar Headings */
.sidebar h5 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 🧭 Sidebar Buttons */
.nav-btn {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s ease;
  color: var(--text-color);
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--accent-color);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 3px 10px var(--shadow-color);
}

/* 🔲 Input Styles */
input, select, textarea {
  border-radius: 6px !important;
  border-color: var(--border-color) !important;
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 0.1rem var(--accent-color) !important;
}

/* 📦 Cards and Tables */
.section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.section.active {
  display: block;
}

.card, table {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 8px var(--shadow-color);
}

/* 🌗 Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color);
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: #fff;
}

/* 🧁 Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* 🎞 Smooth Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .content {
    margin-left: 0;
  }
}

.section {
  display: none;
}
.section.active {
  display: block;
}


.section { display: none; }
.section.active { display: block; }

body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark .sidebar {
  background-color: #1e1e1e;
  color: #fff;
}

body.dark .table {
  color: #fff;
}

.theme-toggle {
  cursor: pointer;
}

