/* Add these styles to your existing CSS */

/* Table styling */
.table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #495057;
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
}

/* Student name column */
.student-name {
  min-width: 200px;
}

/* Empty state styling */
.empty-state, .error-state {
  padding: 3rem 1rem;
}

.empty-state i, .error-state i {
  opacity: 0.5;
}

/* Pagination styling */
.pagination {
  margin-bottom: 0;
}

.page-link {
  border: none;
  color: #495057;
  padding: 0.5rem 0.75rem;
  margin: 0 2px;
  border-radius: 4px;
  transition: all 0.2s;
}

.page-link:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

.page-link.active {
  background-color: #0d6efd;
  color: white;
}

.page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Badge styling */
.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

/* Form styling */
.form-control, .form-select {
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Search button */
#searchBtn {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

#searchBtn:hover {
  background: linear-gradient(135deg, #0b5ed7, #0a58ca);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Export buttons */
#exportPrintButtons button {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.375rem 1rem;
  transition: all 0.2s;
}

#exportPrintButtons button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Toast container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

/* Card styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
}

/* Page info styling */
#pageInfo {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #0d6efd;
}

/* Loading spinner */
#tableSpinner {
  display: none;
  text-align: center;
  padding: 2rem;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Section title */
.section-title1 {
  color: #2c3e50;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #0d6efd;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-responsive {
    border: none;
  }
  
  .table thead {
    display: none;
  }
  
  .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
  }
  
  .table tbody td {
    display: block;
    text-align: right;
    padding: 0.5rem;
    border: none;
    position: relative;
  }
  
  .table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: #495057;
  }
  
  /* Add data-label attributes via JavaScript or CSS */
  .table tbody td:nth-child(1)::before { content: "Sl.No"; }
  .table tbody td:nth-child(2)::before { content: "Name"; }
  .table tbody td:nth-child(3)::before { content: "Date of Birth"; }
  .table tbody td:nth-child(4)::before { content: "Gender"; }
  .table tbody td:nth-child(5)::before { content: "Phone Number"; }
  .table tbody td:nth-child(6)::before { content: "Course"; }
}