/** Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  /* This line creates a red gradient from a brighter red to a darker red */
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  min-height: 100vh;
  color: #333 !important;
  line-height: 1.6;
}


.container {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-radius: 20px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  padding: 3rem 2.5rem !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.container h2 {
  color: #2c3e50 !important;
  font-weight: 700 !important;
  font-size: 2.2rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
  position: relative;
}

.container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 2px;
}

.form-control {
  border: 2px solid #e1e8ed !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  background-color: #f8f9fa !important;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

.form-control:hover {
  border-color: #dc2626 !important;
  background-color: #ffffff !important;
}

.col-form-label {
  font-weight: 600 !important;
  color: #495057 !important;
  font-size: 15px !important;
  margin-bottom: 0.5rem !important;
}

.col-form-label:has(+ .col-sm-6 input[required])::after,
.col-form-label:has(+ .col-sm-6 select[required])::after {
  content: ' *';
  color: #e74c3c;
  font-weight: bold;
}

.btn {
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.btn-outline-primary {
  border: 2px solid #dc2626 !important;
  color: #b91c1c !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: #b91c1c !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3) !important;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
}

.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1.5rem !important;
  font-weight: 500 !important;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
  color: #856404 !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2) !important;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #a8e6cf 100%) !important;
  color: #155724 !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2) !important;
}

.table {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
}

.table th {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 1rem !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.table td {
  padding: 1rem !important;
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
  color: #495057 !important;
  font-weight: 500;
}

.table tbody tr:hover {
  background-color: rgba(102, 126, 234, 0.05) !important;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.card {
  border-radius: 15px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 1.5rem !important;
}

.card-body p {
  color: #495057 !important;
  margin-bottom: 0.75rem !important;
  font-weight: 500;
}

.card-body strong {
  color: #2c3e50 !important;
  font-weight: 600;
}

.row.mb-3 {
  margin-bottom: 1.5rem !important;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 12px !important;
  padding-right: 40px !important;
  appearance: none !important;
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem !important;
    margin: 1rem !important;
    border-radius: 15px !important;
  }

  .container h2 {
    font-size: 1.8rem !important;
  }

  .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  .form-control {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .col-form-label {
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 1.5rem 1rem !important;
    margin: 0.5rem !important;
  }

  .container h2 {
    font-size: 1.6rem !important;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 13px !important;
  }

  .gmart-logo {
    max-width: 300px;
  }
}

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

.btn:focus,
.form-control:focus {
  outline: 2px solid #667eea !important;
  outline-offset: 2px !important;
}

.text-success {
  color: #28a745 !important;
  font-weight: 600 !important;
}

.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.logo-container {
  text-align: center;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gmart-logo {
  max-width: 250px;
  height: auto;
  transition: transform 0.3s ease;
}

.gmart-logo:hover {
  transform: scale(1.05);
}

.container.text-white {
  color: #333 !important;
}

.container.text-white p {
  color: #333 !important;
}

.container.text-white strong {
  color: #2c3e50 !important;
}

.container.text-white .text-success {
  color: #28a745 !important;
}

.table th,
.table td {
  padding: 4px 6px !important;
  font-size: 12.5px !important;
  white-space: nowrap;
}

.table th:nth-child(6),
.table td:nth-child(6) {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-responsive {
  overflow-x: auto;
}

.table .btn-sm {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
  border-radius: 0.3rem !important;
}
