:root {
  --primary: #5865f2;
  --primary-dark: #4752c4;
  --primary-light: #7983f5;
  --background: #141414;
  --card: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 800px;
  background-color: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.description {
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

.status-notifier {
  background-color: rgba(88, 101, 242, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0 4px 4px 0;
  text-align: center;
  font-weight: 500;
}

.status-active {
  background-color: rgba(46, 204, 113, 0.1);
  border-left-color: var(--success);
}

.status-inactive {
  background-color: rgba(127, 140, 141, 0.1);
  border-left-color: var(--text-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 60px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  font-weight: bold;
}

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

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(60px);
}

.slider .left-text {
  position: absolute;
  left: 20px;
}

.slider .right-text {
  position: absolute;
  right: 20px;
}

.toggle-label {
  margin-top: 10px;
  font-weight: 500;
  color: var(--text-light);
}

.logs-container {
  margin-top: 2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.logs-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.logs-title h3 {
  color: var(--primary);
}

.clear-logs {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.clear-logs:hover {
  color: var(--primary);
}

.log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.log-time {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-right: 1rem;
  min-width: 80px;
}

.log-message {
  flex-grow: 1;
}

.log-success {
  color: var(--success);
}

.log-error {
  color: var(--error);
}

.log-warning {
  color: var(--warning);
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-active {
  background-color: var(--success);
  animation: pulse 2s infinite;
}

.status-inactive {
  background-color: var(--text-light);
}

.footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Error Popup */
.error-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f44336;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.popup-button {
  padding: 10px 20px;
  background-color: white;
  color: #f44336;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.popup-button:hover {
  background-color: #f44336;
  color: white;
}

.error-popup i {
  font-size: 40px;
  color: white;
}

/* Tab Content */
.top-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.tab-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.tab-button.active {
  background: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.radio-group,
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f8f9fa;
  font-size: 0.85rem;
}

.radio-group label:hover,
.checkbox-group label:hover {
  background: #e9ecef;
}

input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.btn {
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  flex: 1;
  max-width: 180px;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.output-box {
  min-height: 70px;
  border: 1px solid #e0e0e0;
  padding: 12px;
  border-radius: 6px;
  background: #f8f9fa;
  color: var(--text);
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 8px;
}

.suggestion-box {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 6px 6px;
  max-height: 180px;
  overflow-y: auto;
  width: calc(100% - 24px);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.suggestion-box div {
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.suggestion-box div:hover {
  background-color: #f0f0f0;
}

/* Success Notification */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.success-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.success-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.success-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Error Notification */
.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--error);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.error-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.error-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

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

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .radio-group,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .btn {
    max-width: 100%;
    padding: 10px;
  }

  .success-notification,
  .error-notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }

  .success-notification.show,
  .error-notification.show {
    transform: translateY(0);
  }
}

.info {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  width: 320px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  background: #509af8;
  border-radius: 8px;
  box-shadow: 0px 0px 5px -3px #111;
}

.info__icon {
  width: 20px;
  height: 12px;
  transform: translateY(-2px);
  margin-right: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info__icon path {
  fill: #fff;
}

.info__title {
  font-weight: 500;
  font-size: 14px;
  color: #fff;
}

.info__close {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-left: auto;
}

.info__close path {
  fill: #fff;
}

.discord-1 {
  text-decoration: none;
  color: #fff;
}

.bg-warning-1 {
  width: 45vh;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  color: rgb(4, 255, 0);
}

.firstinfo {
  width: 25vh;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: #1a53ff;
  color: white;
  font-weight: 600;
  gap: 2vh;
}

.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.m-5 {
  margin: 3rem;
}
