body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Login container */
.login-container {
  background: rgba(162, 214, 240, 0.85);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: fadeIn 1s ease-in-out;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

h1 {
  margin: 5px 0;
  color: #fff;
  font-size: 30px;
}

p {
  color: #444;
  margin-bottom: 20px;
}

/* Input fields */
input {
  display: block;
  width: calc(100% - 10px);
  padding: 12px;
  margin: 12px auto;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
  border-color: #2575fc;
  box-shadow: 0 0 8px rgba(37,117,252,0.4);
  outline: none;
}

/* OTP boxes */
.otp-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.otp-box {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.otp-box:focus {
  border-color: #ff512f;
  box-shadow: 0 0 8px rgba(255,81,47,0.5);
  transform: scale(1.1);
  outline: none;
}

/* Buttons */
button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-top: 10px;
}

button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #c52222;
  transition: color 0.3s;
}

.close:hover {
  color: #931e06;
}

/* Validation messages */
.validation-message {
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  display: none;
  animation: fadeIn 0.8s ease-in-out;
}

.validation-success {
  background: linear-gradient(135deg, #00c853, #64dd17);
  color: #fff;
}

.validation-error {
  background: linear-gradient(135deg, #d50000, #ff1744);
  color: #fff;
}

/* Sidebar navigation links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.nav-link i {
  font-size: 18px;
}

.nav-link:hover {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
}

.nav-link.active {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  border-radius: 6px;
}
/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 10px 15px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: -250px;
  width: 250px; height: 100%;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1000;
}
.sidebar.active { left: 0; }

.sidebar ul { list-style: none; padding: 0; margin: 60px 0 0 0; }
.sidebar ul li { border-bottom: 1px solid rgba(255,255,255,0.2); }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 12px; color: #fff; text-decoration: none; transition: background 0.3s; }
.nav-link:hover { background: rgba(255,255,255,0.2); }
.nav-link.active { background: rgba(0,0,0,0.3); border-radius: 6px; }

/* Dashboard grid */
.main-content { margin-left: 260px; padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.card {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card i { font-size: 28px; margin-bottom: 10px; }
.card:hover { transform: translateY(-8px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* Responsive */
@media (max-width: 768px) {
  .main-content { margin-left: 0; }
  .sidebar { left: -250px; }
  .menu-toggle { display: block; }
}