* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
}

/* Login Page */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.login-container {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  width: 340px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #333;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.form-group input:focus {
  border-color: #2a5298;
}

.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2a5298;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.login-btn:hover {
  background: #1e3c72;
}

.footer-text {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

/* Dashboard */
.dashboard-body {
  background: #f4f7fb;
  color: #222;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #1f2a44;
  color: white;
  padding: 24px 16px;
}

.logo {
  margin-bottom: 24px;
  font-size: 24px;
  text-align: center;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  text-decoration: none;
  color: white;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
  background: #2f3d63;
}

.menu-item.logout {
  margin-top: 20px;
  background: #b42318;
}

.menu-item.logout:hover {
  background: #912018;
}

.main-content {
  flex: 1;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.topbar h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.subtitle {
  color: #666;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a5298;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.card-value {
  font-size: 28px;
  font-weight: bold;
  color: #1f2a44;
}

.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.panel {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.panel h3 {
  margin-bottom: 16px;
}

.activity-list {
  list-style: disc;
  padding-left: 20px;
  color: #444;
}

.activity-list li {
  margin-bottom: 10px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-buttons button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2a5298;
  color: white;
  cursor: pointer;
}

.action-buttons button:hover {
  background: #1e3c72;
}

@media (max-width: 900px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 200px;
  }
}

@media (max-width: 700px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}