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

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0077cc;
  color: #fff;
  padding: 15px;
}
header h1 { font-size: 20px; }
header button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -260px;
  top: 0;
  width: 225px;
  height: 100%;
  background: #0077cc;
  color: white;
  transition: left 0.3s ease;
  padding-top: 60px;
  z-index: 1000;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}
.sidebar.active { left: 0; }
.sidebar nav ul { list-style: none; }
.sidebar nav ul li { margin: 15px 0; }
.sidebar nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  border-radius: 4px;
  transition: background 0.2s;
}
.sidebar nav ul li a:hover,
.sidebar nav ul li a.active { background: rgba(255,255,255,0.3); }
.close-btn {
  position: absolute; top: 10px; right: 15px; font-size: 22px;
  background: none; border: none; color: white; cursor: pointer;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
    width: 95%;
    margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 40px 20px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #0077cc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.3s, color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  background: #0077cc;
  color: #fff;
}

/* Dark Mode */
body.dark { background: #1e1e1e; color: #f0f0f0; }
body.dark header { background: #333; }
body.dark .sidebar { background: #222; }
body.dark .card { background: #2a2a2a; border: 1px solid #555; color: #ddd; }
body.dark .card:hover { background: #0077cc; color: #fff; }
