/* ==========================
   Global Styles
========================== */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f7fa;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

/* ==========================
   Navbar
========================== */
.navbar {
  background: linear-gradient(90deg, #006c3f, #00984a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff !important;
}

.navbar-nav .nav-link {
  color: #f0f0f0 !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

/* ==========================
   Notification
========================== */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

/* ==========================
   Sections
========================== */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

/* ==========================
   Cards and Dashboard
========================== */
.card, .dashboard-card {
  border: none;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover, .dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-card h5 {
  color: #006c3f;
  font-weight: 600;
}

/* ==========================
   Buttons
========================== */
.btn-primary {
  background-color: #00984a;
  border-color: #00984a;
}

.btn-primary:hover {
  background-color: #007b3a;
  border-color: #007b3a;
}

.btn-accent {
   background-color:green;
  color: #fff;
  border: none;
}

.btn-accent:hover {
  color: white;
  background-color:green;
}

.btn-outline-primary {
  color: #00984a;
  border-color: #00984a;
}

.btn-outline-primary:hover {
  background-color: #00984a;
  color: #fff;
}

/* ==========================
   Credit & Stats
========================== */
.credit-balance {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00984a;
}

/* ==========================
   Tabs
========================== */
.nav-tabs .nav-link {
  margin-right: 5px;
   background-color:green;
  color:white;
  border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
  background-color: #0b140f;
  color: #fff;
  border-color: #00984a;
}

/* ==========================
   Payment Methods
========================== */
.payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.payment-method:hover {
  border-color: #00984a;
  background: #f0fff6;
}
.payment-method.selected {
  border-color: #00984a;
  background: #474ad1;
  color: #fff;
}

/* ==========================
   Transactions
========================== */
#transactionsSection.transactions-hidden {
  display: none;
}

#transactionsSection.transactions-visible {
  display: block;
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #00984a;
}

/* ==========================
   Loading Spinner
========================== */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
}

.loading-spinner.active {
  display: flex;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
  .dashboard-card {
    margin-bottom: 20px;
  }

  .credit-balance {
    font-size: 1.4rem;
  }
}


/* ==========================
   Dashboard Card Layout Fixes
========================== */
.dashboard-card {
  margin-bottom: 25px; /* Adds space between cards */
}

/* Ensure consistent spacing in the right column */
.col-md-8 .dashboard-card:last-child {
  margin-bottom: 0; /* Avoid extra space at bottom */
}

/* Add some breathing room between tabs and their content */
#formTabs {
  margin-bottom: 1rem;
}

/* Optional: add a subtle border or divider */
.dashboard-card h5 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}
