* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  height: 100%;
  background-color: #f4f7fa;
}

.dashboard {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 220px;
  background-color: #1e1e2f;
  color: #fff;
  padding: 20px;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 70px;
}

.logo {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: bold;
  color: #00c7a0;
  transition: 0.3s;
}

.logo.hide {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 20px 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.link-text.hide {
  display: none;
}

.sidebar a:hover {
  color: #00c7a0;
  transform: translateX(5px);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  background-color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topbar button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.topbar .user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #333;
}

.content {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 18px;
}
.user {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: bold;
  color: #333;
}

.user .profile-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #00c7a0;
}


.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.dashboard-table th, .dashboard-table td {
  padding: 16px;
  text-align: left;
}

.dashboard-table thead {
  background-color: #00c7a0;
  color: white;
}

.dashboard-table tbody tr {
  background-color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.dashboard-table tbody tr:hover {
  background-color: #f0f9ff;
}
.dashboard-table-container {
  max-height: auto-fit;
  /* Set a fixed height */
  overflow-y: auto;  /* Enable vertical scroll */
  border: 1px solid #ddd;  /* Optional: for better visibility of the container */
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.dashboard-table th, .dashboard-table td {
  padding: 16px;
  text-align: left;
}

.dashboard-table thead {
  background-color: #00c7a0;
  color: white;
}

.dashboard-table tbody tr {
  background-color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.dashboard-table tbody tr:hover {
  background-color: #f0f9ff;
}
