/* Custom Styles for Kroger Grocery Assistant */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

.container {
  flex: 1;
}

.footer {
  margin-top: auto;
}

/* Navbar styling */
.navbar-brand {
  font-weight: bold;
}

.nav-link {
  border: 1px solid;
  color: white;
  margin: 0 4px;
  border-radius: 6px;
}

/* Card styling */
.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  font-weight: bold;
}

/* Form styling */
.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
  font-family: monospace;
}

/* Button styling */
.btn-primary {
  background-color: #0073e6;
  border-color: #0073e6;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-success {
  background-color: #00a65a;
  border-color: #00a65a;
}

.btn-success:hover {
  background-color: #008d4c;
  border-color: #008d4c;
}

/* List group styling */
.list-group-item {
  transition: all 0.2s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
}

/* Kroger branding colors */
.bg-kroger-blue {
  background-color: #0073e6 !important;
  color: white !important;
}

.bg-kroger-green {
  background-color: #00a65a !important;
  color: white !important;
}

.text-kroger-blue {
  color: #0073e6 !important;
}

.text-kroger-green {
  color: #00a65a !important;
}

/* Loading spinner */
.spinner-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner-container.show {
  display: flex;
}

.spinner {
  width: 4rem;
  height: 4rem;
}

/* Dropdown menu styling */
.dropdown-menu {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f0f7ff;
}

.dropdown-item:active {
  background-color: #0073e6;
}

/* Modal styling */
.modal-header.bg-primary {
  background-color: #0073e6 !important;
}

.modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-body {
  padding: 1.5rem;
}

/* Config modal specific styles */
#storeListGroup .list-group-item {
  cursor: pointer;
}

#storeListGroup .list-group-item:hover {
  background-color: #f0f7ff;
}

#storeListGroup .list-group-item input[type="radio"]:checked + strong {
  color: #0073e6;
}

/* Modality Toggle Switch Styles */
.modality-toggle-container {
  display: flex;
  align-items: center;
}

.modality-label {
  color: white;
  margin: 0 5px;
}

.modality-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.modality-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.modality-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000264; /* PICKUP color (green) */
  transition: .4s;
  border-radius: 24px;
}

.modality-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .modality-slider {
  background-color: #000264; /* DELIVERY color (blue) */
}

input:focus + .modality-slider {
  box-shadow: 0 0 1px #000264;
}

input:checked + .modality-slider:before {
  transform: translateX(26px);
}

/* Active modality label styling */
.modality-toggle-container .active {
  color: white;
  font-weight: 800;
}

#processPhotoBtn {
  min-width: 160px;
}