body {
  font-family: 'Arial', sans-serif;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  flex-direction: column;
}
.navbar {
  width: 100%;
  background-color: #0F6CC0;
  overflow: hidden;
  display: flex;
  position: absolute;
  top: 0;
  justify-content: center;
}
.navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 17px;
}
.navbar a:hover {
  background-color: #ddd;
  color: black;
}

#container {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 30px;
  min-width: 400px;
  margin-top: 20px;
  margin-bottom: 20px;
  justify-content: center;
}

.flex-col {
  width: 100%;
}

h1 {
  font-size: 28px;
  color: #333333;
  margin-bottom: 20px;
}
#status {
  font-size: 20px;
  color: #555555;
  margin: 20px 0;
}
#qr-code {
  margin: 20px 0;
}
.red-button {
  background-color: #c60b0b;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
}
.red-button:hover {
  background-color: #a50a0a;
}
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.w-full {
  width: 100%;
}

#config-form {
  width: auto;
}

label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="range"],
textarea, select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

input[type="tel"] {
  box-sizing: border-box; 
  max-width: 100%;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

#button-enter {
  background-color: #2d6a4f;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
}
#button-enter:hover {
  background-color: #1b4a37;
}

#add-question-btn {
  background-color: #1c55cf;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
}

#add-question-btn:hover {
  background-color: #0f4586;
}

#login-section, #soon, #config-form, #main-content, #openai, #config-warning, #text-action, .separator, #config-list, #new-config {
  display: none;
}

#status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
#status-color {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f80000;
}

.config-section {
  display: none;
  width: 400px;
}

#config-list {
  height: 770px;
  overflow-y: auto;
}

.config-item {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.select-button, .delete-button {
  background-color: #2d6a4f;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.select-button:hover {
  background-color: #1b4a37;
}

.delete-button {
  background-color: #c60b0b;
}

.delete-button:hover {
  background-color: #a50a0a;
}

#snackbar {
  visibility: hidden; 
  min-width: 250px;
  margin-left: -125px;
  color: #fff;
  text-align: center;
  border-radius: 2px; 
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 30px;
}

.show {
  visibility: visible !important;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.success {
  background-color: #4CAF50;
}

.error {
  background-color: #f44336;
}

.warning {
  background-color: #ff9800; 
}
.text-warning {
  color: #ff9800; 
  margin-top: 80px;
  font-weight: 700;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000000;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px auto;
}

#status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#status-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: gray;
}

#spinner {
  display: none;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
#product-table {
  width: 100%;  
  border-collapse: collapse;
  margin-top: 20px;
}

#product-table th, #product-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

#product-table th {
  background: #f0f0f0;
}

.status-tag {
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.status-synced {
  background-color: #00a800;
}

.status-unsynced {
  background-color: #f80000;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes fadein {
  from {top: -50px; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@keyframes fadein {
  from {top: -50px; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: -50px; opacity: 0;}
}

@keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: -50px; opacity: 0;}
}

@media (max-width: 950px) {
  #container {
    flex-direction: column;
    margin-top: 80px;
    margin-bottom: 50px;
  }

  #config-list {
    height: auto;
    overflow-y: auto;
  }
}
