
/* ======================= */
/* === CSS Dashboard v1 === */
/* ======================= */

/* === VARIABLES === */
:root {
  --primary-color: #13c846;
  --accent-color: #43e97b;
  --dark-bg: rgba(0, 0, 0, 0.6);
  --card-bg: rgba(255, 255, 255, 0.8);
  --border-radius: 12px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* === BACKGROUND VIDEO === */
#bg-video,
.fallback-image,
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

#bg-video {
  z-index: -2;
}

.fallback-image {
  z-index: -3;
  display: none;
}

.overlay {
  background: var(--dark-bg);
  z-index: -1;
}

/* === LOADER === */
.loader {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: var(--dark-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === DASHBOARD === */
.dashboard-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background: var(--dark-bg);
  color: rgb(35, 194, 18);
  padding: 20px;
  overflow-y: auto;
  height: 100vh;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: var(--border-radius);
  transition: background 0.3s;
}

.sidebar ul li:hover {
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.dashboard-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* === BUTTONS === */
.add-to-cart,
.view-details {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background: var(--primary-color);
  color: #12cd3e;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.add-to-cart:hover,
.view-details:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
  }

  .main-content {
    margin-left: 0;
  }
}
.dashboard-container {
  padding: 40px;
  color: #1dcad3;
  text-align: center;
}

.dashboard-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
  text-shadow: 2px 2px #000;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

.dashboard-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 15px;
  text-decoration: none;
  color: rgb(32, 185, 216);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dashboard-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(255,255,255,0.4);
}

/* Color Variants for Boxes */
.bg-purple { background: #6a0dad; }
.bg-blue   { background: #007BFF; }
.bg-green  { background: #28a745; }
.bg-yellow { background: #ffc107; color: #000; }
.bg-orange { background: #fd7e14; }
.bg-pink   { background: #e83e8c; }
.bg-red    { background: #dc3545; }
body {
  background: #c71caa;
  font-family: 'Segoe UI', sans-serif;
  color: #1ee635;
}

.background-overlay {
  background: url('/static/images/electronics-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  filter: brightness(0.2);
}

.sidebar {
  width: 230px;
  background-color: #00d100;
  height: 100vh;
  position: fixed;
  padding: 20px;
  color: #28cbd6;
  overflow-y: auto;
}

.sidebar-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1afced;
}

.sidebar-nav li {
  margin: 15px 0;
  list-style: none;
}

.sidebar-nav li a {
  color: #12eee7;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.sidebar-nav li a:hover {
  color: #b4cf1c;
  background-color: #85dfdc;
  padding: 4px 8px;
  border-radius: 6px;
}

.main-content {
  margin-left: 260px;
  padding: 40px;
  color: rgb(42, 239, 24);
}
.sidebar ul li a {
    text-decoration: none;
    color: rgb(13, 182, 205);
    display: flex;
    align-items: center;
}

.sidebar ul li a:hover {
    background: #3ad9e1;
}
.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;
}
.sidebar-hidden #sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar-hidden #toggleSidebar {
  left: 10px !important;
}
/* Sidebar hidden state */
.sidebar-hidden #sidebar {
  margin-left: -260px;
  transition: margin 0.3s ease;
}

.sidebar-hidden .container,
.sidebar-hidden main {
  margin-left: 0 !important;
  transition: margin 0.3s ease;
}

/* Default state */
#sidebar {
  transition: margin 0.3s ease;
  width: 250px;
}


