/* ===== Original NIA Report System Styles ===== */
body {
  padding-top: 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e293b;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.card-body h2 {
  font-size: 2.5rem;
  margin: 10px 0;
}

.table-responsive {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.badge {
  font-size: 0.9rem;
  padding: 5px 10px;
  font-weight: 500;
  border-radius: 6px;
}

.alert {
  margin-top: 20px;
  border-radius: 8px;
  padding: 12px 15px;
}

.form-label {
  font-weight: 500;
}

.btn {
  margin-right: 5px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.6rem 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.navbar {
  background-color: #2c3e50 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  color: white !important;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  font-size: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
  margin-right: 0.35rem;
  font-size: 1.1rem;
}

.nav-link.active,
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  transform: translateY(-1px);
}

.nav-link.active {
  position: relative;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}

footer {
  background-color: #2c3e50 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}

footer p {
  opacity: 0.9;
  margin-bottom: 0;
}

footer i {
  margin-right: 5px;
}

/* ===== Hero Section (Original) ===== */
.hero-section {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 5rem 0;
  margin-bottom: 3rem;
}

.hero-title {
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Features Section (Original) ===== */
.features-section {
  background-color: #fff;
}

.section-title {
  font-weight: 600;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #3498db;
}

.feature-card {
  transition: all 0.3s ease;
  border-radius: 12px !important;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
  color: #3498db;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* ===== Button Styles ===== */
.btn-lg {
  padding: 0.75rem 1.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 50px !important;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #2980b9, #2573a7);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success {
  background: linear-gradient(45deg, #198754, #157347);
  border: none;
  color: white;
}

.btn-danger {
  background: linear-gradient(45deg, #dc3545, #c82333);
  border: none;
  color: white;
}

.btn-warning {
  background: linear-gradient(45deg, #ffc107, #ffb300);
  border: none;
  color: #212529;
}

.btn-outline-primary {
  border: 1px solid #3498db;
  color: #3498db;
}

.btn-outline-primary:hover {
  background: #3498db;
  color: white;
}

.btn-outline-success {
  border: 1px solid #198754;
  color: #198754;
}

.btn-outline-success:hover {
  background: #198754;
  color: white;
}

.btn-outline-danger {
  border: 1px solid #dc3545;
  color: #dc3545;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: white;
}

.btn-outline-warning {
  border: 1px solid #ffc107;
  color: #ffc107;
}

.btn-outline-warning:hover {
  background: #ffc107;
  color: #212529;
}

.btn-outline-info {
  border: 1px solid #0dcaf0;
  color: #0dcaf0;
}

.btn-outline-info:hover {
  background: #0dcaf0;
  color: white;
}

.btn-outline-secondary {
  border: 1px solid #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== Gradient Buttons for Existing Classes ===== */

/* Primary Button - Already using btn-primary */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3) !important;
}

/* Success Button - Already using btn-success */
.btn-success {
  background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.btn-success:hover {
  background: linear-gradient(135deg, #38a169 0%, #276749 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3) !important;
}

/* Danger Button - Already using btn-danger */
.btn-danger {
  background: linear-gradient(135deg, #f56565 0%, #c53030 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e53e3e 0%, #9b2c2c 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3) !important;
}

/* Warning Button - Already using btn-warning */
.btn-warning {
  background: linear-gradient(135deg, #f6ad55 0%, #dd6b20 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #ed8936 0%, #c05621 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(246, 173, 85, 0.3) !important;
}

/* Info Button - Already using btn-info */
.btn-info {
  background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.btn-info:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3) !important;
}

/* Secondary Button - Already using btn-secondary */
.btn-secondary {
  background: linear-gradient(135deg, #a0aec0 0%, #4a5568 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #718096 0%, #2d3748 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(160, 174, 192, 0.3) !important;
}

/* Light Button - Already using btn-light */
.btn-light {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
  border: none !important;
  color: #2d3748 !important;
  transition: all 0.3s ease !important;
}

.btn-light:hover {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(237, 242, 247, 0.3) !important;
}

/* Dark Button - Already using btn-dark */
.btn-dark {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 32, 44, 0.3) !important;
}

/* ===== Outline Buttons ===== */
.btn-outline-primary {
  background: transparent !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-image-slice: 1 !important;
  color: #667eea !important;
  transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-image: none !important;
  border: 2px solid transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3) !important;
}

.btn-outline-success {
  background: transparent !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #48bb78, #2f855a) !important;
  border-image-slice: 1 !important;
  color: #48bb78 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%) !important;
  color: white !important;
  border-image: none !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3) !important;
}

.btn-outline-danger {
  background: transparent !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #f56565, #c53030) !important;
  border-image-slice: 1 !important;
  color: #f56565 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, #f56565 0%, #c53030 100%) !important;
  color: white !important;
  border-image: none !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3) !important;
}

.btn-outline-warning {
  background: transparent !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #f6ad55, #dd6b20) !important;
  border-image-slice: 1 !important;
  color: #f6ad55 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-warning:hover {
  background: linear-gradient(135deg, #f6ad55 0%, #dd6b20 100%) !important;
  color: white !important;
  border-image: none !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(246, 173, 85, 0.3) !important;
}

.btn-outline-info {
  background: transparent !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #4299e1, #2b6cb0) !important;
  border-image-slice: 1 !important;
  color: #4299e1 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-info:hover {
  background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%) !important;
  color: white !important;
  border-image: none !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3) !important;
}

.btn-outline-secondary {
  background: transparent !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #a0aec0, #4a5568) !important;
  border-image-slice: 1 !important;
  color: #4a5568 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-secondary:hover {
  background: linear-gradient(135deg, #a0aec0 0%, #4a5568 100%) !important;
  color: white !important;
  border-image: none !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(160, 174, 192, 0.3) !important;
}

/* ===== Shiny Animation for All Buttons ===== */
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-secondary,
.btn-light,
.btn-dark {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-success::after,
.btn-danger::after,
.btn-warning::after,
.btn-info::after,
.btn-secondary::after,
.btn-light::after,
.btn-dark::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(30deg);
  animation: shiny 4s infinite;
  pointer-events: none;
}

@keyframes shiny {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  20% {
    transform: translateX(100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* ===== Button Sizes (keeping your existing classes) ===== */
.btn-lg {
  padding: 0.75rem 1.75rem !important;
  font-size: 1.1rem !important;
}

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn-xs {
  padding: 0.2rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* ===== Login Section (Original) ===== */
.login-section {
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-card {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.login-header {
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  border-bottom: none;
}

/* ===== Form Elements ===== */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0.6rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control.is-valid {
  border-color: #198754;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control-lg {
  padding: 12px 15px;
  border-radius: 8px !important;
}

.input-group-text {
  border-radius: 8px 0 0 8px !important;
  border-right: none;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
}

.input-group .form-control {
  border-left: none;
  padding-left: 10px;
}

.input-group .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

.input-group:focus-within .input-group-text {
  border-color: #667eea;
  color: #667eea;
}

/* ===== Dashboard Styles ===== */
.dashboard-container,
.admin-dashboard-container {
  background-color: #f8fafc;
  min-height: calc(100vh - 70px);
}

.dashboard-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1.5rem;
}

.dashboard-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: white;
  border: none !important;
  position: relative;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-card .icon-circle {
  transition: all 0.3s ease;
}

.dashboard-card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-primary-light {
  background-color: rgba(52, 152, 219, 0.1);
}

.bg-warning-light {
  background-color: rgba(241, 196, 15, 0.1);
}

.bg-success-light {
  background-color: rgba(46, 204, 113, 0.1);
}

.bg-info-light {
  background-color: rgba(52, 152, 219, 0.1);
}

.bg-danger-light {
  background-color: rgba(220, 53, 69, 0.1);
}

.bg-secondary-light {
  background-color: rgba(108, 117, 125, 0.1);
}

.hover-lift {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Dashboard Stats ===== */
.dashboard-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-actions {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-actions {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== Avatar Styles ===== */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.avatar-circle-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* ===== Table Styles with Borders ===== */
.table {
  margin-bottom: 0;
}

.table thead th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

.table thead th:last-child {
  border-right: none;
}

.table tbody td {
  vertical-align: middle;
  color: #212529;
  padding: 1rem;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.table tbody td:last-child {
  border-right: none;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-hover tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.02);
}

.table tbody tr:hover td {
  background-color: rgba(52, 152, 219, 0.02);
}

/* ===== Badge Styles ===== */
.badge {
  font-weight: 500;
  padding: 0.5em 1em;
  border-radius: 6px;
}

.badge.bg-primary.bg-opacity-10 {
  background-color: rgba(52, 152, 219, 0.1) !important;
  color: #2980b9 !important;
}

.badge.bg-success.bg-opacity-10 {
  background-color: rgba(46, 204, 113, 0.1) !important;
  color: #27ae60 !important;
}

.badge.bg-info.bg-opacity-10 {
  background-color: rgba(52, 152, 219, 0.1) !important;
  color: #2980b9 !important;
}

.badge.bg-warning.bg-opacity-10 {
  background-color: rgba(241, 196, 15, 0.1) !important;
  color: #f39c12 !important;
}

.badge.bg-danger.bg-opacity-10 {
  background-color: rgba(220, 53, 69, 0.1) !important;
  color: #c82333 !important;
}

.badge.bg-secondary.bg-opacity-10 {
  background-color: rgba(108, 117, 125, 0.1) !important;
  color: #5a6268 !important;
}

/* Status badge colors */
.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.badge.bg-primary {
  background-color: #007bff !important;
  color: white !important;
}

.badge.bg-success {
  background-color: #28a745 !important;
  color: white !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
  color: white !important;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: white !important;
}

/* ===== Pagination Styles ===== */
.pagination {
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.pagination .page-item {
  margin-bottom: 5px;
}

.page-link {
  border: none;
  color: #3498db;
  border-radius: 8px;
  margin: 0 2px;
  padding: 0.5rem 1rem;
}

.page-item.active .page-link {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border: none;
  color: white;
}

.page-item.disabled .page-link {
  color: #6c757d;
}

.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.pagination-info {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

/* ===== Breadcrumb Styles ===== */
.breadcrumb {
  background: transparent;
  padding: 0.5rem 0;
  margin: 0;
}

.breadcrumb-item a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ===== Page Header Styles ===== */
.page-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== Gradient Text ===== */
.gradient-text-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
}

.text-primary-gradient {
  background: linear-gradient(45deg, #3498db, #2980b9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Action Button Smaller ===== */
.action-btn-sm {
  padding: 0.2rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* ===== Filter Section ===== */
.filter-section .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* ===== Requirement Item Styles ===== */
.requirement-item {
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.requirement-item i {
  width: 20px;
  text-align: center;
}

/* ===== Progress Bar Styles ===== */
.progress {
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

/* ===== Tooltip Styles ===== */
.tooltip-inner {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== SweetAlert2 Custom Styling ===== */
.swal2-popup {
  border-radius: 12px !important;
  padding: 2rem !important;
}

.swal2-title {
  font-weight: 600 !important;
}

.swal2-html-container {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #495057 !important;
}

/* ===== Text Colors ===== */
.text-primary {
  color: #3498db !important;
}

.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.text-secondary {
  color: #6c757d !important;
}

.text-purple {
  color: #6f42c1 !important;
}

.text-pink {
  color: #e83e8c !important;
}

/* ===== Background Opacity Utilities ===== */
.bg-primary.bg-opacity-10 {
  background-color: rgba(52, 152, 219, 0.1) !important;
}

.bg-success.bg-opacity-10 {
  background-color: rgba(40, 167, 69, 0.1) !important;
}

.bg-info.bg-opacity-10 {
  background-color: rgba(23, 162, 184, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
  background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger.bg-opacity-10 {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-secondary.bg-opacity-10 {
  background-color: rgba(108, 117, 125, 0.1) !important;
}

/* ===== MODERN STYLES FOR INDEX & LOGIN PAGES ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --dark-bg: #0f172a;
  --darker-bg: #0a0f1a;
  --card-bg: rgba(30, 41, 59, 0.5);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Modern Hero Section */
.modern-hero {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0;
  color: white;
}

.modern-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(102,126,234,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.modern-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a5b4fc;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease;
}

.modern-hero .hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.modern-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease 0.6s both;
  cursor: pointer;
  z-index: 10;
}

.btn-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-hero:hover::before {
  left: 100%;
}

/* Modern Features Section */
.modern-features {
  padding: 100px 0;
  background: #0f172a;
  position: relative;
}

.modern-features .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.modern-features .section-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
}

.modern-features .feature-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-features .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.modern-features .feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modern-features .feature-card:hover::before {
  transform: translateX(0);
}

.modern-features .feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.modern-features .feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.modern-features .feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.modern-features .feature-text {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Modern System Overview Section */
.modern-system {
  background: linear-gradient(135deg, #0f172a 0%, #1a1f2e 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.modern-system::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.02)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.system-feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.system-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.3);
}

.system-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.system-feature-card:hover .system-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.system-overview-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
}

.system-overview-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.system-overview-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

.system-overview-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.system-overview-item:hover .system-overview-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Modern Login Section */
.modern-login-section {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.modern-login-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(102,126,234,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.modern-login-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/></svg>');
  background-size: 60px 60px;
  animation: moveBackground 20s linear infinite;
  pointer-events: none;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

.modern-login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2.5rem;
  position: relative;
  text-align: center;
}

.modern-login-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

.modern-logo-circle {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.5rem;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.modern-login-header h2 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.modern-login-header p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.modern-login-body {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
}

.modern-login-body .form-label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.modern-login-body .input-group {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.modern-login-body .input-group:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-login-body .input-group-text {
  background: white;
  border: none;
  color: #667eea;
  padding: 0.75rem 1rem;
}

.modern-login-body .form-control {
  border: none;
  padding: 0.75rem 1rem 0.75rem 0;
  font-size: 1rem;
}

.modern-login-body .form-control:focus {
  box-shadow: none;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.back-home {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
  display: inline-block;
  cursor: pointer;
}

.back-home:hover {
  opacity: 1;
  transform: translateX(-5px);
  color: white;
}

/* Gradient Backgrounds */
.bg-gradient-blue {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
  box-shadow: 0 10px 20px rgba(159, 122, 234, 0.3);
}

.bg-gradient-green {
  background: linear-gradient(135deg, #48bb78, #38a169);
  box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3);
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  box-shadow: 0 10px 20px rgba(237, 137, 54, 0.3);
}

.bg-gradient-red {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
}

.bg-gradient-teal {
  background: linear-gradient(135deg, #4fd1c5, #38b2ac);
  box-shadow: 0 10px 20px rgba(79, 209, 197, 0.3);
}

.bg-gradient-pink {
  background: linear-gradient(135deg, #ed64a6, #d53f8c);
  box-shadow: 0 10px 20px rgba(237, 100, 166, 0.3);
}

.bg-gradient-indigo {
  background: linear-gradient(135deg, #667eea, #5a67d8);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.bg-gradient-cyan {
  background: linear-gradient(135deg, #0bc5ea, #00b5d0);
  box-shadow: 0 10px 20px rgba(11, 197, 234, 0.3);
}

/* Utility Classes */
.text-white-80 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white-50 {
  background: rgba(255, 255, 255, 0.05);
}

.hover-text-white:hover {
  color: white !important;
}

/* Modern Alert Styles */
.modern-alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.modern-alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #fbbf24;
  border-left: 4px solid #f59e0b;
}

.modern-alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-left: 4px solid #3b82f6;
}

.modern-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-left: 4px solid #ef4444;
}

.modern-alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-left: 4px solid #10b981;
}

/* Container Fixes */
.container {
  position: relative;
  z-index: 5;
}

.container * {
  position: relative;
  z-index: 10;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .container-fluid {
    max-width: 1600px;
  }
}

@media (max-width: 992px) {
  .table thead th {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .table tbody td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .modern-hero .hero-title {
    font-size: 2.5rem;
  }

  .modern-hero .hero-subtitle {
    font-size: 1rem;
  }

  .modern-features .section-title {
    font-size: 2rem;
  }

  .modern-features .feature-card {
    margin-bottom: 1rem;
  }

  .modern-login-card {
    margin: 1rem;
  }

  .system-overview-card {
    margin-top: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem !important;
  }

  .btn-lg {
    width: 100%;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }

  .dashboard-card {
    margin-bottom: 1.5rem;
  }

  .quick-actions .btn,
  .admin-actions .btn {
    width: 100%;
  }

  .dashboard-stats-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link.active::after {
    bottom: -3px;
    width: 80%;
  }

  footer .row {
    flex-direction: column;
    text-align: center !important;
  }

  footer .col-md-6 {
    margin-bottom: 10px;
  }

  .table td,
  .table th {
    white-space: nowrap;
    padding: 0.5rem;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .avatar-circle {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
  }
}

@media (max-width: 576px) {
  .modern-hero .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .modern-login-header {
    padding: 1.5rem;
  }

  .modern-login-body {
    padding: 1.5rem;
  }

  .modern-logo-circle {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .login-card {
    border-radius: 0;
    box-shadow: none;
  }

  .login-section {
    background-color: white;
  }

  .card-body {
    padding: 2rem !important;
  }
}

/* Mobile menu fix */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #2c3e50;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-item {
    margin-bottom: 0.5rem;
  }

  .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
  }

  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
}

/* ===== Clickability Fixes ===== */
.modern-hero::before,
.modern-hero::after,
.modern-system::before,
.modern-login-section::before,
.modern-login-section::after,
.modern-login-header::before,
.modern-features .feature-card::before,
.btn-hero::before,
.btn-login::before,
.section-title::after,
.nav-link.active::after {
  pointer-events: none !important;
}

a,
button,
.btn-hero,
.btn-login,
.back-home,
input,
select,
textarea,
label,
.nav-link,
.dropdown-item,
.btn,
.btn-primary,
.btn-outline-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.page-link {
  cursor: pointer;
  position: relative;
  z-index: 100;
}

.modern-hero,
.modern-features,
.modern-system,
.modern-login-section,
.hero-section,
.features-section,
.login-section {
  pointer-events: none;
}

.modern-hero *,
.modern-features *,
.modern-system *,
.modern-login-section *,
.hero-section *,
.features-section *,
.login-section *,
.container * {
  pointer-events: auto;
}

.btn-hero,
.btn-login,
.back-home,
input,
button,
a,
.input-group,
.input-group *,
.form-control,
.modern-login-card,
.modern-login-card *,
.login-card,
.login-card *,
.card,
.card *,
.table,
.table *,
.pagination,
.pagination *,
.navbar,
.navbar *,
footer,
footer * {
  pointer-events: auto !important;
}

button:disabled,
.btn-login:disabled,
.btn-hero:disabled,
.btn-primary:disabled,
.btn:disabled {
  pointer-events: none !important;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Dashboard Header Icon Fix ===== */
.dashboard-header h1 i {
  font-size: 2.5rem !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.75rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-header h1 .gradient-text-primary {
  display: flex;
  align-items: center;
  font-size: 2.2rem;
  line-height: 1.2;
}

.dashboard-header .lead {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* Make sure Font Awesome icons are visible */
.fas,
.far,
.fab {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Ensure gradient text works with icons */
.gradient-text-primary i {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: inherit;
}

/* ===== Fix for In Progress Icon Animation ===== */
.fa-pulse {
  animation: fa-spin 2s infinite linear !important;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

/* Make sure the spinner icon is visible */
.fa-spinner {
  display: inline-block;
}

/* Alternative slower animation if you want a more subtle effect */
.fa-spinner.fa-pulse {
  animation: fa-spin 1.5s infinite linear !important;
}

/* If you want a different animation (bounce instead of spin) */
.fa-spinner.fa-bounce {
  animation: fa-bounce 2s infinite !important;
}

@keyframes fa-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
/* ===== Table Action Buttons Fix - Side by Side & Square ===== */

/* Action button container - FIXED to be side by side */
.table td .d-flex.gap-2.justify-content-center {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.4rem !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Base action button styling - SQUARE shape */
.table td .btn-sm.action-btn-sm,
.table td .btn-sm,
.table td .btn {
  padding: 0.4rem 0.6rem !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  border-radius: 6px !important; /* Slightly rounded corners for square look */
  margin: 0 !important;
  min-width: 65px;
  height: 32px !important; /* Fixed height for consistency */
  text-align: center;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  transition: all 0.2s ease !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  white-space: nowrap !important;
}

/* Even more square option - minimal rounding */
.table td .btn-square {
  border-radius: 4px !important;
}

/* View button - Primary gradient */
.table td .btn-primary,
.table td a[href*="view"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
}

.table td .btn-primary:hover,
.table td a[href*="view"]:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.25) !important;
}

/* Edit button - Info gradient */
.table td .btn-info,
.table td a[href*="edit"] {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
  color: white !important;
}

.table td .btn-info:hover,
.table td a[href*="edit"]:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(66, 153, 225, 0.25) !important;
}

/* Delete button - Danger gradient */
.table td .btn-danger,
.table td button[onclick*="Delete"],
.table td a[href*="delete"] {
  background: linear-gradient(135deg, #f56565 0%, #c53030 100%) !important;
  color: white !important;
}

.table td .btn-danger:hover,
.table td button[onclick*="Delete"]:hover,
.table td a[href*="delete"]:hover {
  background: linear-gradient(135deg, #e53e3e 0%, #9b2c2c 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(245, 101, 101, 0.25) !important;
}

/* Success button - Green gradient */
.table td .btn-success {
  background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%) !important;
  color: white !important;
}

.table td .btn-success:hover {
  background: linear-gradient(135deg, #38a169 0%, #276749 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.25) !important;
}

/* Warning button - Orange gradient */
.table td .btn-warning {
  background: linear-gradient(135deg, #f6ad55 0%, #dd6b20 100%) !important;
  color: white !important;
}

.table td .btn-warning:hover {
  background: linear-gradient(135deg, #ed8936 0%, #c05621 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(246, 173, 85, 0.25) !important;
}

/* Secondary button - Gray gradient */
.table td .btn-secondary {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%) !important;
  color: white !important;
}

.table td .btn-secondary:hover {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(113, 128, 150, 0.25) !important;
}

/* Icon styling inside buttons */
.table td .btn i,
.table td .btn-sm i {
  font-size: 0.8rem !important;
  margin-right: 0.25rem !important;
}

/* Icon-only buttons (optional) */
.table td .btn-icon-only {
  min-width: 32px !important;
  padding: 0.4rem !important;
}

.table td .btn-icon-only i {
  margin-right: 0 !important;
}

/* Make sure table cells don't wrap */
.table td:last-child {
  white-space: nowrap !important;
  text-align: center !important;
}

/* Fix for action buttons column width */
.table th:last-child {
  text-align: center !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table td .btn-sm.action-btn-sm,
  .table td .btn-sm {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.7rem !important;
    min-width: 55px;
    height: 30px !important;
  }

  .table td .btn i,
  .table td .btn-sm i {
    font-size: 0.7rem !important;
    margin-right: 0.2rem !important;
  }

  .table td .d-flex.gap-2.justify-content-center {
    gap: 0.3rem !important;
  }
}

@media (max-width: 480px) {
  .table td .btn-sm.action-btn-sm,
  .table td .btn-sm {
    padding: 0.25rem 0.3rem !important;
    font-size: 0.65rem !important;
    min-width: 48px;
    height: 28px !important;
  }

  .table td .btn i,
  .table td .btn-sm i {
    font-size: 0.6rem !important;
    margin-right: 0.15rem !important;
  }

  .table td .d-flex.gap-2.justify-content-center {
    gap: 0.2rem !important;
  }
}

/* Optional: Add a subtle shine animation on hover */
.table td .btn-primary::after,
.table td .btn-info::after,
.table td .btn-danger::after,
.table td .btn-success::after,
.table td .btn-warning::after,
.table td .btn-secondary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(30deg);
  animation: shiny 3s infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.table td .btn-primary:hover::after,
.table td .btn-info:hover::after,
.table td .btn-danger:hover::after,
.table td .btn-success:hover::after,
.table td .btn-warning:hover::after,
.table td .btn-secondary:hover::after {
  opacity: 1;
}

@keyframes shiny {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  20% {
    transform: translateX(100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES - BUTTONS ORIGINAL SIZE
   ============================================ */

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Attachment Panel Responsive */
    .attachment-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .attachment-info {
        width: 100% !important;
    }
    
    .attachment-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
    }
    
    /* Keep buttons original size */
    .attachment-actions .btn {
        width: auto !important;
        min-width: 120px;
    }
    
    /* Header badges */
    .status-badge {
        margin-top: 15px !important;
        align-self: flex-start !important;
    }
    
    /* Form inputs */
    .input-group {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .input-group select {
        width: 100% !important;
        margin-bottom: 5px;
    }
    
    /* Keep buttons original size in forms */
    .input-group .btn {
        width: auto !important;
        min-width: 100px;
    }
    
    /* Cards padding */
    .card-body {
        padding: 1rem !important;
    }
    
    /* Sidebar panels */
    .col-lg-4 .card-body {
        padding: 1rem !important;
    }
    
    /* Avatar circles */
    .avatar-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .avatar-circle-sm {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
    
    /* Icons in header */
    .icon-circle {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* List group items */
    .list-group-item {
        padding: 0.75rem 0 !important;
        font-size: 0.9rem;
    }
    
    /* Modal responsive */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .attachment-actions .btn {
        min-width: 140px;
    }
    
    h4.fw-bold {
        font-size: 1.3rem;
    }
    
    .badge.fs-6 {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Better touch targets for mobile */
.btn, .nav-link, .dropdown-item {
    -webkit-tap-highlight-color: transparent;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: auto !important;
    }
}

/* Text truncation utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive flex utilities */
@media (max-width: 768px) {
    .flex-md-row {
        flex-direction: column !important;
    }
    
    .ms-md-2 {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
    }
}

/* Fix for input groups on mobile */
@media (max-width: 768px) {
    .input-group > * {
        border-radius: 4px !important;
    }
    
    .input-group > :not(:first-child) {
        margin-left: 0 !important;
    }
}