/* styles.css */

body {
  background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.themed-container {
  background: #ffffffcc;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 960px;
  margin: 40px auto;
}

.themed-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  color: #2c3e50;
}

.themed-heading {
  font-weight: 600;
  color: #34495e;
}

.themed-input {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.themed-input:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 8px rgba(41, 128, 185, 0.3);
}

.btn {
  transition: all 0.2s ease;
}

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

.nav-tabs .nav-link {
  font-weight: 600;
  border-radius: 10px 10px 0 0;
  transition: background-color 0.2s;
}

.nav-tabs .nav-link.active {
  background-color: #2980b9 !important;
  color: #fff !important;
}

.nav-tabs .nav-link:hover {
  background-color: #3498db !important;
  color: #fff !important;
}

#loadingMessage {
  padding: 20px;
  text-align: center;
  font-size: 1.2em;
  color: #34495e;
}

table {
  margin-top: 20px;
  border-radius: 10px;
  width: 100%;
  border-collapse: collapse;
}

#alert-tabs h3 {
  margin-top: 20px;
  color: #444;
}

#alert-tabs table, #alert-tabs th, #alert-tabs td {
  border: 1px solid #ddd;
}

#alert-tabs th, #alert-tabs td {
  padding: 8px;
  text-align: left;
}

.modal {
  position: fixed;
  z-index: 1050;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* === Auth form layout === */
/* Container */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* or 100vh for full height */
  width: 100%;
}

/* Login card */
.auth-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 auto; /* optional if not using flex */
}

/* === Make customer list scrollable === */
#customer-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-size: 0.9rem;
}


/* === Input validation styling === */
.invalid-feedback {
  display: none;
  font-size: 0.9em;
  color: #dc3545;
}

input.is-invalid + .invalid-feedback {
  display: block;
}

/* === Responsive tweaks === */
@media (max-width: 576px) {
  .themed-container {
    margin: 20px 10px;
    padding: 15px;
  }
  .modal-content {
    width: 95%;
  }
}

/* Make the history list scrollable within the modal body */
#historyModalBody-list {
  max-height: 300px;       /* Set max height for scrolling */
  overflow-y: auto;        /* Enable vertical scrolling */
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  /* Optional: add box-shadow for better appearance */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.tab-pane {
    max-height: 400px; /* or your desired height */
    overflow: auto;    /* enable scrolling */
  }

/* Optional: add some default styles for toasts */
.toast {
  font-family: Arial, sans-serif;
  font-size: 14px;
  transition: opacity 0.3s ease;
}