:root {
  --bs-success: #198754;
  --bs-success-rgb: 25, 135, 84;
  --company-green: #2d7738;
  --light-green: #f0f7f3;
}

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 80px;
  padding-bottom: 0;
}

/* Header Styles */
.header-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  background: linear-gradient(135deg, var(--company-green) 0%, #198754 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(25, 135, 84, 0.3);
  backdrop-filter: blur(10px);
}

.header-fixed h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-company-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-company-link:hover {
  color: #e9ecef;
  text-decoration: none;
}

/* Main Content */
.main-content {
  padding: 30px 10px 60px 10px;
}

/* Search Card */
.search-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 32px;
  border: 1px solid rgba(25, 135, 84, 0.1);
  transition: all 0.3s ease;
}

.search-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--bs-success);
  border-radius: 8px;
  color: var(--bs-success);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.external-link-btn:hover {
  background: linear-gradient(135deg, var(--bs-success) 0%, var(--company-green) 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.external-link-btn i {
  font-size: 1rem;
}

.link-text, .link-text-full, .link-text-mobile {
  white-space: nowrap;
  font-size: 1rem;
}

.link-text-mobile {
  display: none;
}

.search-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-top:15px;
}

.external-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.external-link-note {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
}

.search-title {
  color: var(--bs-success);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-title i {
  font-size: 1.8rem;
}

/* Form Styles */
.search-form-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input-container {
  flex: 1;
}

.search-button-container {
  flex-shrink: 0;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
  transform: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--bs-success) 0%, var(--company-green) 100%);
  border: none;
  padding: 12px 6px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--company-green) 0%, #1a5928 100%);
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.4);
  transform: translateY(-1px);
}

.btn-success:active {
  transform: translateY(0);
}

/* Error Message */
.error-alert {
  background: linear-gradient(135deg, #fee 0%, #fde8e8 100%);
  color: #d93025;
  border: 2px solid #f5c6cb;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(217, 48, 37, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.error-alert i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Table Styles */
.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.1);
  margin-top: 24px;
}

.table-header-info {
  background: linear-gradient(135deg, var(--light-green) 0%, #e8f5e8 100%);
  padding: 16px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  /* top: 79px; */
  z-index: 100;
}

.table-header-info .header-main-info {
    color: var(--company-green);
    font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size:1.25rem;
}

.table-header-info i {
  color: var(--bs-success);
  font-size: 1.3rem;
}

.table-header-info h5 {
  margin: 0;
  color: var(--company-green);
  font-weight: 700;
}

.table-header-info .search-info {
  font-size: 1.1rem;
  color: var(--company-green);
  font-weight: 600;
}

.table-responsive-custom::-webkit-scrollbar {
  width: 8px;
}

.table-responsive-custom::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.table-responsive-custom::-webkit-scrollbar-thumb {
  background: var(--bs-success);
  border-radius: 4px;
}

.table-success-header {
  background: linear-gradient(135deg, var(--bs-success) 0%, var(--company-green) 100%) !important;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
      font-size: 20px;
}

.table-success-header th {
  font-weight: 700;
  text-align: center;
  padding: 16px 12px;
  border: none;
  position: relative;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: var(--light-green) !important;
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.table td {
  padding: 10px 10px;
  vertical-align: middle;
  text-align: center;
  /* font-weight: 500; */
  border-bottom: 1px solid #f0f0f0;
  font-size: 26px;
}

/* No Data Alert */
.no-data-alert {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  border: 2px solid #bbdefb;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.1);
}

.no-data-alert i {
  font-size: 3rem;
  color: #2196f3;
  margin-bottom: 16px;
}

.no-data-alert .alert-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 8px;
}

.no-data-alert .alert-message {
  color: #424242;
  font-size: 1rem;
}

/* Footer */
.footer-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 8px 0;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #e9ecef;
}

.footer-bottom p {
  margin: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-card {
    padding: 20px;
    margin: 0 10px;
  }

  .header-fixed h3 {
    font-size: 1.3rem;
  }

  .table-responsive-custom {
    font-size: 0.9rem;
  }

  body {
    padding-top: 70px;
  }

  .search-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .table-header-info {
  padding: 16px 8px;
}

  .table-header-info .header-main-info {
    font-size: 1.1rem;
    color: var(--company-green);
    font-weight: 600;
  }

  .table-header-info .search-info {
    font-size: 1rem;
    color: var(--company-green);
    font-weight: 600;
  }

  .external-link-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }


  .external-link-btn .link-text {
    display: none;
  }

  .search-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-button-container {
    width: 100%;
  }

  .btn-success {
    width: 100%;
  }


  .table td {
    font-size: 21px;
    padding: 10px 8px;
  }
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

