body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f9;
  color: #333;
}

.header {
  background: linear-gradient(120deg, #2980b9, #8e44ad);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header .logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

.header .nav {
  display: flex;
  gap: 1rem;
}

.header .nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.header .nav-link:hover {
  color: #ffdd57;
}

.main-content {
  padding: 2rem;
}

.survey-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
}

.survey-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.survey-form .form-group {
  margin-bottom: 1rem;
}

.survey-form label {
  display: block;
  margin-bottom: 0.5rem;
}

.survey-form input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.survey-form .btn-submit {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.survey-form .btn-submit:hover {
  background: #0056b3;
}

.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

body.login-body {
  background: linear-gradient(120deg, #2980b9, #8e44ad);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-icon {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.login-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}

.login-card .form-group {
  margin-bottom: 1rem;
  text-align: left;
  margin-right: 1.5rem;
}

.login-card label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.login-card .btn-submit {
  width: 100%;
  padding: 1rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.login-card .btn-submit:hover {
  background: #0056b3;
}

.modal-dialog {
  max-width: 500px;
}

.modal-content {
  border-radius: 10px;
}

.modal-header {
  background: linear-gradient(120deg, #2980b9, #8e44ad);
  color: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.modal-header .btn-close {
  color: white;
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* Update table responsive styles */
.table-responsive {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

#doctorsTable {
  margin-bottom: 0;
  width: 100%;
}

/* Ensure minimum column widths */
#doctorsTable th,
#doctorsTable td {
  min-width: 100px; /* Base minimum width */
  padding: 0.75rem;
  white-space: nowrap;
}

/* Specific column widths */
#doctorsTable th:first-child,
#doctorsTable td:first-child {
  min-width: 50px; /* No. column */
}

#doctorsTable th:nth-child(2),
#doctorsTable td:nth-child(2) {
  min-width: 100px; /* ID column */
}

#doctorsTable th:last-child,
#doctorsTable td:last-child {
  min-width: 150px; /* Actions column */
}

/* Ensure buttons stay in one line */
.btn-group {
  display: inline-flex;
  flex-wrap: nowrap;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin: 0 2px;
}

.actions-column {
  white-space: nowrap;
  width: 100px;
}

/* Report Table Styles */
#reportsTable {
  width: 100% !important;
  margin-bottom: 1rem;
}

#reportsTable th,
#reportsTable td {
  vertical-align: middle;
  padding: 0.75rem;
}

#reportsTable thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.dataTables_wrapper .dt-buttons {
  margin-bottom: 1rem;
}

.dt-button {
  background-color: #007bff !important;
  color: white !important;
  border: none !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.25rem !important;
  margin-right: 0.25rem !important;
}

.dt-button:hover {
  background-color: #0056b3 !important;
}

/* Add these styles */
.btn-link {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  color: #0056b3;
  text-decoration: none;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.btn-primary {
  background: linear-gradient(120deg, #2980b9, #8e44ad);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(120deg, #2472a4, #763a93);
}

.btn-group {
  white-space: nowrap;
  display: flex;
}

.btn-group .btn {
  padding: 0.25rem 0.5rem;
  margin: 0;
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Ensure table cell doesn't wrap */
#doctorsTable td {
  white-space: nowrap;
}

/* Add horizontal scroll for table if needed */
#doctorsTable {
  width: 100%;
  overflow-x: auto;
}

/* Report Table Responsive Styles */
.table-responsive {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

#reportsTable {
  margin-bottom: 0;
  width: 100%;
}

#reportsTable th,
#reportsTable td {
  min-width: 100px;
  padding: 0.75rem;
  white-space: normal;
  word-break: break-word;
}

/* Set specific column widths */
#reportsTable th:first-child,
#reportsTable td:first-child {
  min-width: 50px; /* No column */
}

#reportsTable th:nth-child(2),
#reportsTable td:nth-child(2) {
  min-width: 150px; /* Doctor Name */
}

#reportsTable th:nth-child(3),
#reportsTable td:nth-child(3) {
  min-width: 150px; /* Hospital */
}

#reportsTable th:last-child,
#reportsTable td:last-child {
  min-width: 100px; /* Date column */
  white-space: nowrap;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 10px;
  }
  
  .nav {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    margin: 2px 0;
    text-align: center;
  }
}