/* ==========================================================================
   XERA PRO - CLIENT CONFIG MENU STYLESHEET (1:1 with Screenshots 3, 4, 5)
   ========================================================================== */

.xera-client-frame {
  max-width: 1150px;
  margin: 0 auto;
  background: #0d0a17;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 0 50px rgba(168, 85, 247, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  position: relative;
}

/* Window Header Bar */
.client-top-bar {
  background: #110e1e;
  border-bottom: 2px solid rgba(168, 85, 247, 0.5);
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-brand .logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
}

.client-brand .pro-tag {
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 1px;
}

.client-section-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Body Layout: Left Sidebar + Right Content Area */
.client-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 600px;
}

/* Left Sidebar Menu */
.client-sidebar {
  background: #0a0812;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-item-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}

.nav-item-client:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item-client.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18) 0%, transparent 100%);
  border-left: 3px solid var(--color-primary);
  font-weight: 700;
}

.nav-item-client i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.status-connected {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary-glow);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.status-connected i {
  font-size: 0.95rem;
}

.client-ver {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Right Content Area */
.client-content-area {
  padding: 2rem 2.25rem;
  background: #0e0c18;
}

.menu-pane {
  display: none;
}

.menu-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  animation: fadeInClient 0.25s ease;
}

@keyframes fadeInClient {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* Configuration Card Box inside Xera Menu */
.config-card-box {
  background: rgba(18, 14, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  position: relative;
}

.config-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
}

.config-card-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

/* Controls Grid Inside Cards */
.controls-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Custom Checkbox Row */
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

.checkbox-row:hover {
  color: var(--color-secondary);
}

.xera-check {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.check-box-ui {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: transparent;
  font-size: 0.75rem;
}

.xera-check input[type="checkbox"]:checked + .check-box-ui {
  background: var(--color-primary);
  border-color: var(--color-primary-glow);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.xera-check input[type="checkbox"] {
  display: none;
}

/* Select Dropdown in Client Menu */
.select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0;
}

.select-row .label-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.xera-select {
  background: #161127;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  min-width: 170px;
  cursor: pointer;
  outline: none;
  transition: border 0.2s ease;
}

.xera-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* Range Slider Control Row */
.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
}

.slider-row .slider-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  width: 90px;
  text-align: right;
}

.slider-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.xera-range {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #1f1836;
  outline: none;
}

.xera-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  border: 2px solid #fff;
}

.slider-val-badge {
  background: #17122a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  min-width: 65px;
  text-align: center;
}

/* Color Customization Indicators (Screenshot 5) */
.color-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.color-picker-row span {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

.color-swatch-input {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  background-color: #ff0000;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.color-swatch-input input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  opacity: 0;
  cursor: pointer;
}

/* Buttons in Client Menu */
.btn-client-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-client-action:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}
