/* Top-right floating operator controls */
#userControls {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #233044;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.ctrl-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#toggleSound {
  font-size: 16px;
  border: 1px solid #0284c7;
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

#dataStatus {
  padding: 6px 12px;
  font-size: 12px;
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-danger {
  border: 1px solid #dc2626;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-success {
  border: 1px solid #10b981;
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-warning {
  border: 1px solid #d97706;
  background: linear-gradient(135deg, #d97706, #b45309);
}

.operator-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #0284c7;
  padding: 4px 10px;
  border-radius: 8px;
}

.operator-selector-wrap span {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

#operatorSelect {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

/* Master Lock Modal */
#adminAuthLockModal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
}

.lock-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 36px 40px;
  width: 360px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Fake Decoy SEO Expert Dashboard */
#fakeSeoDashboard {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #0f172a;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 999998;
  overflow-y: auto;
  padding: 30px;
  box-sizing: border-box;
}

/* Mobile Responsive Media Queries for Admin Panel Controls */
@media (max-width: 768px) {
  body {
    padding: 0 10px 20px 10px !important;
  }
  #userControls {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 99999 !important;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 8px;
    margin-bottom: 16px;
    border-radius: 0 0 12px 12px;
    border-top: none;
    border-left: none;
    border-right: none;
  }
  .ctrl-btn {
    padding: 6px 10px;
    font-size: 11px;
    flex: 1 1 auto;
    text-align: center;
  }
  #dataStatus {
    font-size: 11px;
    padding: 5px 8px;
  }
  .operator-selector-wrap {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }
  #operatorSelect {
    flex: 1;
    max-width: 200px;
  }
  .lock-card {
    width: 92% !important;
    max-width: 360px;
    padding: 24px 16px !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 6px 16px 6px !important;
  }
  #userControls {
    padding: 8px;
    gap: 6px;
  }
  .ctrl-btn {
    font-size: 10px;
    padding: 5px 6px;
  }
  .data-line {
    flex-wrap: wrap;
  }
  .data-val {
    word-break: break-all;
  }
}
