/*!***************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/admin/index.scss ***!
  \***************************************************************************************************************/
@charset "UTF-8";
/* ========== Ultra Modern Base Styles ========== */
/* ========== Ultra Modern Base Styles ========== */
.thlogin-admin-modern {
  --primary-color: #4361ee;
  --wp-components-color-accent: #3153e7;
  --wp-components-color-accent-darker-10:#1f43e2;
  --primary-hover: #3a56d4;
  --primary-light: rgba(67, 97, 238, 0.1);
  --error-color: #ef233c;
  --error-hover: #d90429;
  --success-color: #4cc9f0;
  --warning-color: #f8961e;
  --text-color: #2b2d42;
  --text-light: #8d99ae;
  --border-color: #edf2f4;
  --bg-light: #f8f9fa;
  --bg-lighter: #ffffff;
  --white: #ffffff;
  --black: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-out;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  background: var(--bg-light);
  min-height: 100vh;
  line-height: 1.6;
}

@supports (font-variation-settings: normal) {
  .thlogin-admin-modern {
    font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  }
}
/* ========== Glassmorphism Header ========== */
.admin-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0 24px;
  border-bottom: 1px solid rgba(237, 242, 244, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.admin-header:hover {
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3f37c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.th-logo {
  display: inline-flex;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3f37c9 100%);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

/* ========== Floating Notice Banner ========== */
.notice-banner {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex: 1;
  min-width: 240px;
  margin-left: 20px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  transition: var(--transition-fast);
  border-left: none;
  position: relative;
  overflow: hidden;
}

.notice-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
}

.notice-banner.success {
  background-color: rgba(76, 201, 240, 0.08);
  color: var(--success-color);
}

.notice-banner.error {
  background-color: rgba(239, 35, 60, 0.08);
  color: var(--error-color);
}

.notice-banner.warning {
  background-color: rgba(248, 150, 30, 0.08);
  color: var(--warning-color);
}

.notice-banner:hover {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* ========== Neomorphic Main Layout ========== */
.admin-container {
  display: flex;
  max-width: 1800px;
  margin: 0 auto;
  gap: 24px;
  padding: 24px;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-lighter);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 12px 0;
  align-self: flex-start;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  transition: var(--transition);
}

.admin-sidebar:hover {
  box-shadow: var(--shadow-lg);
}

.admin-content {
  flex: 1;
  min-width: 0;
}

/* ========== 3D Sidebar Navigation ========== */
.admin-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.admin-sidebar li {
  margin: 4px 0;
  position: relative;
}

.admin-sidebar li button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.admin-sidebar li button:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(4px);
}

.admin-sidebar li.active button {
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

.admin-sidebar .dashicons {
  font-size: 18px;
  width: 24px;
  height: 24px;
}

/* ========== Floating Settings Cards ========== */
.settings-section {
  margin-bottom: 32px;
}

.settings-card {
  background: var(--bg-lighter);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 28px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.settings-card:hover {
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), rgba(67, 97, 238, 0.5));
  border-radius: 3px;
}

.section-title .dashicons {
  font-size: 24px;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 8px;
  border-radius: 50%;
}

/* ========== Animated Setting Rows ========== */
.setting-row {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(237, 242, 244, 0.6);
  gap: 24px;
  transition: var(--transition-fast);
}

.setting-label {
  flex: 1;
  min-width: 240px;
}

.setting-label h3,
.setting-label h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.setting-label .description {
  margin: 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

.setting-control {
  flex: 1;
  min-width: 240px;
}

/* ========== Modern Toggle Switch ========== */
.components-toggle-control .components-form-toggle {
  margin-right: 0;
}

.components-toggle-control .components-form-toggle__input:checked + .components-form-toggle__track {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.components-toggle-control .components-form-toggle__input:focus + .components-form-toggle__track {
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* ========== Card Groups ========== */
.settings-group {
  margin: 28px 0;
}

.group-title {
  font-size: 17px;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(237, 242, 244, 0.8);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-title .dashicons {
  font-size: 20px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Grid Layout ========== */
.redirection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.redirection-card {
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.redirection-card h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.redirection-card h4 .dashicons {
  color: var(--primary-color);
}

/* ========== Role Redirect Cards ========== */
.role-redirects-container {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.redirect-rule {
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.redirect-rule:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.rule-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-header h4 .dashicons {
  color: var(--primary-color);
}

.remove-rule {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-fast);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-rule:hover {
  color: var(--error-color);
  background: rgba(239, 35, 60, 0.1);
  transform: scale(1.1);
}

.rule-fields {
  padding: 20px;
  display: grid;
  gap: 16px;
}

/* ========== Premium Form Fields ========== */
.form-field {
  margin-bottom: 16px;
  position: relative;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-color);
}

.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=url],
.form-field input[type=number],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-field input[type=text]:focus,
.form-field input[type=email]:focus,
.form-field input[type=url]:focus,
.form-field input[type=number]:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.help-text {
  font-size: 12px;
  color: var(--text-light);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ========== Floating Action Buttons ========== */
.add-rule-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.add-rule-button:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.add-rule-button:active {
  transform: translateY(0);
}

.customizer-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.customizer-button:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* ========== Interactive Design Preview ========== */
.design-settings-content {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.design-preview {
  flex: 1;
  min-width: 320px;
  perspective: 1000px;
}

.preview-window {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: var(--transition);
}

.preview-window:hover {
  transform: rotateY(5deg) rotateX(2deg);
  box-shadow: var(--shadow-lg);
}

.preview-overlay {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.preview-form {
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
  padding: 20px;
}

.preview-form h3 {
  margin: 0 0 16px 0;
  color: var(--text-color);
  font-weight: 600;
}

.preview-form .preview-input {
  width: 80%;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.preview-form .preview-button {
  width: 80%;
  height: 36px;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

.design-controls {
  flex: 1;
  min-width: 320px;
}

.quick-color-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.color-picker {
  position: relative;
}

.color-picker input {
  padding-left: 48px !important;
  cursor: pointer;
}

.color-picker::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  transition: var(--transition-fast);
}

.color-picker:hover::before {
  transform: translateY(-50%) scale(1.05);
}

/* ========== Animated Save Button ========== */
.save-settings {
  margin-top: 32px;
  text-align: right;
}

.save-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
  position: relative;
  overflow: hidden;
}

.save-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.save-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.save-button:active::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}
.save-button .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

/* ========== Premium Confirmation Modal ========== */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--bg-lighter);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform-origin: center;
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 600;
}

.modal-content p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.cancel-button {
  background: var(--bg-light);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cancel-button:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.confirm-button {
  background: var(--error-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(239, 35, 60, 0.3);
}

.confirm-button:hover {
  background: var(--error-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 35, 60, 0.4);
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(237, 242, 244, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(141, 153, 174, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(141, 153, 174, 0.7);
}

.thlogin-admin-modern {
  --primary-color: #4361ee;
  --primary-hover: #3f37c9;
  --primary-light: rgba(67, 97, 238, 0.15);
  --error-color: #ff3e4d;
  --error-hover: #ff1a2e;
  --success-color: #00d9b8;
  --warning-color: #ffaa00;
  --text-color: #1a1e2e;
  --text-light: #6c7286;
  --border-color: rgba(237, 242, 244, 0.8);
  --bg-light: #f5f7fa;
  --bg-lighter: #ffffff;
  --white: #ffffff;
  --black: #0f111a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  background: var(--bg-light);
  min-height: 100vh;
  line-height: 1.6;
}

@supports (font-variation-settings: normal) {
  .thlogin-admin-modern {
    font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  }
}
/* ========== Glassmorphism Header ========== */
.admin-header {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  padding: 0 24px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.admin-header:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.th-logo {
  display: inline-flex;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white, #fff) !important;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  transition: var(--transition);
}

/* ========== Floating Notice Banner ========== */
.notice-banner {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex: 1;
  min-width: 240px;
  margin-left: 20px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  transition: var(--transition-fast);
  border-left: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.8;
}

.notice-banner.success {
  background-color: rgba(0, 217, 184, 0.12);
  color: var(--success-color);
}

.notice-banner.error {
  background-color: rgba(255, 62, 77, 0.12);
  color: var(--error-color);
}

.notice-banner.warning {
  background-color: rgba(255, 170, 0, 0.12);
  color: var(--warning-color);
}

.notice-banner:hover {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* ========== Neomorphic Glass Sidebar ========== */
.admin-container {
  display: flex;
  max-width: 1800px;
  margin: 0 auto;
  gap: 24px;
  padding: 24px;
}

.admin-sidebar {
  width: 280px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  padding: 16px 0;
  align-self: flex-start;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  transition: var(--transition);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.admin-sidebar:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.3);
}

.admin-content {
  flex: 1;
  min-width: 0;
}

/* ========== 3D Glass Navigation ========== */
.admin-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.admin-sidebar li {
  margin: 4px 0;
  position: relative;
}

.admin-sidebar li button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.admin-sidebar li button:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 2px 0 8px rgba(67, 97, 238, 0.1);
}

.admin-sidebar li.active button {
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

.admin-sidebar .dashicons {
  font-size: 18px;
  width: 24px;
  height: 24px;
  transition: var(--transition-fast);
  position: relative;
}

.admin-sidebar .dashicons:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.admin-sidebar li:hover .dashicons {
  transform: scale(1.1);
}

/* ========== Glass Card Components ========== */
.settings-section {
  margin-bottom: 32px;
}

.settings-card {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  padding: 28px;
  margin-bottom: 24px;
  transition: var(--transition);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), rgba(67, 97, 238, 0.5));
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.section-title .dashicons::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.section-title .dashicons {
  font-size: 24px;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
  position: relative;
}

/* ========== Animated Glass Setting Rows ========== */
.setting-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(237, 242, 244, 0.6);
  gap: 24px;
  transition: var(--transition-fast);
  position: relative;
  padding-left: 10px;
}

.setting-label h3,
.setting-label h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.setting-label .description {
  margin: 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

.setting-control {
  flex: 1;
  min-width: 200px;
  max-width: 200px;
}

/* ========== Glass Card Groups ========== */
.settings-group {
  margin: 22px 0;
}

.group-title {
  font-size: 17px;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(237, 242, 244, 0.8);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-title .dashicons {
  font-size: 20px;
  background: rgba(67, 97, 238, 0.1);
  padding: 6px;
  border-radius: 6px;
  color: var(--primary-color);
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Grid Layout with Glass Cards ========== */
.redirection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.redirection-card {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.setting-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.2), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.setting-row:hover::after {
  opacity: 1;
}

.setting-label {
  flex: 1;
  min-width: 240px;
}

.redirection-card h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.redirection-card h4 .dashicons {
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 4px;
  border-radius: 4px;
}

/* ========== Role Redirect Glass Cards ========== */
.role-redirects-container {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.redirect-rule {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.redirect-rule:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.4);
}

.rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(245, 247, 250, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

.rule-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-header h4 .dashicons {
  color: var(--primary-color);
}

/* ========== Floating Glass Action Buttons ========== */
.add-rule-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  position: relative;
  overflow: hidden;
}

.add-rule-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.add-rule-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

.add-rule-button:hover::before {
  opacity: 1;
}

.add-rule-button:active {
  transform: translateY(0);
}

.customizer-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.remove-rule {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-fast);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.remove-rule:hover {
  color: var(--error-color);
  background: rgba(255, 62, 77, 0.1);
  transform: scale(1.1);
}

.rule-fields {
  padding: 20px;
  display: grid;
  gap: 16px;
}

/* ========== Premium Glass Form Fields ========== */
.form-field {
  margin-bottom: 16px;
  position: relative;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-color);
}

.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=url],
.form-field input[type=number],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(4px);
}

.form-field input[type=text]:focus,
.form-field input[type=email]:focus,
.form-field input[type=url]:focus,
.form-field input[type=number]:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
  background: var(--white);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.help-text {
  font-size: 12px;
  color: var(--text-light);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ========== Interactive Glass Design Preview ========== */
.design-settings-content {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.design-preview {
  flex: 1;
  min-width: 320px;
  perspective: 1000px;
}

.preview-window {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.preview-window:hover {
  transform: rotateY(5deg) rotateX(2deg);
  box-shadow: var(--shadow-lg);
}

.design-controls {
  flex: 1;
  min-width: 320px;
}

.quick-color-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.color-picker {
  position: relative;
}

.color-picker input {
  padding-left: 48px !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8) !important;
}

.color-picker::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 61%;
  transform: translate(-50%, -50%);
  width: 21px;
  height: 21px;
  border-radius: var(--radius-sm);
  /* border: 1px solid var(--border-color); */
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  transition: var(--transition-fast);
}

/* ========== Animated Glass Save Button ========== */
.save-settings {
  text-align: right;
  margin-right: 14%;
}

.save-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.save-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.save-button:hover::before {
  left: 100%;
}

.save-button:active {
  transform: translateY(0);
}

.save-button .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

/* ========== Premium Glass Confirmation Modal ========== */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 17, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform-origin: center;
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.cancel-button {
  background: rgba(245, 247, 250, 0.8);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
}

.cancel-button:hover {
  background: rgba(237, 242, 244, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.confirm-button {
  background: linear-gradient(135deg, var(--error-color) 0%, var(--error-hover) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 35, 60, 0.4);
}

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(237, 242, 244, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 114, 134, 0.5);
  border-radius: 4px;
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.modal-content .components-button.is-destructive.confirm-button {
  color: white !important;
}

.thlogin-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.thlogin-loader-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4a6cf7;
  animation: thlogin-pulse 1.5s infinite ease-in-out;
}

.thlogin-loader-circle:nth-child(1) {
  animation-delay: 0s;
}

.thlogin-loader-circle:nth-child(2) {
  animation-delay: 0.2s;
}

.thlogin-loader-circle:nth-child(3) {
  animation-delay: 0.4s;
}

.thlogin-loader-circle:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes thlogin-pulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.thlogin-loading-text {
  text-align: center;
  color: #4a6cf7;
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
}

/* ========== FINAL OPTIMIZED SELECT CONTROL ========== */
.modern-select-control {
  position: relative;
  margin-bottom: 24px;
  width: 250px;
  font-family: "Inter", system-ui, sans-serif;
  --border: rgba(140, 143, 148, 0.4);
  --border-hover: #4361ee;
  --background: #fff;
  --highlight: #f0f4ff;
  --selected: #e0e8ff;
}

.modern-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: #2c3338;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.modern-select-trigger:hover {
  border-color: var(--border-hover);
}

.modern-select-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--background);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
  z-index: 10;
}

.modern-select-control.is-open .modern-select-dropdown {
  max-height: 220px;
  opacity: 1;
  overflow-y: auto;
}

.modern-select-option {
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modern-select-option:hover {
  background: var(--highlight);
}

.modern-select-option.is-selected {
  background: var(--selected);
  font-weight: 500;
}

/* Scrollbar styling */
.modern-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.modern-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.redirection-grid .components-text-control__input {
  border-radius: 6px;
  width: 280px;
}

.thlogin-admin-modern .components-text-control__input {
  border-radius: 6px;
}

/* ============= TABS ============= */
.thlogin-tabs .components-tab-panel__tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.thlogin-tabs .components-tab-panel__tabs button {
  background: none;
  border: none;
  font-size: 12px;
  padding: 10px 16px;
  color: #666;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}

.thlogin-tabs .components-tab-panel__tabs button:hover {
  background-color: #f1f2f4;
  color: #111;
}

.thlogin-tabs .components-tab-panel__tabs .active-tab {
  color: var(--primary-accent);
  font-weight: 600;
}

.thlogin-tabs .components-tab-panel__tabs .active-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-accent);
}

/* ============= ACCORDION ============= */
.th-accordion-section {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9fb;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #f1f3f5;
}

.accordion-header span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.3s ease;
  color: #666;
}

.th-accordion-section.open .accordion-icon {
  transform: rotate(180deg);
  color: #fff;
}

.accordion-body {
  padding: 20px;
  background: #fff;
}

/* ============= INPUT CONTROLS ============= */
.components-base-control {
  margin-bottom: 20px;
}

.components-base-control__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

input[type=text],
input[type=url],
input[type=number] {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  color: #222;
}

input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.2);
  outline: none;
}

/* ============= COLOR & RANGE INPUTS ============= */
input[type=range]::-webkit-slider-thumb {
  background: var(--primary-accent);
}

/* ============= THEME COLORS ============= */
:root {
  --primary-accent: #6d5dfc;
  --secondary-accent: #43d9b8;
  --text-primary: #1e1e1e;
  --text-secondary: #6c757d;
  --border-light: rgba(0, 0, 0, 0.08);
}

.preview-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.layout-style-grid {
  display: flex;
  gap: 20px;
  flex-direction: column;
  margin-top: 12px;
}

.layout-style-card {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.layout-style-card:hover {
  border-color: #6d5dfc;
  box-shadow: 0 4px 12px rgba(109, 93, 252, 0.1);
}

.layout-visual {
  height: 100px;
  background: #f8f9fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.layout-popup .modal-box {
  width: 60%;
  height: 80%;
  background: #6d5dfc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.layout-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.layout-style-card.selected {
  outline: 1px solid blue;
}

.preview-overlay {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.thlogin-media-image .modern-select-control {
  max-width: 100%;
  margin-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.thlogin-media-image .modern-select-trigger {
  width: 104px;
}

.thlogin-media-image .modern-select-dropdown {
  margin-left: auto;
  max-width: 132px;
}

.thlogin-media-image .modern-select-value {
  font-size: 12px;
}

.th-border-inline-box {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.th-border-inline-box:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.th-border-inline-box .th-label {
  font-weight: 600;
  font-size: 13px;
  color: #1e1e1e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}
.th-border-inline-box .th-label::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: linear-gradient(to bottom, #6d5dfc, #43d9b8);
  border-radius: 2px;
  margin-right: 8px;
}
.th-border-inline-box .th-border-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.th-border-inline-box .th-border-row .components-base-control {
  margin-bottom: 0;
}
.th-border-inline-box .th-border-row .components-base-control input[type=number] {
  width: 100%;
  padding: 0 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  height: 36px;
  color: #1e1e1e;
}
.th-border-inline-box .th-border-row .components-base-control input[type=number]:focus {
  outline: none;
  border-color: #6d5dfc;
  box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.2);
  background: white;
}
.th-border-inline-box .th-border-row .components-icon-button {
  background: rgba(240, 240, 240, 0.8);
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 35px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  color: #5c5f66;
}
.th-border-inline-box .th-border-row .components-icon-button:hover {
  background: rgba(230, 230, 230, 0.9);
  color: #1e1e1e;
  transform: translateY(-1px);
}
.th-border-inline-box .th-border-row .components-icon-button:active {
  transform: translateY(0);
}
.th-border-inline-box .th-border-row .components-icon-button.is-pressed {
  background-color: #6d5dfc;
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(109, 93, 252, 0.3);
}
.th-border-inline-box .th-border-row .components-icon-button svg {
  width: 16px;
  height: 16px;
}

.modern-border-select-control {
  width: 196px;
}

.settings-group h3 {
  background: linear-gradient(135deg, #cad2ed, #e0e7ff); /* very light indigo shades */
  color: #1e1b4b; /* deep indigo text */
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  display: block;
  margin-bottom: 16px;
  width: 90%;
}

.admin-content {
  max-width: 1100px;
}

.form-type-options {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.form-type-card {
  flex: 1 1 140px;
  max-width: 160px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-type-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-color: #c7d2fe;
}

.form-type-card.active {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-type-mockup {
  margin-bottom: 8px;
}

.mockup-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: 6px;
  min-height: 80px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mockup-header {
  background: #4361ee;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 6px;
}

.mockup-tab-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.mockup-tab-row .tab {
  flex: 1;
  background: #e5e7eb;
  padding: 3px;
  font-size: 10px;
  border-radius: 3px;
  color: #4b5563;
}

.mockup-tab-row .tab.active {
  background: #4361ee;
  color: white;
}

.mockup-line {
  height: 6px;
  background: #d1d5db;
  border-radius: 3px;
  margin: 3px 0;
}

.mockup-line.short {
  width: 60%;
  margin: 3px auto;
}

.mockup-button {
  width: 70%;
  height: 8px;
  background: #6366f1;
  border-radius: 3px;
  margin: 6px auto 0;
}

.form-type-label {
  margin: 6px 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.form-type-description {
  font-size: 11px;
  color: #6b7280;
}

.thlogin-modalchoose-form {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.thlogin-modalchoose-form .modern-select-control {
  width: 182px !important;
  margin-right: 28px !important;
}

.thlogin-modalchoose-form div p {
  color: rgba(128, 128, 128, 0.9);
}

.thl-form-fields-settings {
  display: flex;
  gap: 32px;
  font-family: "Inter", sans-serif;
  color: #1f2937;
}
@media (max-width: 768px) {
  .thl-form-fields-settings {
    flex-direction: column;
  }
}

/* Left Panel */
.thl-form-fields-settings .thl-left-panel {
  width: 320px;
  background: #fdfdfd;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Tabs */
.thl-form-fields-settings .tabs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 24px;
}

.thl-form-fields-settings .tab-button {
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}
.thl-form-fields-settings .tab-button:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateX(2px);
}
.thl-form-fields-settings .tab-button.active {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Fields List */
.thl-form-fields-settings .fields-list {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
  height: 400px;
}
.thl-form-fields-settings .fields-list::-webkit-scrollbar {
  width: 4px;
}
.thl-form-fields-settings .fields-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 6px;
}

/* Field Item */
.thl-form-fields-settings .field-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
.thl-form-fields-settings .field-item:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}
.thl-form-fields-settings .field-item:active {
  transform: scale(0.98);
}

.thl-form-fields-settings .field-drag-handle {
  margin-right: 12px;
  font-size: 18px;
  color: #94a3b8;
  cursor: grab;
  display: flex;
  align-items: center;
}

.thl-form-fields-settings .field-icon {
  margin-right: 10px;
  font-size: 18px;
  font-family: dashicons !important;
  color: #3b82f6;
}

.thl-form-fields-settings .field-label {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Icon (Lock / Delete) */
.thl-form-fields-settings .field-action-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: background 0.2s;
}
.thl-form-fields-settings .field-action-icon .dashicons {
  font-size: 16px;
}
.thl-form-fields-settings .field-action-icon.lock {
  color: #10b981;
  background-color: #ecfdf5;
}
.thl-form-fields-settings .field-action-icon.delete {
  color: #ef4444;
  background-color: #fef2f2;
  cursor: pointer;
}
.thl-form-fields-settings .field-action-icon.delete:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Add Field Button */
.thl-form-fields-settings .add-field-button-wrapper {
  padding-top: 16px;
  margin-top: auto;
  margin-left: auto;
}
.thl-form-fields-settings .add-field-button-wrapper button {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  background-color: #f9fafb;
  color: #334155;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.thl-form-fields-settings .add-field-button-wrapper button:hover {
  background-color: #f1f5f9;
  border-color: #64748b;
  color: #1e293b;
  transform: scale(1.02);
}

/* Right Panel */
.thl-form-fields-settings .thl-right-panel {
  flex-grow: 1;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px;
  background-color: #ffffff;
  min-height: 500px;
}
.thl-form-fields-settings .thl-right-panel .placeholder {
  text-align: center;
}
.thl-form-fields-settings .thl-right-panel .placeholder p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.thl-right-panel {
  flex: 1;
  max-width: 600px;
  padding: 32px;
  background-color: #fff;
  border-left: 1px solid #eee;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.02);
  overflow: visible;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

/* Field Editor Grid Layout */
.field-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 24px;
}

/* Elements that span both columns */
.field-editor .field-editor-title,
.field-editor .components-toggle-control,
.field-editor .check-group,
.field-editor .min-max-group,
.field-editor .field-editor-actions {
  grid-column: span 2;
}

/* Title Styling */
.field-editor-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* Input Styling */
.field-editor .components-text-control__input,
.field-editor .components-select-control__input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field-editor .components-text-control__input:focus,
.field-editor .components-select-control__input:focus {
  border-color: #4361ee;
  background: #fff;
  box-shadow: 0 0 0 1px #4361ee;
  outline: none;
}

/* Toggle Switches Row */
.field-editor .toggle-row {
  display: flex;
  gap: 24px;
  margin-top: 10px;
}

.field-editor .components-toggle-control:last-of-type {
  margin-bottom: 8px;
}

/* Password Check Rules */
.check-group {
  padding: 16px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Min/Max Inputs Row */
.min-max-group {
  display: flex;
  gap: 20px;
}

.min-max-group .components-base-control {
  flex: 1;
}

/* Actions (Save/Reset) */
.field-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Placeholder if no field is selected */
.placeholder {
  padding: 60px 20px;
  font-size: 16px;
  color: #999;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}

.thl-icon-picker {
  position: relative;
  font-family: inherit;
}

.icon-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  padding: 3px 14px;
  border: 1px solid #dcdcdc;
  background-color: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.icon-picker-trigger:hover {
  border-color: #4361ee;
  background-color: #f0f8ff;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.selected-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.icon-name {
  font-size: 13px;
  color: #222;
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-caret {
  color: #888;
  font-size: 16px;
  transform: translateY(1px);
  transition: 0.2s ease;
}

.icon-picker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 10px;
  width: 100%;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.icon-option {
  padding: 6px;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  position: relative;
}

.icon-option:hover {
  background-color: #e6f3ff;
  transform: scale(1.05);
}

.icon-option.active {
  background-color: #4361ee;
  color: #fff;
}

.icon-option.active svg {
  fill: #fff;
}

.icon-option svg {
  width: 22px;
  height: 22px;
  transition: fill 0.2s ease;
}

.field-item .selected-icon {
  width: 20px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thl-right-panel .field-editor .modern-select-trigger {
  padding: 6px 14px;
}

.sortable-field-wrapper.selected .field-item {
  background: #f0f8ff;
  border-left: 3px solid #2563eb;
}

.thlogin-toggle-one-line {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 30px;
}

.thl-toast-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e1e1e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0.95;
  animation: slideInToast 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slideInToast {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.95;
  }
}
.settings-manage-toggle-resitartion .setting-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: unset;
  margin-right: 30px;
  height: 130px;
}
.settings-manage-toggle-resitartion .setting-control .th-inline-registration-redirect {
  margin-top: unset !important;
  padding: 0;
}

.thlogin-shortcodes-list .shortcode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.shortcode-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shortcode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: #d1d5db;
}

.shortcode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.shortcode-card h4 {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.shortcode-copy-wrap {
  display: flex;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.shortcode-text {
  width: 100%;
  font-family: "Fira Code", "Menlo", monospace;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #f9fafb;
  color: #374151;
  resize: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
  line-height: 1.5;
}

.shortcode-text:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.copy-button {
  white-space: nowrap;
  padding: 8px 12px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background-color: #2563eb;
}

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

/* Success feedback */
.copy-button.copied {
  background-color: #10b981;
  animation: pulse 0.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.text-small-box .components-base-control {
  width: 70px;
}

.under-small-portion {
  padding-left: 30px;
}

.menu-item-group {
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  padding: 20px;
  margin: 28px 0;
  border-radius: 18px;
  box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.08), inset -2px -2px 4px #ffffff, 4px 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

/* Subheading Style */
.menu-subheading {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e293b;
  background: rgba(99, 102, 241, 0.05);
  padding: 8px 14px;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: background 0.3s ease;
}

.menu-subheading:hover {
  background: rgba(99, 102, 241, 0.07);
  cursor: default;
}

.custom-tabs {
  display: flex;
  gap: 10px;
  width: max-content;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

.custom-tab-button {
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: #444;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.custom-tab-button:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  transform: translateY(-1px);
}

.custom-tab-button.active {
  background: #4361ee;
  color: #fff;
}

.thl-form-fields-settings .custom-tab-button {
  padding: 10px 16px;
}

.copy-button, .paste-button {
  margin-top: 8px;
  padding: 7px 8px !important;
  font-size: 15px;
  color: #2563eb; /* blue text */
  background-color: #f9fbff;
  border-radius: 10px;
  cursor: pointer;
  gap: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.copy-button {
  font-size: 13px !important;
  height: 30px !important;
  border: 1.8px solid #a3bffa;
}

.copy-button:hover,
.paste-button:hover {
  border-color: #3b82f6;
  color: white !important;
  background-color: #3b82f6 !important;
}

.copy-button.copied {
  background-color: #3b82f6; /* strong blue background */
  color: #fff;
  pointer-events: none;
}

.design-editor-layout {
  display: flex;
  flex-direction: row;
  gap: 24px;
  height: 553px;
}

.design-editor-layout .settings-panel {
  width: 270px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.design-editor-layout .custom-tabs {
  margin: -10px;
}

.settings-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.settings-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
}

.thlogin-admin-modern {
  min-height: 88vh;
}

.settings-card {
  margin-bottom: 0;
}

.design-editor-layout .preview-panel {
  flex-grow: 1;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.design-editor-layout .preview-overlay {
  height: 520px;
}

.preview-overlay.layout-popup {
  position: absolute;
  box-sizing: border-box;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.preview-overlay.layout-slide_in_left {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  height: 100%;
  width: 400px;
  transition: transform 0.4s ease;
}

.preview-overlay.layout-slide_in_right {
  position: absolute;
  top: 0;
  right: 0 !important;
  height: 100%;
  width: 400px;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

.thlogin-border-controls {
  margin-bottom: 10px;
}

.components-border-box-control {
  margin-bottom: 1.5em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.components-border-box-control:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.components-border-box-control__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.components-border-box-control__label {
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
  letter-spacing: 0.2px;
}

.components-border-box-control__input-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px 25px;
}

.components-border-box-control__input-container {
  margin-bottom: 0;
  position: relative;
}

.components-border-box-control__input-container .components-base-control__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6d6d6d;
  letter-spacing: 0.5px;
}

.components-border-box-control__input-container input[type=number] {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  height: 30px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.components-border-box-control__input-container input[type=number]:focus {
  border-color: #3858e9;
  box-shadow: 0 0 0 1px #3858e9;
  outline: none;
}

.components-border-box-control__sync-button {
  padding: 0;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.components-border-box-control__sync-button.is-primary {
  background: #3858e9;
  color: white;
}

.components-border-box-control__sync-button:hover {
  transform: scale(1.05);
}

.components-border-box-control__sync-button:active {
  transform: scale(0.98);
}

.components-border-box-control {
  margin-bottom: 1.5em;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.components-border-box-control:hover {
  border-color: rgba(56, 88, 233, 0.3);
}

.components-border-box-control__input-container input[type=number] {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.components-border-box-control__sync-button {
  background: rgba(56, 88, 233, 0.9);
  color: white;
}

.th-heading-settings {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

.th-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.th-setting-label {
  flex: 0 0 120px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.th-color-input,
.th-number-input {
  flex: 1;
  height: 34px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.th-select-wrapper {
  flex: 1;
}

.modern-sleect-heaidng .modern-select-control {
  width: 197px;
}
.modern-sleect-heaidng .modern-select-control .modern-select-trigger {
  margin-top: 10px;
}

.thlogin-border-managemnt-border .modern-select-trigger {
  max-width: 150px;
  margin-top: 10px;
}
.thlogin-border-managemnt-border .components-color-picker div {
  max-width: 180px;
}
.thlogin-border-managemnt-border .components-base-control {
  margin-bottom: 1px;
}

/* Modal Wrapper Styles */
.th-modal-preview-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Preview Styles (foreground) */
.th-modal-preview {
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  position: relative;
  overflow-x: hidden;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  overflow-y: auto;
}

/* Form Preview Styles (background) */
.th-form-preview {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  z-index: 99;
  position: relative;
}

/* Layout-specific styles */
.th-preview-container.layout-page .th-form-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.th-preview-container.layout-popup .th-form-preview {
  width: 80%;
  max-width: 500px;
  height: auto;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.th-preview-container.layout-slide_in_left .th-form-preview {
  position: absolute;
  left: 0;
  top: 0;
  width: 35% !important;
  height: 100%;
  transform: translateX(-100%);
  animation: slideInLeft 0.5s forwards;
  margin: 0;
  border-radius: 0 8px 8px 0;
}

.th-preview-container.layout-slide_in_right .th-form-preview {
  position: absolute;
  right: 0;
  top: 0;
  width: 35% !important;
  height: 100%;
  transform: translateX(100%);
  animation: slideInRight 0.5s forwards;
  margin: 0;
  border-radius: 8px 0 0 8px;
}

/* Slide animations */
@keyframes slideInLeft {
  to {
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  to {
    transform: translateX(0);
  }
}
.th-modal-preview input:-webkit-autofill {
  box-shadow: var(--th-backgroundColor) !important;
  -webkit-text-fill-color: var(--th-input-color) !important;
}

.design-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thloginpreview-cancel {
  position: absolute;
  top: 2%;
  right: 2%;
}

.thlogin-prevuiew-form-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cutsom-tabs-inside-panel {
  margin-top: 25px;
}

.woocommerce-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-left: 4px solid #96588a;
  border-radius: 16px;
  padding: 15px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* ✨ Smooth subtle animated shine */
.woocommerce-card-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: cardShine 2.5s infinite linear;
}

@keyframes cardShine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}
/* Header */
.woocommerce-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* Icon */
.woocommerce-icon {
  display: flex;
  align-items: flex-start;
  justify-content: start;
  width: 48px;
  height: 48px;
}

.woocommerce-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Title */
.woocommerce-info h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.2px;
}

/* Description */
.woocommerce-info p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  max-width: 600px;
}

/* Toggle Control */
.woocommerce-toggle {
  margin-left: auto;
}

.modrn-size-fixer-167 {
  width: 167px;
}

.pending-users-list {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pending-users-list h4 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.pending-users-list p {
  margin: 0;
  color: #666;
}

.pending-users-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pending-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pending-user-item:last-child {
  border-bottom: none;
}

.pending-user-item strong {
  color: #222;
  margin-right: 6px;
}

.deisgn-layout-adjust .accordion-body {
  padding: 10px;
}
.deisgn-layout-adjust .accordion-body .th-layout-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 6px;
  margin-top: 6px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
.deisgn-layout-adjust .accordion-body .th-layout-card {
  padding: 3px;
  width: 92%;
  max-width: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f8fafc;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: center;
}
.deisgn-layout-adjust .accordion-body .th-layout-card:hover {
  background-color: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(100, 149, 237, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
}
.deisgn-layout-adjust .accordion-body .th-layout-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.deisgn-layout-adjust .accordion-body .layout-preview {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.deisgn-layout-adjust .accordion-body .form-box {
  width: 48px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: absolute;
  transition: all 0.3s ease;
}
.deisgn-layout-adjust .accordion-body .popup .form-box {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.deisgn-layout-adjust .accordion-body .slide-left .form-box {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.deisgn-layout-adjust .accordion-body .slide-right .form-box {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.deisgn-layout-adjust .accordion-body .form-line {
  height: 3px;
  background: #cbd5e1;
  border-radius: 2px;
}
.deisgn-layout-adjust .accordion-body .form-line.short {
  width: 60%;
}
.deisgn-layout-adjust .accordion-body .form-button {
  height: 6px;
  background: #2563eb;
  border-radius: 3px;
}
.deisgn-layout-adjust .accordion-body .layout-label {
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 500;
  color: #1e293b;
  margin-top: 4px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deisgn-layout-adjust .accordion-body .th-login-previre-button .dashicons.dashicons-external {
  font-size: 16px;
}

.design-editor-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.th-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.icon-insode-th-login {
  position: absolute;
  top: 53%;
  left: 1.5%;
}

.design-options-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  background-color: #f7f9fc;
  border-radius: 12px;
}

.design-card {
  flex: 1 1 280px;
  background: #ffffff;
  border: 1.5px solid #e0e6ed;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.design-card:hover {
  border-color: #4361ee;
  transform: translateY(-2px);
}

.design-card.selected {
  border-color: #4361ee;
}

.design-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background-color: #4361ee;
  color: #fff;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  text-transform: capitalize;
  letter-spacing: 0.25px;
}

.preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.preview label {
  font-size: 14px;
  color: #444;
}

.preview input {
  padding: 10px 14px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 14px;
  color: #333;
  width: 100%;
  cursor: not-allowed;
  opacity: 0.65;
}

/* Floating Label Preview */
.preview-floating {
  position: relative;
}

.preview-floating input {
  width: 100%;
  padding: 14px 12px 6px;
  font-size: 15px;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fdfdfd;
  cursor: not-allowed;
  opacity: 0.7;
}

.preview-floating label.floating-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  background-color: #fff;
  padding: 0 6px;
  font-size: 15px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.preview-floating input:focus,
.preview-floating input:not(:placeholder-shown) {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.15);
}

.preview-floating input:focus + .floating-label,
.preview-floating input:not(:placeholder-shown) + .floating-label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #4361ee;
}

/* Optional background highlight on hover */
.design-card:hover .preview input {
  background-color: #f5faff;
}

.design-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #4361ee;
  color: #fff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-floating {
  position: relative;
  margin-top: 10px;
}

.preview-floating input {
  width: 100%;
  padding: 12px 12px 12px 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: #fdfdfd;
}

.preview-floating input:focus {
  border-color: #4361ee;
}

.preview-floating label.floating-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  background-color: white;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

.preview-floating input:focus + .floating-label,
.preview-floating input:not(:placeholder-shown) + .floating-label {
  top: 0;
  left: 8px;
  font-size: 12px;
  color: #4361ee;
}

.preview-floating input.force-float + .floating-label {
  top: 0;
  left: 8px;
  font-size: 12px;
  color: #4361ee;
}

.deisgn-settings-select-icon-place {
  padding: 24px;
}

.deisgn-settings-select-icon-place .icon-th-setting-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.deisgn-settings-select-icon-place .icon-setting-label {
  font-weight: 600;
  font-size: 15px;
  color: #2c3e50;
}

.deisgn-settings-select-icon-place .icon-icon-position-toggle {
  display: inline-flex;
  border: 1.5px solid #ccd5dd;
  border-radius: 999px;
  background-color: #f4f6f8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  width: fit-content;
}

.deisgn-settings-select-icon-place .icon-toggle-option {
  padding: 10px 20px;
  font-size: 14px;
  color: #333;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.deisgn-settings-select-icon-place .icon-toggle-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.deisgn-settings-select-icon-place .icon-toggle-option.active {
  background-color: #4361ee;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 124, 186, 0.15);
  z-index: 2;
}

/* Icon Styles */
.email-icon {
  font-size: 16px;
  width: 16px;
  color: #666;
}

.label-icon {
  margin-right: 6px;
  vertical-align: middle;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  color: #888;
  font-size: 16px;
}

.input-wrap input {
  padding-left: 34px !important; /* leave space for icon */
}

.settings-label-with-deisgn {
  display: flex;
  gap: 50px;
}

.layout-inline {
  justify-content: space-between;
}

/* FLOATING Layout */
.floating-wrapper {
  position: relative;
}

.floating-input {
  width: 100%;
}

.floating-label {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
  top: 0;
  left: 8px;
  z-index: 1;
  font-size: 12px;
  color: #4361ee !important;
}

/* STACK Layout */
.layout-stack .inline-stack-label {
  display: block;
  margin-bottom: 6px;
}

.layout-stack .th-preview-input {
  width: 100%;
  display: block;
}

/* INLINE Layout */
.layout-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layout-inline .inline-stack-label {
  margin: 0;
}

.layout-inline .th-preview-input {
  flex: 1;
}

/* Icon + Label horizontal (used for 'with-label') */
.icon-label-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.icon-label-wrapper svg,
.icon-label-wrapper span {
  display: inline-block;
}

/* Icon inside input */
.icon-inside-th-login {
  position: absolute;
  left: 5px;
  top: 53%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* With-label horizontal layout: icon + label on same row */
.icon-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.icon-label-wrapper .icon-with-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disabled-panel {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(0.6);
}

.th-setting-row-text {
  margin-top: 10px;
}

.placehold-input input {
  border: none;
  border-bottom: 1px solid black;
  outline: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.placehold-input input:focus {
  border: none;
  border-bottom: 1px solid #0b59f4; /* Optional: change color on focus */
  outline: none;
  box-shadow: none;
}

.placehold-label {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

.floating-input:focus + .placehold-label,
.floating-input:not(:placeholder-shown) + .floating-label {
  top: 0;
  left: 8px;
  z-index: 1;
  font-size: 12px;
}

.placehold-wrapper input {
  border: none !important;
  border-bottom: 1px solid black !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.placehold-wrapper input:focus {
  border-bottom: 1px solid #0b59f4;
  outline: none;
  box-shadow: none;
}

.placehold-label {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
  background: none !important;
}

.floating-input:focus + .placehold-label,
.floating-input:not(:placeholder-shown) + .placehold-label {
  top: 0;
  left: 8px;
  font-size: 12px;
  z-index: 1;
}

.log-out-menu-integration .setting-row {
  width: 100%;
}

.th-login-out-menu-inetgration {
  width: 100%;
}

.log-out-menu-integration .under-small-portion {
  flex-direction: column;
}

.log-out-menu-integration .th-login-logout-integration {
  flex-direction: row !important;
  width: 90%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
  .th-preview-container.layout-slide_in_left .th-form-preview,
  .th-preview-container.layout-slide_in_right .th-form-preview {
    width: 55% !important;
  }
  .deisgn-layout-adjust .accordion-body .th-layout-picker {
    grid-template-columns: repeat(2, 1fr);
  }
  .design-card {
    flex: 1 1 100%;
  }
  .deisgn-settings-select-icon-place {
    padding: 16px;
  }
  .settings-label-with-deisgn {
    gap: 20px;
    flex-direction: column;
  }
  .woocommerce-card {
    padding: 16px;
  }
  .pending-users-list {
    padding: 12px;
  }
  .admin-container {
    flex-direction: column;
    gap: 20px;
  }
  .admin-sidebar {
    width: 100%;
    max-height: none;
    position: relative;
    top: 0;
  }
  .admin-content {
    width: 100%;
  }
  .redirection-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .setting-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .setting-label,
  .setting-control {
    width: 100%;
    min-width: unset;
  }
  .preview-form {
    padding: 16px;
  }
  .preview-form h3 {
    font-size: 18px;
  }
  .preview-form .preview-input,
  .preview-form .preview-button {
    width: 90%;
  }
  .form-type-options {
    justify-content: center;
  }
  .form-type-card {
    max-width: 140px;
    flex: 1 1 120px;
  }
  .thlogin-modalchoose-form {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .form-field textarea {
    min-height: 100px;
  }
  .thl-form-fields-settings .custom-tab-button {
    padding: 8px 14px;
  }
  .field-editor {
    display: block;
    gap: 20px 24px;
  }
  .custom-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .custom-tab-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .admin-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }
  .admin-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .admin-sidebar li {
    flex: 1;
    min-width: 120px;
  }
  .admin-sidebar li button {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 12px 8px;
  }
  .admin-sidebar li.active::before {
    display: none;
  }
  .design-settings-content {
    flex-direction: column;
  }
  .redirection-grid {
    grid-template-columns: 1fr;
  }
  .admin-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }
  .admin-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .admin-sidebar li {
    flex: 1;
    min-width: 120px;
  }
  .admin-sidebar li button {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 12px 8px;
  }
  .admin-sidebar li.active::before {
    display: none;
  }
  .design-settings-content {
    flex-direction: column;
  }
  .redirection-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .field-editor {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .thl-right-panel {
    max-width: 100%;
    padding: 24px;
  }
  .form-type-options {
    gap: 12px;
  }
  .form-type-card {
    flex: 1 1 100%;
    max-width: none;
  }
  .mockup-box {
    min-height: 70px;
  }
  .form-type-label {
    font-size: 12px;
  }
  .form-type-description {
    font-size: 10px;
  }
  .thlogin-modalchoose-form {
    padding: 16px;
  }
  .form-field textarea {
    min-height: 90px;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .notice-banner {
    margin-left: 0;
    width: 100%;
  }
  .redirection-grid {
    grid-template-columns: 1fr;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 13px;
  }
  .section-title {
    font-size: 18px;
  }
  .add-rule-button,
  .customizer-button {
    width: 100%;
    justify-content: center;
  }
  .th-preview-container.layout-popup .th-form-preview {
    width: 90%;
    padding: 20px;
  }
  .thlogin-prevuiew-form-toggle {
    flex-direction: column;
    gap: 14px;
  }
  .woocommerce-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .layout-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .deisgn-layout-adjust .accordion-body .th-layout-picker {
    grid-template-columns: 1fr;
  }
  .design-options-wrapper {
    flex-direction: column;
  }
  .design-card {
    padding: 16px;
  }
  .th-modal-preview-wrapper,
  .th-modal-preview {
    padding: 10px;
  }
  .preview-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .thloginpreview-cancel {
    top: 10px;
    right: 10px;
  }
  .input-wrap input {
    padding-left: 40px !important;
  }
  .design-label-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cutsom-tabs-inside-panel {
    margin-top: 20px;
  }
  .modern-sleect-heaidng {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .modern-sleect-heaidng .modern-select-control {
    width: 100% !important;
    margin-right: 0 !important;
  }
  .modern-sleect-heaidng .modern-select-trigger {
    margin-top: 6px;
  }
  .preview-overlay {
    height: 200px;
  }
  .preview-form h3 {
    font-size: 16px;
  }
  .preview-form .preview-input,
  .preview-form .preview-button {
    width: 100%;
    height: 34px;
    font-size: 14px;
  }
  .custom-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .custom-tabs::-webkit-scrollbar {
    display: none;
  }
  .custom-tab-button {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13.5px;
    padding: 7px 14px;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .notice-banner {
    margin-left: 0;
    width: 100%;
  }
  .setting-row {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  .setting-label,
  .setting-control {
    width: 100%;
    min-width: auto;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions button {
    width: 100%;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .notice-banner {
    margin-left: 0;
    width: 100%;
  }
  .setting-row {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  .setting-label,
  .setting-control {
    width: 100%;
    min-width: auto;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .admin-header {
    padding: 0 16px;
  }
  .settings-card {
    padding: 20px;
  }
  .section-title {
    font-size: 17px;
  }
  .form-field label {
    font-size: 12px;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    padding: 8px 12px;
  }
  .rule-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .admin-header h1 {
    font-size: 18px;
    gap: 8px;
  }
  .th-logo {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .section-title {
    font-size: 16px;
  }
  .add-rule-button,
  .customizer-button {
    font-size: 13px;
    padding: 8px 14px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 12px;
  }
  .group-title {
    font-size: 15px;
  }
  .custom-tab-button {
    font-size: 13px;
    padding: 6px 12px;
  }
}
@media (max-width: 480px) {
  .admin-container {
    padding: 16px;
  }
  .settings-card {
    padding: 20px;
  }
  .section-title {
    font-size: 18px;
  }
  .quick-color-controls {
    grid-template-columns: 1fr;
  }
  .save-button {
    width: 100%;
    justify-content: center;
  }
  .preview-form {
    padding: 14px;
  }
  .preview-form h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .preview-form .preview-input,
  .preview-form .preview-button {
    font-size: 13px;
    height: 32px;
  }
  .form-type-options {
    flex-direction: column;
    gap: 12px;
  }
  .form-type-card {
    width: 100%;
    padding: 10px;
  }
  .mockup-tab-row .tab {
    font-size: 9px;
    padding: 2px;
  }
  .mockup-header {
    font-size: 10px;
  }
  .thlogin-modalchoose-form {
    padding: 12px;
  }
  .form-field textarea {
    min-height: 80px;
  }
  .help-text {
    font-size: 11px;
  }
  .custom-tab-button {
    font-size: 12.5px;
    padding: 5px 10px;
  }
  .admin-container {
    padding: 16px;
  }
  .settings-card {
    padding: 20px;
  }
  .section-title {
    font-size: 18px;
  }
  .quick-color-controls {
    grid-template-columns: 1fr;
  }
  .save-button {
    width: 100%;
    justify-content: center;
  }
}
.thlogin-range-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thlogin-range-label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.th-modal-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: inherit; /* You must set background via style or class */
  filter: var(--thlogin-foreground-filter, none);
  opacity: 1;
  pointer-events: none;
  height: 100%;
  width: 100%;
}

.shortcode-copy-wrap svg {
  width: 20px;
}

.thlogin-fetch-error-overlay {
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
  padding: 0 16px;
}
.thlogin-fetch-error-overlay .error-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaea;
  animation: fadeInUp 0.3s ease-out;
}
.thlogin-fetch-error-overlay .error-box .dashicons {
  font-size: 36px;
  color: #e03131;
  margin-bottom: 16px;
  background: #fff0f0;
  border-radius: 50%;
  padding: 8px;
  display: inline-block;
}
.thlogin-fetch-error-overlay .error-box h2 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}
.thlogin-fetch-error-overlay .error-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}
.thlogin-fetch-error-overlay .error-box button.components-button {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  color: #333;
  transition: all 0.2s ease;
}
.thlogin-fetch-error-overlay .error-box button.components-button:hover {
  background-color: #f1f1f1;
  border-color: #bbb;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.save-button.saved {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

.th-preview-input:hover {
  border-color: var(--hover-input-color) !important;
}

.integration-wordpress .woocommerce-card {
  border-left: 4px solid #228be6;
}

.premium-openeer-toggle button {
  border-radius: 5px;
  background: rgba(34, 139, 230, 0.08) !important;
}

/* Premium Container */
.premium-openeer-toggle {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  padding: 10px;
  margin: 15px 0;
  border-radius: 18px;
  box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.08), inset -2px -2px 4px #ffffff, 4px 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

/* Panel */
.wordpress-toggle-options {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 22px;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top;
  transition: all 0.4s ease;
}
.wordpress-toggle-options.expanded {
  max-height: 600px;
  opacity: 1;
  padding: 22px;
  pointer-events: auto;
  transform: translateY(0);
  background: #ffffff;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.02);
  border-radius: 0 0 12px 12px;
}

/* Option Card */
.wordpress-option {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wordpress-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.04);
}
.wordpress-option label {
  font-weight: 500;
  font-size: 13px;
  color: #1e293b;
}
.wordpress-option input[type=text] {
  margin-top: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  transition: border 0.2s, box-shadow 0.2s;
}
.wordpress-option input[type=text]:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

/* Slide Option */
.wordpress-option-slide {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 3px solid #bae6fd;
  animation: slideIn 0.3s ease both;
  position: relative;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.premium-openeer-toggle {
  border-radius: 12px;
  background: #f9fafa;
  padding: 16px 20px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wordpress-option-slide {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slug-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.custom-login-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slug-preview-static {
  font-size: 14px;
  color: #9ea4a8;
  user-select: all;
  white-space: nowrap;
}

.slug-input input {
  font-size: 14px;
  padding: 6px 10px;
  height: 36px;
  min-width: 180px;
  border-radius: 4px;
  border: 1px solid #ccd0d4;
}

.slug-input {
  margin: 0;
}

@media (max-width: 480px) {
  .custom-login-url-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.th-setting-row .components-base-control {
  margin-bottom: 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.premium-openeer-toggle {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.premium-openeer-toggle .inetgration-form-type {
  display: block;
  margin: 0;
}

.smtp-image-icon img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 10px;
}

.layout-from-type-register .th-modal-preview {
  padding-top: 140px;
}

.layout-from-type-register .th-modal-preview:before {
  height: 130%;
}

.premium-openeer-toggle {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.settings-header-toggle {
  display: flex;
  justify-content: space-between;
}

/*# sourceMappingURL=admin.css.map*/