﻿body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.pointer {
  cursor: pointer;
}

.select-secondary {
  border-radius: 0.5rem;
  border: 2px solid var(--bs-lightgray);
  color: var(--bs-blue);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  width: 100%;
}

table td {
  align-content: center;
}

.loader:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 4px solid #fff;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-sizing: border-box;
  transform-origin: 50% 50%;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.localloader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
/* Basic Styles for Dashboard Layout */
.dashboard-header {
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
}

.dashboard-header .dashboard-btn {
  background-color: #444;
  border: none;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
}

.dashboard-header .dashboard-btn.active {
  background-color: #555;
}

.dashboard-container {
  padding: 20px;
}

.dashboard-form-container {
  display: none;
}

.dashboard-form-container.active {
  display: block;
}

.dashboard-form {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-form input,
.dashboard-form select,
.dashboard-form button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.dashboard-form .dashboard-submit-btn {
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

/* Custom styling for the navbar title */
.navbar-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Ensure the collapse area spans full width */
.navbar-collapse {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Flexbox adjustments for login partial */
.d-flex {
  margin-left: auto;
}

.navbar-nav {
  margin-right: auto;
}

/* Title visibility adjustments */
.d-none.d-sm-block {
  display: none !important;
}

.d-block.d-sm-none {
  display: block !important;
}

/* Custom breakpoint for collapsing navbar at 1024px */
@media (max-width: 1024px) {
  .navbar-expand-lg .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    justify-content: flex-start;
    display: none !important;
  }
  .navbar-expand-lg .navbar-toggler {
    display: block;
    position: absolute;
    right: 15px; /* Ensures the hamburger stays to the right */
    top: 15px; /* Keeps the hamburger icon at the top */
    z-index: 1; /* Ensure it stays above other elements */
  }
  .navbar-expand-lg .navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 56px; /* Align the expanded menu right below the navbar */
    left: 0;
    background-color: white;
    z-index: 0;
  }
  .navbar-expand-lg .d-flex.ms-auto {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1;
  }
}
/* For screens wider than 1024px, keep the navbar expanded */
@media (min-width: 1025px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}
.offerings-header-container {
  display: flex;
  justify-content: space-between;
}

.offerings-header-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#campaignCard-container {
  height: 78vh;
  overflow: auto;
}
.qrcode-container {
    display: flex;
    flex-direction: row;
}
#campaign-container {
    margin-top: 20px;
}
.greenactive {
    background-color: #00FF00;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.redactive {
    background-color: #FF0000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.form-group {
    margin-bottom: .5rem;
}
.campaign-second-button-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.campaign-second-button-container button {
    margin-bottom: 10px;
}
.filterTableInput {
    background-image: url('https://www.w3schools.com/css/searchicon.png');
    background-position: 10px 10px;
    background-repeat: no-repeat;
    width: 100%;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    margin-top: 12px;
}

/*.filterTable {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
    font-size: 18px;
}

    .filterTable th, .filterTable td {
        text-align: left;
        padding: 12px;
    }

    .filterTable tr {
        border-bottom: 1px solid #ddd;
    }

        .filterTable tr.header, .filterTable tr:hover {
            background-color: #f1f1f1;
        }*/