/* NextDash Admin Styles */

.nextdash-settings {
  max-width: 1200px;
}

.nextdash-settings h1 {
  margin-bottom: 20px;
}

.nextdash-settings-container {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  max-width: 800px;
}

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

.nextdash-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.nextdash-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

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

.nextdash-switch input[type="checkbox"]:checked + .nextdash-slider {
  background-color: #2271b1;
}

.nextdash-switch input[type="checkbox"]:checked + .nextdash-slider:before {
  transform: translateX(26px);
}

.nextdash-info-box {
  background: #f0f0f1;
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.nextdash-info-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.nextdash-info-box ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.nextdash-info-box li {
  margin: 8px 0;
}

/* Tab Navigation */
.nextdash-settings .nav-tab-wrapper {
  margin: 20px 0 0 0;
  border-bottom: 1px solid #ccd0d4;
}

.nextdash-settings .nav-tab {
  margin-left: 0;
  margin-right: 0.5em;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.71428571;
  font-weight: 600;
  background: #f6f7f7;
  border: 1px solid #ccd0d4;
  border-bottom: none;
  color: #50575e;
  text-decoration: none;
  display: inline-block;
}

.nextdash-settings .nav-tab:hover {
  background: #f0f0f1;
  color: #2271b1;
}

.nextdash-settings .nav-tab-active {
  background: #fff;
  border-bottom: 1px solid #fff;
  color: #2271b1;
  margin-bottom: -1px;
}

.nextdash-settings-container {
  margin-top: 0;
}

/* Password Field Wrapper */
.nextdash-password-field-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.nextdash-password-field-wrapper .nextdash-password-input {
  padding-right: 80px;
  width: 100%;
}

.nextdash-password-field-wrapper .nextdash-toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border-left: 1px solid #ddd;
  border-radius: 0 3px 3px 0;
  background: #f7f7f7;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nextdash-password-field-wrapper .nextdash-toggle-password:hover {
  background: #f0f0f0;
  color: #2271b1;
}

.nextdash-password-field-wrapper .nextdash-toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 1px #2271b1;
}

/* Textarea Field Wrapper */
.nextdash-textarea-field-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 600px;
}

.nextdash-textarea-field-wrapper .nextdash-textarea-input {
  width: 100%;
  margin-bottom: 5px;
}

.nextdash-textarea-field-wrapper .nextdash-textarea-input.nextdash-hidden {
  display: none;
}

/* URL Field Wrapper with Copy Button */
.nextdash-url-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.nextdash-url-field-wrapper .nextdash-url-input {
  flex: 1;
  padding-right: 10px;
}

.nextdash-url-display {
  display: block;
  flex: 1;
  padding: 6px 10px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  color: #2271b1;
  line-height: 1.5;
}

.nextdash-copy-url {
  white-space: nowrap;
  min-width: 70px;
  position: relative;
}

.nextdash-copy-url .nextdash-copied-text {
  color: #00a32a;
  font-weight: 600;
}

.nextdash-copy-url:active {
  transform: scale(0.98);
}

.nextdash-textarea-field-wrapper .nextdash-toggle-password {
  margin-top: 5px;
  padding: 5px 12px;
  background: #f7f7f7;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.nextdash-textarea-field-wrapper .nextdash-toggle-password:hover {
  background: #f0f0f0;
  color: #2271b1;
  border-color: #2271b1;
}

.nextdash-textarea-field-wrapper .nextdash-toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 1px #2271b1;
}

