 /* ====================== TABLE ====================== */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.patient-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  min-width: 900px; /* Prevents table from becoming too cramped */
}

.patient-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.patient-table th {
  background: #f8f9fa;
  color: #333;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}

.patient-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* Row hover effect */
.patient-table tr:hover {
  background-color: #f9fbfc;
}

/* ====================== TRIAGE BUTTON ====================== */
.triage-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.triage-btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.triage-btn:active {
  transform: translateY(0);
}


/* ====================== MODAL ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Modal Box - Centered perfectly */
.modal-content {
  background: #fff;
  padding: 24px 28px;
  width: 90%;
  max-width: 820px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  
  /* Perfect centering */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  animation: modalPop 0.3s ease forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Close Button */
.close {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 28px;
  font-weight: 300;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #333;
}
/* ====================== TRIAGE FORM ====================== */
.triage-form {
  font-size: 14px;
}

.triage-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.triage-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.triage-group label {
  font-weight: 500;
  color: #444;
  font-size: 13px;
}

.triage-group input,
.triage-group select,
.triage-group textarea {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13.5px;
  transition: all 0.2s ease;
  background: #fafafa;
}

.triage-group input:focus,
.triage-group select:focus,
.triage-group textarea:focus {
  outline: none;
  border-color: #4CAF50;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.triage-group.full {
  grid-column: 1 / -1;
}

.triage-group textarea {
  min-height: 80px;
  resize: vertical;
}

/* Form Button */
.triage-form button {
  margin-top: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(76, 175, 80, 0.25);
}

.triage-form button:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
}

.triage-form button:active {
  transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
    padding: 20px;
    width: 95%;
  }
  
  .patient-table {
    font-size: 13px;
  }
  
  .triage-section {
    grid-template-columns: 1fr;
  }
}