
/* ========== Background ========== */
#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

/* ========== Sidebar ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100%;
  background: #33d40e;
  color: #2013de;
  padding-top: 20px;
  z-index: 2;
  transition: all 0.3s ease-in-out;
}
.sidebar-logo {
  font-size: 20px;
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
}
.sidebar-nav li {
  padding: 15px 20px;
}
.sidebar-nav a {
  color: #0aea73;
  font-size: 18px;
  text-decoration: none;
}
.sidebar-nav a:hover {
  background: #0fe70c;
  border-radius: 8px;
  padding-left: 15px;
}

/* ========== Toggle Button for Sidebar (optional) ========== */
.toggle-sidebar {
  position: absolute;
  top: 20px;
  left: 240px;
  background: #0aea73;
  border: none;
  padding: 10px 15px;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  z-index: 3;
  cursor: pointer;
  transition: 0.3s ease;
}
.toggle-sidebar:hover {
  background: #1aff8d;
}

/* ========== Main Content ========== */
.main-content {
  margin-left: 240px;
  padding: 40px;
  position: relative;
  z-index: 2;
  color: rgb(18, 214, 211);
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-welcome {
  font-size: 42px;
  font-weight: 700;
  text-shadow: 2px 2px 5px black;
  margin-bottom: 20px;
}

/* ========== Profile Preview ========== */
.profile-preview {
  text-align: right;
}
.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #00e1ff;
  box-shadow: 0 0 10px #00e1ff;
  margin-bottom: 5px;
}

/* ========== Dashboard Cards ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.dashboard-card {
  background: #09c1d5;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: rgb(16, 174, 202);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transition: 0.3s ease-in-out;
  font-size: 20px;
}
.dashboard-card h2 {
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 4px black;
}
.dashboard-card p {
  font-size: 18px;
  text-shadow: 1px 1px 3px black;
}
.dashboard-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px rgb(14, 229, 253);
}

/* ========== Colored Cards ========== */
.card-green  { background-color: #2ecc71; }
.card-blue   { background-color: #3498db; }
.card-purple { background-color: #8e44ad; }
.card-orange { background-color: #e67e22; }
.card-pink   { background-color: #e84393; }
.card-cyan   { background-color: #00bcd4; }
.card-yellow { background-color: #f1c40f; color: #000; }
.card-yellow h2,
.card-yellow p {
  color: #000;
}

/* ========== Chart Section ========== */
.analytics-section {
  margin-top: 50px;
}
.section-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #0ef1e8;
  text-shadow: 1px 1px 3px #000;
}
.chart-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
}

/* ========== Dark Mode ========== */
.dark-mode {
  background-color: #121212;
  color: #00ffee;
}
.dark-mode .sidebar {
  background: #1e1e1e;
  color: #00ffee;
}
.dark-mode .dashboard-card {
  background: #222;
  color: #0ef1e8;
}
.dark-mode .chart-card {
  background: #333;
}
.dark-mode .dashboard-card:hover {
  box-shadow: 0 0 25px #0ef1e8;
}

/* ========== Toggle Switch ========== */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-left: auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 30px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px; width: 22px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:checked + .slider:before {
  transform: translateX(30px);
}

/* ========== Responsive Fixes ========== */
@media screen and (max-width: 768px) {
  .sidebar {
    width: 180px;
  }
  .main-content {
    margin-left: 200px;
    padding: 20px;
  }
  .dashboard-welcome {
    font-size: 30px;
  }
}
@media screen and (max-width: 576px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .toggle-sidebar {
    display: block;
  }
}
.top-bar {
  background: #222;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-bar {
  padding: 5px 10px;
  width: 300px;
  border-radius: 5px;
  border: none;
}
.top-bar-right .icon {
  margin-left: 15px;
  font-size: 18px;
  cursor: pointer;
}
.category-buttons {
  margin-top: 2rem;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-btn {
  padding: 10px 20px;
  background: #444;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  transition: 0.2s ease;
}
.category-btn:hover {
  background: #00aaff;
}
.bottom-bar {
  background: #111;
  color: #ccc;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  color: #ccc;
  margin: 0 5px;
  text-decoration: none;
}
.socials span {
  font-size: 20px;
  margin-left: 10px;
}
.toggle-btn {
  background: none;
  color: #fff;
  border: none;
  font-size: 20px;
  margin-bottom: 10px;
  cursor: pointer;
}
