/* Layout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  height: 100vh;
  background-color: #f4f6f8;
  color: #333;
}

.sidebar {
  width: 260px;
  background-color: #2c3e50;
  color: white;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.nav-item {
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-item:hover {
  background-color: #34495e;
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

/* Dashboard Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

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

.card p {
  font-size: 14px;
  margin: 4px 0;
  color: #555;
}

.link {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}

.link:hover {
  text-decoration: underline;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #3498db;
  color: white;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-button {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close-button:hover {
  color: black;
}

/* Buttons */
button {
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Popup styles */
.popup-container {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  display: flex;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.action-buttons {
  margin-top: 20px;
  text-align: right;
}

.delete-btn, .cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

.delete-btn {
  background-color: #e74c3c;
}

.cancel-btn {
  background-color: #95a5a6;
  margin-left: 10px;
}

/* Table row highlight */
.highlight-row {
  background-color: #f1c40f;
}

/* Highlight text */
.highlight {
  font-weight: bold;
  color: #c0392b;
}

/* Progress bar styles */
.progress-bar-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 4px;
}

.progress-bar {
  height: 24px; /* Increased height */
  line-height: 24px; /* Center text vertically */
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
  transition: width 0.3s ease-in-out;
}
