body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f7fa;
  margin: 0;
  padding: 0;
}

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

.sidebar {
  width: 180px;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.logo img {
  width: 80%;
  margin: 20px 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin: 15px 0;
}

.menu a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.menu a i {
  margin-right: 10px;
}

.menu a.active, .menu a:hover {
  background-color: #2980b9;
}

.main-content {
  flex-grow: 1; 
  padding: 30px;
  background-color: #f4f7fa;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.welcome-section h2 {
  color: #34495e;
}

.welcome-section p {
  color: #7f8c8d;
}

.date-time p {
  margin: 0;
}

.exam-module {
  margin-top: 20px;
}

.exam-statistics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.exam-card {
  background-color: #3498db;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.exam-card:hover {
  transform: scale(1.05);
}

.exam-card h3 {
  margin: 0;
  font-size: 36px;
}

.upcoming-exam-list {
  margin-top: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.upcoming-exam-list h4 {
  color: #2980b9;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 10px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between; 
  align-items: center; 
}

li div {
  display: flex;
  align-items: center; 
  gap: 10px; 
}

.timer {
  font-weight: bold;
  color: #e74c3c;
  font-size: 14px;
  background-color: #f4f4f4;
  padding: 5px 10px;
  border-radius: 5px;
}

.timer.exam-over {
  color: #27ae60;
  background-color: #ecf0f1;
}

@media (max-width: 768px) {
  .sidebar {
      width: 100px;
  }
  .menu a {
      font-size: 12px;
  }
  .search-bar input {
      width: 150px;
  }
}
