 /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 240px;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(14px);
      box-shadow: 4px 0 20px rgba(0,0,0,0.5);
      display: flex;
      flex-direction: column;
      padding-top: 2rem;
      z-index: 1000;
      transition: all 0.3s ease;
    }

    .sidebar h2 {
      text-align: center;
      color: #60a5fa;
      margin-bottom: 2rem;
      font-size: 1.3rem;
      text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }

    .sidebar a {
      padding: 1rem 1.5rem;
      text-decoration: none;
      color: #cbd5e1;
      display: block;
      font-size: 1rem;
      font-weight: 500;
      border-left: 4px solid transparent;
      transition: all 0.3s ease;
    }

    .sidebar a:hover,
    .sidebar a.active {
      background: rgba(37, 99, 235, 0.25);
      color: #fff;
      border-left: 4px solid #3b82f6;
      padding-left: 2rem;
    }

    /* Main content shifts right */
    .main-content {
      margin-left: 240px;
      width: calc(100% - 240px);
      transition: margin-left 0.3s ease;
    }
 /* Responsive - collapse sidebar on mobile */
    @media (max-width: 768px) {
      .sidebar {
        width: 200px;
        transform: translateX(-200px);
      }

      .sidebar.show {
        transform: translateX(0);
      }

      .main-content {
        margin-left: 0;
        width: 100%;
      }

      .toggle-btn {
        position: fixed;
        top: 15px;
        left: 15px;
        background: #2563eb;
        border: none;
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        z-index: 1100;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      }
    }
  header {
      text-align: center;
      padding: 0.1rem;
      background-color: #3b82f6 ;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      position: sticky;
      top: 0;
      z-index: 500;
    }


   /* Popup Background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 60, 0.8);
}

/* Popup Content */
.modal-content {
  background: #0f172a;
  color: white;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.4);
  animation: slideDown 0.3s ease-in-out;
  position: relative;
}

.modal-content h2 {
  color: #38bdf8;
  margin-bottom: 15px;
}

.modal-content input[type=file] {
  margin: 10px 0;
  padding: 5px;
}

.modal-content button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.modal-content button:hover {
  background: #2563eb;
}

.close {
  color: #38bdf8;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* Circular Loader */
.loader-container {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.loader {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #38bdf8;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

.loader-container p {
  color: #38bdf8;
  font-size: 14px;
}

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

/* Animation */
@keyframes slideDown {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
