/* General Styles */
.grievance-card {
  cursor: pointer;
  transition: box-shadow 0.2s;
  margin-bottom: 15px;
}
.grievance-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.status-new {
  background: #ffebee;
  color: #c62828;
}
.status-assigned {
  background: #fff3e0;
  color: #ef6c00;
}
.status-in-progress {
  background: #e3f2fd;
  color: #1976d2;
}
.status-pending-information {
  background: #f3e5f5;
  color: #7b1fa2;
}
.status-resolved {
  background: #e8f5e8;
  color: #2e7d32;
}
.status-re-opened {
  background: #ffebee;
  color: #c62828;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.priority-low {
  background: #e8f5e8;
  color: #2e7d32;
}
.priority-medium {
  background: #fff3e0;
  color: #ef6c00;
}
.priority-high {
  background: #ffebee;
  color: #c62828;
}
.priority-critical {
  background: #fce4ec;
  color: #c2185b;
  font-weight: bold;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: none;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
}
.modal-large {
  max-width: 800px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: black;
}
.hidden {
  display: none !important;
}
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
}
.page-content {
  display: none;
}
.page-content.active {
  display: block;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  text-align: center;
  padding: 20px;
}
.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.search-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.grievance-meta {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.detail-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.detail-item {
  margin-bottom: 10px;
}
.detail-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.875rem;
}
.assignment-section {
  border: 2px solid #007bff;
  border-radius: 5px;
  padding: 15px;
  background: #e7f3ff;
  margin-bottom: 15px;
}
.status-update-section {
  border: 2px solid #28a745;
  border-radius: 5px;
  padding: 15px;
  background: #e8f5e8;
  margin-bottom: 15px;
}
.comment-section {
  margin-top: 20px;
}
.comments-list {
  margin-top: 15px;
}
.comment-card {
  background: white;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #dee2e6;
  margin-bottom: 10px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comment-author {
  font-weight: 500;
  color: #007bff;
}
.comment-time {
  color: #6c757d;
  font-size: 0.875rem;
}
.empty-state {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}


