







/* Reset & basic styling */
* { box-sizing: border-box; margin:0; padding:0; font-family: 'Inter', sans-serif; }
body { background: #f4f6f9; display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 250px; background: #1f2d3d; color: #fff;
  display: flex; flex-direction: column; position: fixed;
  height: 100vh; padding: 20px; transition: all 0.3s ease;
}
.sidebar h2 { text-align: center; margin-bottom: 20px; font-weight: 600; }
.sidebar a {
  color: #fff; text-decoration: none; padding: 12px 15px;
  margin: 5px 0; border-radius: 6px; display: flex; align-items: center;
  transition: background 0.2s;
}
.sidebar a i { margin-right: 10px; }
.sidebar a:hover { background: #3c8dbc; }

/* Main content */
.main { margin-left: 250px; padding: 30px; flex: 1; transition: margin-left 0.3s; }

/* Top bar */
.topbar {
  background: white; padding: 15px 20px; border-radius: 8px;
  margin-bottom: 20px; display: flex; justify-content: space-between;
  align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Cards */
.card {
  background: white; padding: 20px; border-radius: 12px;
  margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card h2 { margin-bottom: 10px; }
.card .btn {
  display: inline-block; padding: 10px 20px;
  background: #3c8dbc; color: white; text-decoration: none;
  border-radius: 6px; margin-top: 10px;
}
.card .btn:hover { background: #3272a3; }

/* Quick Access buttons */
.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.quick-access a {
  display: flex; align-items: center; justify-content: center;
  background: #3c8dbc; color: #fff; padding: 15px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s;
}
.quick-access a:hover { transform: translateY(-3px); background: #3272a3; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table th, table td { padding: 10px; border: 1px solid #ddd; text-align: left; }
table th { background: #f0f0f0; }

/* Forms */
input, select, textarea { width: 100%; padding: 8px; margin: 5px 0 15px 0; border-radius: 6px; border: 1px solid #ccc; }
textarea { resize: vertical; }

/* ===== TABLET ===== */
@media (max-width: 992px) {
  .sidebar { width: 200px; }
  .main { margin-left: 200px; padding: 20px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  body {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    width: 220px;
    height: 100%;
    padding: 15px 10px;
    overflow-y: auto;
    z-index: 1000;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .sidebar a {
    padding: 10px;
    font-size: 14px;
    margin: 4px 0;
  }

  .main {
    margin-left: 0;
    padding: 12px;
  }

  .topbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
  }

  .card {
    padding: 15px;
    border-radius: 10px;
  }

  .quick-access {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
.menu-toggle {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Overlay behind sidebar */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

/* Show overlay when sidebar opens */
.overlay.active {
  opacity: 1;
  visibility: visible;
}
