/* WizardContainer.css - 개선된 위자드 스타일 */

/* CSS 변수 오버라이드로 배경색 완전 통일 */
:root {
  --bg-primary: #1E1E1E !important;
  --bg-secondary: #1E1E1E !important;
  --bg-card: #1E1E1E !important;
  --bg-tertiary: #1E1E1E !important;
  --shadow-lg: none !important;
}

/* 배경색 완전 통일 및 모든 그림자/테두리 제거 */
body, 
.wizard-container,
.content-panel,
.step-indicator,
.bot-selection-panel,
.check-mark-container {
  background-color: #1E1E1E !important;
  box-shadow: none !important;
  border: none !important;
}

.wizard-container {
  max-width: 900px;
  margin: 0 auto;
  background: #1E1E1E;
  padding: 2rem;
  border-radius: 8px;
}

/* Progress Bar */
.wizard-progress {
  margin-bottom: 3rem;
}

.progress-bar {
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-info);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wizard Header */
.wizard-header h2 {
  margin-bottom: 2rem;
  color: #FFFFFF;
  text-align: center;
}

/* Steps Navigation - 중앙 정렬 및 연결선 개선 */
.wizard-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 40px;
  pointer-events: none; /* 클릭 비활성화 */
}

/* 연결선 */
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: white;
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default; /* 클릭 불가 */
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  padding: 0 15px;
  pointer-events: none; /* 클릭 비활성화 */
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3C3C3C;
  border: 2px solid #3C3C3C;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
  color: #808080;
  font-weight: 600;
}

.wizard-step.active .step-circle {
  background: #569CD6;
  border-color: #569CD6;
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(86, 156, 214, 0.4);
}

.wizard-step.completed .step-circle {
  background: #4EC9B0;
  border-color: #4EC9B0;
  color: #FFFFFF;
}

.step-icon {
  font-size: 1.5rem;
}

.wizard-step.pending .step-icon {
  filter: grayscale(100%) opacity(0.4);
}

.step-title {
  font-size: 0.8rem;
  color: #808080;
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.wizard-step.active .step-title {
  color: #569CD6;
  font-weight: 600;
}

.wizard-step.completed .step-title {
  color: #4EC9B0;
  font-weight: 500;
}

/* Wizard Content */
.wizard-content {
  background: #1E1E1E;
  border: none;
  border-radius: 16px;
  padding: 3rem;
  min-height: 500px;
  box-shadow: none;
}

/* Step Container */
.step-container {
  animation: fadeIn 0.4s ease;
  max-width: 600px;
  margin: 0 auto;
}

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

.step-header {
  margin-bottom: 3rem;
  text-align: center;
}

.step-title-main {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.step-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.step-content {
  margin-bottom: 2rem;
}

/* Form Elements 개선 */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-info);
  box-shadow: 0 0 0 4px rgba(0, 170, 255, 0.1);
  background: var(--bg-secondary);
}

.form-input:disabled, .form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-help {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Test Button 개선 */
.test-section {
  margin-top: 2.5rem;
  text-align: center;
}

.btn-test {
  padding: 14px 32px;
  background: var(--color-info);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-test:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.3);
}

.btn-test:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Info Box 개선 */
.info-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 3rem;
}

.info-box h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.info-box ol {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-box li {
  margin-bottom: 0.5rem;
}

/* Balance Info */
.balance-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
}

.balance-info h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-primary);
}

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

.asset {
  color: var(--text-secondary);
  font-weight: 500;
}

.amount {
  color: var(--color-success);
  font-weight: 600;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
}

.nav-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.nav-btn-prev {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-btn-prev:hover:not(:disabled) {
  background: var(--bg-hover);
}

.nav-btn-next {
  background: var(--color-info);
  color: white;
}

.nav-btn-next:hover:not(:disabled) {
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(0, 170, 255, 0.3);
}

.nav-btn-complete {
  background: var(--color-success);
  color: white;
}

.nav-btn-complete:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Alert Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.alert-error {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.alert-warning {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
}

.alert-info {
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid var(--color-info);
  color: var(--color-info);
}

/* Debug Info */
.debug-info {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  font-size: 0.75rem;
}

/* 섹션 구분선 제거하고 border만 사용 */
.section-divider {
  border: none;
  background: transparent;
}

/* 패널 구분이 필요한 경우 */
.content-panel {
  border: none;
  background-color: #1E1E1E;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: none;
}

/* Investment Slider Styles */
.balance-info-section {
  margin-bottom: 2rem;
  text-align: center;
}

.balance-info-section h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 0;
}

.investment-slider-section {
  margin-bottom: 2rem;
}

.investment-slider-section .form-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  display: block;
}

.slider-container {
  margin-bottom: 2rem;
}

.investment-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #4CAF50 0%, #569CD6 50%, #ff6b6b 100%);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 2rem;
}

.investment-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #569CD6;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(86, 156, 214, 0.5);
}

.investment-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #569CD6;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(86, 156, 214, 0.5);
}

.investment-slider::-webkit-slider-track {
  background: linear-gradient(to right, #4CAF50 0%, #569CD6 50%, #ff6b6b 100%);
  height: 8px;
  border-radius: 4px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
}

.slider-labels .current-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #569CD6;
  background: #1E1E1E;
  padding: 0.5rem 1rem;
  border: 2px solid #569CD6;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.direct-input {
  text-align: center;
  margin-top: 1rem;
}

.direct-input .form-input {
  font-size: 1.1rem;
  font-weight: 600;
  color: #569CD6;
}

/* Responsive */
@media (max-width: 768px) {
  .wizard-steps {
    padding: 0 20px;
  }
  
  .step-title {
    font-size: 0.7rem;
    max-width: 70px;
  }
  
  .wizard-content {
    padding: 2rem 1.5rem;
  }
}/* Sbot1Wizard.css - 플랫폼 다크 테마와 일치하는 스타일 */

/* 위저드 컨테이너 */
.sbot1-wizard-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* 위저드 헤더 */
.wizard-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-primary);
}

.wizard-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wizard-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 진행 단계 표시 */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-primary);
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.progress-step.pending .step-circle {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
  color: var(--text-muted);
}

.progress-step.active .step-circle {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.4);
}

.progress-step.completed .step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.step-info {
  text-align: center;
  max-width: 120px;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* 단계별 콘텐츠 */
.wizard-content {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  min-height: 400px;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.step-content > p {
  margin: 0 0 2rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 폼 요소들 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-primary);
  /* transition: border-color 0.2s ease; - 제거 */
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.15);
}

.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-range {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  border: 1px solid var(--border-primary);
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 자금 배분 그리드 */
.allocation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* 요약 박스들 */
.summary-box,
.info-box,
.warning-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid var(--border-primary);
}

.summary-box {
  background: var(--bg-secondary);
}

.info-box {
  background: var(--bg-secondary);
  border-color: var(--color-info);
  border-left: 4px solid var(--color-info);
}

.warning-box {
  background: var(--bg-secondary);
  border-color: var(--color-warning);
  border-left: 4px solid var(--color-warning);
}

.summary-box h4,
.info-box h4,
.warning-box h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-box h4 {
  color: var(--color-info);
}

.warning-box h4 {
  color: var(--color-warning);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-primary);
}

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

.summary-item span:first-child {
  color: var(--text-secondary);
}

.summary-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* 검토 단계 */
.review-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.review-section {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
}

.review-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-primary);
  font-size: 0.9rem;
}

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

.review-item span:first-child {
  color: var(--text-secondary);
}

.review-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* 네비게이션 */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-success {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-secondary);
}

.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-success:hover {
  background: #00c49a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.btn-success:disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 리스트 스타일 */
.info-box ul,
.warning-box ul {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.info-box li,
.warning-box li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* 특별한 값 강조 */
.summary-item span:last-child {
  color: var(--color-success);
}

.review-item span:last-child {
  color: var(--color-accent-yellow);
}

/* 입력 필드 포커스 개선 */
input[type="number"]:focus,
input[type="range"]:focus,
select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

/* 스크롤바 스타일링 */
.wizard-content::-webkit-scrollbar {
  width: 8px;
}

.wizard-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.wizard-content::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: 4px;
}

.wizard-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 반응형 */
@media (max-width: 768px) {
  .sbot1-wizard-container {
    padding: 1rem;
  }
  
  .allocation-grid,
  .review-sections {
    grid-template-columns: 1fr;
  }
  
  .wizard-progress {
    flex-direction: column;
    gap: 1rem;
  }
  
  .wizard-progress::before {
    display: none;
  }
  
  .wizard-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .wizard-header {
    padding: 1rem;
  }
  
  .wizard-content {
    padding: 1.5rem;
    min-height: 300px;
  }
}

/* 로딩 상태 */
.form-control:disabled {
  background: var(--bg-primary);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* 호버 효과 제거 - 정적 상태 유지 */
/* .form-control:hover:not(:disabled) {
  border-color: var(--border-secondary);
} */

.summary-box:hover,
.info-box:hover,
.warning-box:hover {
  border-color: var(--border-secondary);
}

/* 애니메이션 */
.wizard-content {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* 잔고 breakdown 스타일 */
.balance-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 0.375rem;
}

.balance-item.reserved {
  border-left: 3px solid var(--color-warning);
}

.balance-item.available {
  border-left: 3px solid var(--color-success);
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.balance-label .icon {
  font-size: 1rem;
}

.balance-label .bot-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.balance-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.balance-value.reserved-value {
  color: var(--color-warning);
}

.balance-value.available-value {
  color: var(--color-success);
}

.balance-divider {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0;
}.basic-settings-step {
  width: 100%;
}

.basic-settings-step h3 {
  margin-bottom: 0.5rem;
  color: #00d26a;
}

.step-description {
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Settings Container */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Setting Card */
.setting-card {
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.setting-header h4 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.required-badge {
  background: #f23645;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.value-badge {
  background: #00d26a;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.setting-description {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Text Input */
.text-input {
  width: 100%;
  background: #16213e;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: #00d26a;
}

.text-input::placeholder {
  color: #666;
}

.input-hint {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: right;
}

/* Leverage Slider */
.slider-container {
  margin-bottom: 1rem;
}

.leverage-slider {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #00d26a 0%, #ff9800 50%, #f23645 100%);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.leverage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #00d26a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leverage-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #00d26a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.8rem;
}

/* Leverage Presets */
.leverage-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preset-btn {
  background: #16213e;
  border: 1px solid #444;
  color: #fff;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: #00d26a;
  background: #1a2845;
}

.warning-message {
  color: #ff9800;
  font-size: 0.85rem;
  padding: 0.75rem;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 4px;
  border-left: 3px solid #ff9800;
}

/* Timeframe Grid */
.timeframe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.timeframe-btn {
  background: #16213e;
  border: 2px solid #444;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.timeframe-btn:hover {
  border-color: #00d26a;
  background: #1a2845;
}

.timeframe-btn.active {
  border-color: #00d26a;
  background: rgba(0, 210, 106, 0.1);
}

.timeframe-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00d26a;
}

.timeframe-label {
  font-size: 0.85rem;
  color: #888;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.btn-prev,
.btn-next {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-prev {
  background: #555;
  color: #fff;
}

.btn-prev:hover:not(:disabled) {
  background: #666;
}

.btn-next {
  background: #00d26a;
  color: #000;
  font-weight: bold;
}

.btn-next:hover:not(:disabled) {
  background: #00e676;
}

.btn-prev:disabled,
.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .timeframe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leverage-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Exchange Grid */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.exchange-btn {
  background: #1a1a2e;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  font-size: 1rem;
}

.exchange-btn:hover:not(.disabled) {
  border-color: #00d26a;
  background: #16213e;
}

.exchange-btn.active {
  border-color: #00d26a;
  background: #00d26a;
  color: #000;
  font-weight: bold;
}

.exchange-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #666;
}

.exchange-label {
  text-align: center;
}

/* Symbol Select Dropdown */
.symbol-select {
  width: 100%;
  padding: 0.75rem;
  background: #1a1a2e;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.symbol-select:hover {
  border-color: #00d26a;
}

.symbol-select:focus {
  border-color: #00d26a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.1);
}

.symbol-select option {
  background: #1a1a2e;
  color: #fff;
  padding: 0.5rem;
}

/* TP/SL Settings */
.tpsl-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.tpsl-inputs .input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tpsl-inputs .input-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-description {
  font-size: 0.85rem;
  color: #9e9e9e;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.tpsl-inputs .number-input {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s;
}

.tpsl-inputs .number-input:focus {
  outline: none;
  border-color: rgba(0, 210, 106, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.tpsl-inputs .input-unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9e9e9e;
  font-size: 0.9rem;
  pointer-events: none;
}

.tpsl-inputs .input-group {
  position: relative;
}

@media (max-width: 768px) {
  .tpsl-inputs {
    grid-template-columns: 1fr;
  }
}
.indicator-step {
  width: 100%;
}

.indicator-step h3 {
  margin-bottom: 0.5rem;
  color: #00d26a;
}

.step-description {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.indicator-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  min-height: 500px;
}

/* Panel Headers */
.panel-header {
  margin-bottom: 1rem;
}

.panel-header h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.5rem;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: #00d26a;
}

/* Available Indicators (Left Panel) */
.available-indicators {
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.indicator-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar */
.indicator-list::-webkit-scrollbar {
  width: 6px;
}

.indicator-list::-webkit-scrollbar-track {
  background: #1a1a2e;
}

.indicator-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.indicator-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.indicator-card {
  background: #16213e;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: all 0.2s;
}

.indicator-card:hover {
  border-color: #00d26a;
  background: #1a2845;
  transform: translateX(4px);
}

.indicator-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.indicator-name {
  font-weight: bold;
  color: #fff;
  font-size: 0.95rem;
}

.add-icon {
  color: #00d26a;
  font-size: 1.5rem;
  font-weight: bold;
}

.indicator-description {
  color: #888;
  font-size: 0.85rem;
}

/* Selected Indicators (Right Panel) */
.selected-indicators {
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.empty-message {
  text-align: center;
  color: #666;
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.selected-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.selected-indicator-card {
  background: #16213e;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  border: 1px solid #00d26a;
}

.selected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

.selected-name {
  font-weight: bold;
  color: #00d26a;
  font-size: 0.95rem;
}

.remove-btn {
  background: #f23645;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: #d32f3f;
}

.params-section {
  margin-bottom: 0.75rem;
}

.param-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.param-label {
  color: #aaa;
  font-size: 0.85rem;
}

.param-input,
.param-select {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.param-input:focus,
.param-select:focus {
  outline: none;
  border-color: #00d26a;
}

.param-input {
  width: 100px;
}

.param-select {
  width: 120px;
}

.indicator-id {
  color: #666;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-family: monospace;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.btn-prev,
.btn-next {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-prev {
  background: #555;
  color: #fff;
}

.btn-prev:hover:not(:disabled) {
  background: #666;
}

.btn-next {
  background: #00d26a;
  color: #000;
  font-weight: bold;
}

.btn-next:hover:not(:disabled) {
  background: #00e676;
}

.btn-prev:disabled,
.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .indicator-panels {
    grid-template-columns: 1fr;
  }

  .param-row {
    grid-template-columns: 80px 1fr;
  }
}
/* Indicator Guidance */
.indicator-guidance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.3);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #ccc;
}

.guidance-icon {
  font-size: 1.1rem;
}

.guidance-text {
  line-height: 1.4;
}
.rules-step {
  width: 100%;
}

.rules-step h3 {
  margin-bottom: 0.5rem;
  color: #00d26a;
}

.step-description {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Indicators Summary */
.indicators-summary {
  background: #1a1a2e;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #2a2a2a;
}

.indicators-summary h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.indicator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.indicator-tag {
  background: #16213e;
  color: #00d26a;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid #00d26a;
}

.warning-message {
  color: #ff9800;
  font-size: 0.9rem;
  padding: 0.5rem;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 4px;
  border-left: 3px solid #ff9800;
}

/* Add Rule Button */
.add-rule-section {
  margin-bottom: 1.5rem;
}

.btn-add-rule {
  background: #00d26a;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-rule:hover:not(:disabled) {
  background: #00e676;
  transform: translateY(-2px);
}

.btn-add-rule:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

/* Rules List */
.rules-list {
  min-height: 300px;
  margin-bottom: 2rem;
}

.empty-message {
  text-align: center;
  color: #666;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  background: #1a1a2e;
  border-radius: 8px;
  border: 1px dashed #2a2a2a;
}

/* Rule Card */
.rule-card {
  background: #1a1a2e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.rule-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.2s;
}

.rule-header:hover {
  background: #16213e;
}

.rule-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.rule-number {
  background: #00d26a;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.rule-name-input {
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-size: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  flex: 1;
  max-width: 300px;
  transition: border-color 0.2s;
}

.rule-name-input:hover {
  border-color: #444;
}

.rule-name-input:focus {
  outline: none;
  border-color: #00d26a;
  background: #16213e;
}

.rule-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rule-summary {
  color: #888;
  font-size: 0.85rem;
}

.btn-expand {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.btn-expand:hover {
  color: #00d26a;
}

.btn-remove-rule {
  background: #f23645;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-remove-rule:hover {
  background: #d32f3f;
}

/* Rule Body */
.rule-body {
  padding: 1.5rem;
}

.rule-section {
  margin-bottom: 2rem;
}

.rule-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h5 {
  color: #00d26a;
  font-size: 1rem;
  margin: 0;
}

/* Logic Selector */
.logic-selector {
  display: flex;
  gap: 0.5rem;
}

.logic-btn {
  background: #16213e;
  border: 1px solid #444;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.logic-btn:hover {
  border-color: #00d26a;
}

.logic-btn.active {
  background: #00d26a;
  color: #000;
  border-color: #00d26a;
  font-weight: bold;
}

/* Conditions/Actions Lists */
.conditions-list,
.actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.condition-item,
.action-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: #16213e;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.condition-index,
.action-index {
  color: #888;
  font-weight: bold;
  min-width: 25px;
}

.condition-select,
.operator-select,
.action-select,
.value-input {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.condition-select:focus,
.operator-select:focus,
.action-select:focus,
.value-input:focus {
  outline: none;
  border-color: #00d26a;
}

.condition-select {
  flex: 1;
  min-width: 150px;
}

.operator-select {
  min-width: 120px;
}

.action-select {
  flex: 1;
  min-width: 150px;
}

.value-input {
  max-width: 100px;
}

.action-param {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-param label {
  color: #888;
  font-size: 0.8rem;
  white-space: nowrap;
}

.param-input,
.param-input-text {
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.param-input {
  width: 160px;
}

.param-input-text {
  width: 150px;
}

.btn-remove-item {
  background: #f23645;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-remove-item:hover {
  background: #d32f3f;
}

.btn-add-item {
  background: transparent;
  border: 1px dashed #444;
  color: #888;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-add-item:hover {
  border-color: #00d26a;
  color: #00d26a;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.btn-prev,
.btn-next {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-prev {
  background: #555;
  color: #fff;
}

.btn-prev:hover:not(:disabled) {
  background: #666;
}

.btn-next {
  background: #00d26a;
  color: #000;
  font-weight: bold;
}

.btn-next:hover:not(:disabled) {
  background: #00e676;
}

.btn-prev:disabled,
.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .condition-item,
  .action-item {
    flex-wrap: wrap;
  }

  .condition-select,
  .action-select {
    min-width: 100%;
  }

  .param-input-text {
    width: 100%;
  }
}

/* Rule Execution Info Section */
.rule-execution-info {
  margin-bottom: 1.5rem;
}

.info-box {
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid #00d26a;
  border-left: 4px solid #00d26a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
}

.info-box.entry-info {
  background: rgba(0, 210, 106, 0.1);
  border-color: #00d26a;
  border-left-color: #00d26a;
}

.info-box.exit-info {
  background: rgba(242, 54, 69, 0.1);
  border-color: #f23645;
  border-left-color: #f23645;
}

.info-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}


.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-content h5 {
  color: #00d26a;
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
  font-weight: bold;
}

.info-box.exit-info .info-content h5 {
  color: #f23645;
}

.info-content ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #ccc;
  font-size: 0.9rem;
  list-style-type: disc;
}

.info-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.info-content li:last-child {
  margin-bottom: 0;
}

.info-content strong {
  color: #fff;
  font-weight: bold;
}

/* Responsive adjustments for info box */
@media (max-width: 768px) {
  .info-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .info-icon {
    font-size: 1.25rem;
  }

  .info-content h5 {
    font-size: 0.95rem;
  }

  .info-content ul {
    font-size: 0.85rem;
  }
}

/* Extract select dropdown */
.extract-select {
  background: #2a3f5f;
  border: 1px solid #00d26a;
  border-radius: 4px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 180px;
}

.extract-select:hover {
  background: #354d6f;
  border-color: #00e676;
}

.extract-select:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 0 2px rgba(0, 210, 106, 0.2);
}

/* Between separator */
.between-separator {
  color: #00d26a;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0 0.5rem;
}

/* Slot B Toggle Buttons */
.slot-b-toggle {
  display: flex;
  gap: 0.25rem;
  background: #1a1a2e;
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn:hover {
  background: #2a3f5f;
  color: #fff;
}

.toggle-btn.active {
  background: #00d26a;
  color: #000;
  font-weight: bold;
}

/* Period Label */
.period-label {
  color: #aaa;
  font-size: 0.9rem;
  padding: 0 0.5rem;
  white-space: nowrap;
}

/* ============================================================================
   Phase 3: Position Condition Section Styling
   ============================================================================ */

.position-condition-section {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.position-condition-section .section-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.position-condition-select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.position-condition-select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(99, 102, 241, 0.5);
}

.position-condition-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.position-hint {
  font-size: 12px;
  color: #a0a0a0;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid #6366f1;
  border-radius: 4px;
}

.position-params {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.position-params select {
  flex: 2;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.position-params input[type="number"] {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  text-align: right;
}

.position-params span {
  color: #a0a0a0;
  font-size: 13px;
  min-width: 20px;
}

.position-params select:hover,
.position-params input:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(99, 102, 241, 0.5);
}

.position-params select:focus,
.position-params input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Position condition dropdown option styling */
.position-condition-select option {
  background-color: #1a1a2e;
  color: #ffffff;
}

.position-condition-select option:hover {
  background-color: #2d2d44;
}

/* Condition summary text */
.condition-summary {
  flex-basis: 100%;
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  padding-left: 24px;
  font-style: italic;
  order: 999;
}

/* All select options dark background (not just position-condition-select) */
select option {
  background-color: #1a1a2e;
  color: #ffffff;
}

select option:hover {
  background-color: #2d2d44;
}

/* ============================================================================
   ✅ Step 3: Sequential Activation - Disabled States
   ============================================================================ */

/* Disabled state for all condition inputs and selects */
.condition-select:disabled,
.value-input:disabled,
.period-input:disabled,
.operator-select:disabled,
.extract-select:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  background-color: #2a2a3e !important;
  color: #666 !important;
  pointer-events: none;
}

/* Hover state should not change for disabled elements */
.condition-select:disabled:hover,
.value-input:disabled:hover,
.period-input:disabled:hover,
.operator-select:disabled:hover,
.extract-select:disabled:hover {
  background-color: #2a2a3e !important;
  border-color: #444 !important;
}

/* Visual indicator for current active step */
.condition-select:not(:disabled),
.value-input:not(:disabled),
.period-input:not(:disabled),
.operator-select:not(:disabled),
.extract-select:not(:disabled) {
  transition: all 0.2s ease;
}

/* Active (enabled) inputs should have a subtle glow */
.condition-select:not(:disabled):focus,
.value-input:not(:disabled):focus,
.period-input:not(:disabled):focus,
.operator-select:not(:disabled):focus,
.extract-select:not(:disabled):focus {
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
  border-color: #4a90e2;
}

/* Timeframe select - narrower width for short labels */
.timeframe-select {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  transition: border-color 0.2s;
  width: 160px;
  margin-left: 8px;
}

.timeframe-select:focus {
  outline: none;
  border-color: #00d26a;
}

/* ✅ Minimum Order Warning */
.min-order-warning {
  color: #ff9800;
  font-size: 0.75rem;
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 4px;
  border-left: 2px solid #ff9800;
}
.summary-step {
  width: 100%;
}

.summary-step h3 {
  margin-bottom: 0.5rem;
  color: #00d26a;
}

.step-description {
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Summary Container */
.summary-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Summary Card */
.summary-card {
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.summary-card-title {
  color: #00d26a;
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-label {
  color: #888;
  font-size: 0.85rem;
}

.summary-value {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
}

/* Indicator List */
.indicator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.indicator-badge {
  background: #16213e;
  color: #00d26a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid #00d26a;
}

.empty-text {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* Rules List */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rule-summary {
  background: #16213e;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.rule-summary-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

.rule-index {
  background: #00d26a;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.rule-name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
}

.rule-summary-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rule-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-summary-label {
  color: #888;
  font-size: 0.85rem;
}

.rule-summary-value {
  color: #fff;
  font-size: 0.85rem;
}

/* Validation Warning */
.validation-warning {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid #ff9800;
  border-radius: 8px;
  padding: 1.5rem;
}

.validation-warning h4 {
  color: #ff9800;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.validation-warning ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #ff9800;
}

.validation-warning li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.validation-warning li:last-child {
  margin-bottom: 0;
}

/* Ready Message */
.ready-message {
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid #00d26a;
  border-radius: 8px;
  padding: 1.5rem;
}

.ready-message h4 {
  color: #00d26a;
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}

.ready-message p {
  color: #888;
  margin: 0;
  font-size: 0.9rem;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.btn-prev,
.btn-complete {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-prev {
  background: #555;
  color: #fff;
}

.btn-prev:hover:not(:disabled) {
  background: #666;
}

.btn-complete {
  background: #00d26a;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.75rem 3rem;
}

.btn-complete:hover:not(:disabled) {
  background: #00e676;
  transform: scale(1.05);
}

.btn-prev:disabled,
.btn-complete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
.bot-builder-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: #fff;
}

.bot-builder-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #00d26a;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 15px;
  background: #1a1a2e;
  border-radius: 8px;
}

.step-indicator span {
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.step-indicator span.active {
  color: #00d26a;
  font-weight: bold;
  background: rgba(0, 210, 106, 0.1);
}

.step-content-wrapper {
  min-height: 600px;
  margin-bottom: 20px;
}

.step-content {
  background: #16213e;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.step-content h3 {
  margin-bottom: 15px;
  color: #fff;
}

.step-content button {
  margin-right: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.step-content button:last-child {
  background: #00d26a;
  color: #fff;
}

.cancel-btn {
  background: #f23645;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.cancel-btn:hover {
  background: #d32f3f;
}/* BotCard - 봇 카드 컴포넌트 (Compact) */

.bot-card {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 6px;
}

/* 상태 인디케이터 바 (왼쪽) */
.bot-card-status-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

/* 카드 컨텐츠 */
.bot-card-content {
  padding: 6px 10px;
  padding-left: 14px; /* 상태바 공간 확보 */
}

/* 축소 상태 카드 */
.bot-card-collapsed {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-card-collapsed:hover {
  border-color: rgba(0, 212, 170, 0.3);
  background: #202020;
}

/* 확장 상태 카드 */
.bot-card-expanded {
  border: 2px solid rgba(0, 212, 170, 0.5);
}

.bot-card-expanded .bot-card-content {
  padding: 12px 14px;
  padding-left: 18px;
}

/* 헤더 */
.bot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}

.bot-card-strategy {
  font-size: 15px;
  font-weight: 700;
  color: #00d4aa;
  margin-bottom: 1px;
  line-height: 1.2;
}

.bot-card-name {
  font-size: 12px;
  color: #888;
  line-height: 1.2;
}

.bot-card-status-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

/* 설정 요약 */
.bot-card-summary {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 2px;
  line-height: 1.3;
}

/* PNL 표시 */
.bot-card-pnl {
  margin-bottom: 2px;
}

.bot-card-pnl-value {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  line-height: 1.2;
}

/* 자세히 버튼 */
.bot-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.bot-card-detail-btn {
  background: transparent;
  border: none;
  color: #00d4aa;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 0;
  transition: opacity 0.2s ease;
}

.bot-card-detail-btn:hover {
  opacity: 0.7;
}

/* 닫기 버튼 */
.bot-card-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.bot-card-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
}

/* 섹션 */
.bot-card-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-card-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.bot-card-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

/* 설정 그리드 */
.bot-card-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.config-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
}

.config-value {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

/* 총 PNL */
.bot-card-total-pnl {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.total-pnl-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.total-pnl-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
}

/* 포지션 */
.bot-card-positions {
  margin-top: 10px;
}

.positions-title {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.position-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 6px;
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.position-symbol {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.position-side {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.position-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.position-detail {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.position-detail span:first-child {
  color: #888;
}

.position-detail span:last-child {
  color: #fff;
  font-weight: 500;
  font-family: 'Fira Code', monospace;
}

/* 통계 그리드 */
.bot-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 10px;
  color: #888;
}

.stat-value {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

/* 로딩/에러 상태 */
.bot-card-loading,
.bot-card-no-data {
  text-align: center;
  padding: 16px;
  color: #666;
  font-size: 12px;
}

/* 컨트롤 버튼 영역 */
.bot-card-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* 축소 상태 컨트롤 버튼 */
.bot-card-controls-compact {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
  justify-content: flex-start;
}

.bot-control-btn-compact {
  min-width: 56px;
  height: 22px;
  padding: 0 8px;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.bot-control-btn-compact:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bot-control-btn {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bot-control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-pause {
  background: #ffc107;
  color: #000;
}

.btn-pause:hover:not(:disabled) {
  background: #ffb300;
}

.btn-resume {
  background: #00d4aa;
  color: #000;
}

.btn-resume:hover:not(:disabled) {
  background: #00c199;
}

.btn-stop {
  background: #6c757d;
  color: #fff;
}

.btn-stop:hover:not(:disabled) {
  background: #5a6268;
}

.btn-emergency {
  background: #ff3366;
  color: #fff;
}

.btn-emergency:hover:not(:disabled) {
  background: #ff1a4d;
}
/* SidebarTabs.css - 하이브리드 구조 */
.sidebar-tabs {
  /* width: 320px; ← 제거: JavaScript 인라인 스타일이 우선되도록 */
  min-width: 280px;
  max-width: 500px;
  background: #000;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  flex-shrink: 0; /* 크기 고정 */
}

/* 리사이즈 핸들 */
.resize-handle {
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: transparent;
  cursor: ew-resize;
  z-index: 20;
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.resize-handle:hover,
.resize-handle.dragging {
  border-left-color: rgba(34, 197, 94, 0.3);
}

.resize-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 30px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.resize-handle:hover::after,
.resize-handle.dragging::after {
  opacity: 1;
}

/* 고정 가격 섹션 (상단) - 컴팩트하게 조정 */
.fixed-price-section {
  height: 38%; /* 잔고만 표시하므로 줄임 */
  min-height: 220px; /* 최소 높이 조정 */
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 고정 가격 섹션 헤더 - 패딩 줄이기 */
.fixed-price-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;  /* 0.5rem 1rem → 0.4rem 0.75rem */
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #22c55e;
  font-weight: 600;
  font-size: 0.85rem;
}

.price-icon {
  font-size: 1.1rem;
}

.price-title {
  flex: 1;
}

.fixed-price-content {
  flex: 1;
  overflow-y: auto;
}

.fixed-price-content .price-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  height: 100%;
}

.fixed-price-content .panel-header {
  display: none; /* 이미 위에 헤더가 있으므로 숨김 */
}

/* 탭 섹션 (하단) - 높이 조정 */
.tab-section {
  height: 62%; /* 잔고 섹션이 줄어서 다시 늘림 */
  display: flex;
  flex-direction: column;
}

/* 탭 헤더 - 탭 섹션 내부 */
.tab-section .tab-header {
  display: flex;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

/* 탭 버튼 - 패딩 줄이기 */
.tab-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem;  /* 0.6rem 0.4rem → 0.5rem 0.3rem */
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #d1d5db;
}

.tab-button.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

/* 네온 그린 언더라인 */
.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #10b981);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }
  to {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  }
}

.tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tab-label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* 탭 컨텐츠 - 탭 섹션 내부 */
.tab-section .tab-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 탭 패널 자체도 패딩 제거 */
.tab-section .tab-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0;  /* 패딩 제거 */
  margin: 0;  /* 마진 제거 */
  animation: fadeIn 0.3s ease-in-out;
}

/* empty-state도 여백 최적화 */
.sidebar-tabs .tab-section .tab-panel .empty-state {
  text-align: center;
  padding: 1.5rem 0.5rem !important;  /* 상하는 유지, 좌우만 줄임 */
  margin: 0 !important;
  border: none !important;
  color: #999;
  background: transparent;
}

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

/* 탭 패널 내부의 봇 패널 - 모든 여백과 테두리 강제 제거 */
.sidebar-tabs .tab-section .tab-panel .bot-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tab-section .tab-panel .pnl-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 패널 헤더 확실히 숨기기 */
.sidebar-tabs .tab-section .tab-panel .panel-header {
  display: none !important;
}

/* 봇 리스트도 여백 제거 */
.sidebar-tabs .tab-section .tab-panel .bot-list {
  max-height: none !important;
  height: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* SidebarTabs 내 그리드 오더 패널 - 테두리와 여백 완전 제거 */
.sidebar-tabs .tab-section .tab-panel .grid-orders-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* 그리드 오더 패널 내 empty 상태도 최적화 */
.sidebar-tabs .tab-section .tab-panel .grid-orders-panel .empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem !important;
  margin: 0 !important;
  border: none !important;
}

/* 주문이 있을 때 리스트도 최적화 */
.sidebar-tabs .tab-section .tab-panel .orders-list {
  padding: 0 !important;
  margin: 0 !important;
  flex: 1;
  overflow-y: auto;
}

/* 개별 주문 아이템 */
.sidebar-tabs .tab-section .tab-panel .order-item {
  padding: 0.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* SidebarTabs 내 PnL 패널 스크롤 */
.tab-section .tab-panel .pnl-panel .pnl-content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 반응형 */
@media (max-width: 1200px) {
  .sidebar-tabs {
    width: 280px;
  }
  
  .tab-icon {
    font-size: 1.1rem;
  }
  
  .tab-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 968px) {
  .sidebar-tabs {
    width: 100%;
    height: auto;
    max-height: 500px;
    flex-direction: row;
  }
  
  .fixed-price-section {
    width: 50%;
    height: 100%;
    border-right: 1px solid #444;
    border-bottom: none;
  }
  
  .tab-section {
    width: 50%;
    height: 100%;
  }
  
  .tab-section .tab-header {
    justify-content: center;
  }
  
  .tab-button {
    flex: 0 1 auto;
    min-width: 80px;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  .sidebar-tabs {
    max-height: 300px;
  }
  
  .tab-button {
    flex-direction: row;
    gap: 0.5rem;
    min-width: 100px;
  }
  
  .tab-icon {
    font-size: 1rem;
  }
  
  .tab-label {
    font-size: 0.8rem;
  }
}

/* InfoPanel 섹션 */
.info-panel-section {
  flex: 0 0 300px; /* 고정 높이 */
  min-height: 300px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

/* InfoPanel 내부 스타일링 */
.info-panel-section .info-panel {
  height: 100%;
}
/* Bot Cards Container */
.bot-cards-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.empty-subtext {
  font-style: normal;
  font-size: 13px;
  color: #888;
}
/* OrdersTablePanel - 차트와 나레이션 사이 주문 패널 */
.orders-table-panel {
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  height: 100%;
  max-height: 300px;
}

/* 헤더 */
.orders-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.orders-table-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.orders-ws-indicator {
  color: #00d4aa;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 3px;
}

.orders-loading-indicator {
  color: #ffaa00;
  font-size: 11px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 테이블 컨테이너 */
.orders-table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}

/* 빈 상태 */
.orders-table-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 13px;
  padding: 40px 20px;
}

/* 테이블 */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

/* 고정 헤더 */
.orders-table thead {
  position: sticky;
  top: 0;
  background: #2a2a2a;
  z-index: 10;
}

.orders-table th {
  padding: 8px 10px;
  text-align: left;
  color: #888;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

/* 테이블 바디 */
.orders-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.orders-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.orders-table td {
  padding: 8px 10px;
  color: #cccccc;
  white-space: nowrap;
}

/* 시간 컬럼 */
.orders-table-time {
  color: #888;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
}

/* 심볼 컬럼 */
.orders-table-symbol {
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
}

/* 방향 컬럼 (BUY/SELL) */
.orders-table-side {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

/* 가격 컬럼 */
.orders-table-price {
  font-family: 'Fira Code', monospace;
  color: #ffffff;
  font-size: 12px;
}

/* 수량 컬럼 */
.orders-table-amount {
  font-family: 'Fira Code', monospace;
  color: #cccccc;
  font-size: 12px;
}

/* 체결 컬럼 */
.orders-table-filled {
  font-family: 'Fira Code', monospace;
  color: #cccccc;
  font-size: 11px;
}

/* 상태 배지 */
.orders-status-badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

/* 상태별 색상 (점 없이 글자색만) */
.orders-status-badge.status-pending {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.15);
}

.orders-status-badge.status-open {
  color: #00aaff;
  background: rgba(0, 170, 255, 0.15);
}

.orders-status-badge.status-partial {
  color: #ff8800;
  background: rgba(255, 136, 0, 0.15);
}

.orders-status-badge.status-filled {
  color: #00d4aa;
  background: rgba(0, 212, 170, 0.15);
}

.orders-status-badge.status-canceled {
  color: #999999;
  background: rgba(153, 153, 153, 0.15);
}

.orders-status-badge.status-rejected {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.15);
}

.orders-status-badge.status-expired {
  color: #888888;
  background: rgba(136, 136, 136, 0.15);
}

/* 타입 컬럼 */
.orders-table-type {
  color: #888;
  font-size: 11px;
}

/* 스크롤바 스타일 (다크모드) */
.orders-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.orders-table-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.orders-table-container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.orders-table-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* NarrativePanel.css - 봇 내러티브 패널 스타일 */

.narrative-panel {
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  height: 100%;
  overflow: hidden;
}

/* 빈 상태 */
.empty-narrative {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

/* 새로운 내러티브 컨테이너 (채팅 스타일) */
.narrative-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

/* 상단 고정 마켓 정보 바 */
.market-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.market-prices {
  display: flex;
  gap: 12px;
  align-items: center;
}

.price-item {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.price-item.high {
  color: var(--success-color);
}

.price-item.low {
  color: var(--error-color);
}

.price-item.current {
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

.price-item.current.price-up {
  color: var(--success-color);
  animation: flash-green 0.5s ease-out;
}

.price-item.current.price-down {
  color: var(--error-color);
  animation: flash-red 0.5s ease-out;
}

/* LIVE 인디케이터 */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success-color);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.live-text {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--success-color);
  letter-spacing: 1px;
}

/* 채팅 스타일 내러티브 */
.narrative-chat {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  max-height: 200px;
  min-height: 120px;
  background: #000;
  border-radius: 8px;
  scroll-behavior: smooth;
}

.chat-message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #000000;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--accent-primary);
  animation: slideIn 0.3s ease-out;
}

.chat-timestamp {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  opacity: 0.7;
}

.chat-message {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
}

/* 순수 내러티브 텍스트 스타일 (백업용) */
.narrative-text {
  background: #000;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 4px solid var(--accent-color);
  margin-bottom: 12px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-description {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 헤더 */
.narrative-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.narrative-panel-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.narrative-live-indicator {
  color: #00d4aa;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 3px;
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-id {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.bot-strategy-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}



.refresh-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.refresh-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 로딩 상태 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  text-align: center;
}

.loading-spinner {
  font-size: 2rem;
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

/* 에러 상태 */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--error-color);
  text-align: center;
}

.error-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.error-message {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.retry-btn {
  background: var(--error-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: #ff1a4d;
  transform: translateY(-1px);
}

/* 내러티브 콘텐츠 */
.narrative-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 상태 섹션 */
.status-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-badge {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 신뢰도 미터 */
.confidence-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 150px;
}

.confidence-meter label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.confidence-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.confidence-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.confidence-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  min-width: 35px;
}

/* 섹션 공통 스타일 */
.situation-section,
.action-section,
.sentiment-section,
.warnings-section {
  background: var(--bg-tertiary);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.situation-text,
.action-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* 시장 감정 */
.sentiment-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sentiment-badge.bullish {
  background: rgba(0, 255, 136, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.sentiment-badge.bearish {
  background: rgba(255, 51, 102, 0.2);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.sentiment-badge.neutral {
  background: rgba(136, 136, 136, 0.2);
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

/* 경고 */
.warning-item {
  background: rgba(255, 51, 102, 0.1);
  color: var(--error-color);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--error-color);
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.warning-item:last-child {
  margin-bottom: 0;
}

/* 빠른 통계 */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat-item label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-item value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
}

.stat-item value.positive {
  color: var(--success-color);
}

.stat-item value.negative {
  color: var(--error-color);
}

.stat-item value.running {
  color: var(--success-color);
}

.stat-item value.error {
  color: var(--error-color);
}

/* 마지막 업데이트 */
.last-update {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* 봇 액션 */
.bot-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
  text-align: center;
}

.action-btn.pause {
  background: var(--warning-color);
  color: var(--bg-primary);
}

.action-btn.pause:hover {
  background: #ffa500;
  transform: translateY(-1px);
}

.action-btn.stop {
  background: var(--error-color);
  color: white;
}

.action-btn.stop:hover {
  background: #ff1a4d;
  transform: translateY(-1px);
}

.action-btn.details {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.action-btn.details:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* 스크롤바 스타일 */
.narrative-panel::-webkit-scrollbar,
.narrative-chat::-webkit-scrollbar {
  width: 4px;
}

.narrative-panel::-webkit-scrollbar-track,
.narrative-chat::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 2px;
}

.narrative-panel::-webkit-scrollbar-thumb,
.narrative-chat::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.narrative-panel::-webkit-scrollbar-thumb:hover,
.narrative-chat::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* 애니메이션 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(0.95);
  }
}


@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@keyframes flash-green {
  0% {
    background-color: rgba(0, 255, 136, 0.3);
    transform: scale(1);
  }
  50% {
    background-color: rgba(0, 255, 136, 0.6);
    transform: scale(1.05);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

@keyframes flash-red {
  0% {
    background-color: rgba(255, 51, 102, 0.3);
    transform: scale(1);
  }
  50% {
    background-color: rgba(255, 51, 102, 0.6);
    transform: scale(1.05);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

/* Platform/Strategy 구분 표시 */
.narrative-details {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.narrative-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.narrative-section .section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.platform-narrative {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  padding: 6px 10px;
  background: rgba(0, 212, 170, 0.1);
  border-left: 3px solid #00d4aa;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.strategy-narrative {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  padding: 6px 10px;
  background: rgba(108, 99, 255, 0.1);
  border-left: 3px solid #6c63ff;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .narrative-panel {
    padding: 16px;
  }

  .status-section {
    flex-direction: column;
    align-items: stretch;
  }

  .confidence-meter {
    min-width: auto;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }

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

  .narrative-details {
    padding: 8px;
  }

  .platform-narrative,
  .strategy-narrative {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
}/* BottomPanels - 주문 패널 + 나레이션 통합 */
.bottom-panels {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1a1a1a;
  overflow: hidden;
}

.orders-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.narrative-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

/* 수평 리사이즈 핸들 */
.resize-handle-horizontal {
  height: 6px;
  background: transparent;
  cursor: ns-resize;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s ease;
}

.resize-handle-horizontal:hover {
  background: rgba(0, 212, 170, 0.3);
}

.resize-handle-horizontal.dragging {
  background: rgba(0, 212, 170, 0.5);
}

/* 핸들 중앙 표시선 */
.resize-handle-horizontal::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.resize-handle-horizontal:hover::after,
.resize-handle-horizontal.dragging::after {
  background: #00d4aa;
  width: 60px;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.close-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

.current-selection {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 6px;
}

.current-selection span {
  padding: 4px 8px;
  background: #333;
  border-radius: 4px;
  color: #00d4aa;
  font-size: 12px;
}

.current-context-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.current-context-tags .tag {
  padding: 4px 12px;
  background: #2d3748;
  border-radius: 12px;
  font-size: 12px;
  color: #a0aec0;
  font-weight: 500;
}

.current-context-tags .exchange-tag {
  background: #1a365d;
  color: #63b3ed;
}

.current-context-tags .symbol-tag {
  background: #234e52;
  color: #4fd1c5;
}

.current-context-tags .timeframe-tag {
  background: #44337a;
  color: #b794f4;
}

.balance-display {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  color: #9ca3af;
  font-size: 14px;
}

.balance-amount {
  font-size: 24px;
  font-weight: bold;
  color: #00d4aa;
}

.previous-configs h3,
.templates h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
}

.config-card {
  padding: 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.config-card:hover {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.05);
  transform: translateX(5px);
}

.config-card.selected {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.1);
  box-shadow: 0 0 0 1px #00d4aa inset;
}

.config-card.selected::before {
  content: '✓';
  position: absolute;
  right: 15px;
  top: 15px;
  color: #00d4aa;
  font-size: 18px;
  font-weight: bold;
}

.config-info {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
  align-items: center;
}

.config-info span {
  color: #fff;
  font-size: 14px;
}

.config-info .pnl {
  color: #00d4aa;
  font-weight: bold;
  margin-left: auto;
}

.config-meta {
  color: #9ca3af;
  font-size: 12px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.template-btn {
  padding: 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.template-btn:hover {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.05);
}

.template-icon {
  font-size: 24px;
}

.template-name {
  font-weight: 600;
  font-size: 14px;
}

.template-desc {
  font-size: 12px;
  color: #9ca3af;
}

.input-section {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #00d4aa;
}

.leverage-buttons {
  display: flex;
  gap: 10px;
}

.leverage-btn {
  flex: 1;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.leverage-btn:hover {
  border-color: #666;
}

.leverage-btn.active {
  background: #00d4aa;
  border-color: #00d4aa;
  color: #000;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 10px;
  color: #ef4444;
  font-size: 14px;
  margin-top: 15px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary {
  background: #00d4aa;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: #00b894;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #555;
  border-color: #777;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 반응형 */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}/* InfoPanel.css */

.info-panel {
  background: transparent;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 탭 헤더 */
.info-panel-tabs {
  display: flex;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px 6px 0 0;
  padding: 2px;
  margin-bottom: 0.5rem;
}

.tab-button {
  flex: 1;
  padding: 0.375rem 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.tab-button.active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-weight: 600;
}

/* 탭 컨텐츠 */
.info-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 시장 타입 헤더 */
.market-header {
  padding: 0.5rem 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin: 0;
}

.market-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.market-type .timeframe {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.market-type .type {
  color: #22c55e;
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 4px;
}

/* 섹션 타이틀 */
.info-panel .section-title,
.technical-indicators .section-title,
.market-bot-section .section-title {
  font-size: 14px !important;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 기술적 지표 섹션 */
.technical-indicators {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 1rem !important;
  margin: 0 !important;
  margin-top: 0.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  padding-left: 0.75rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}

.indicator-row::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.indicator-row:last-child {
  border-bottom: none;
}

.indicator-name {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.indicator-value {
  color: #fff;
  font-weight: 600;
  font-family: 'Fira Code', 'Courier New', monospace;
  transition: color 0.3s ease;
}

.indicator-value.up {
  color: #22c55e;
}

.indicator-value.down {
  color: #ef4444;
}

.indicator-desc {
  color: #fff;  /* rgba(255, 255, 255, 0.5) → 흰색으로 변경 */
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.25rem;
}

.indicator-desc.oversold {
  color: #22c55e;
}

.indicator-desc.overbought {
  color: #ef4444;
}

/* 고래 알림 */
.whale-alert {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  padding: 0.375rem;
  margin-top: 0.375rem;
}

.whale-alert .indicator-name {
  color: #3b82f6;
}

.whale-alert .indicator-value {
  color: #3b82f6;
  font-weight: 700;
}

/* 주요 일정 섹션 */
.upcoming-events {
  margin-top: 16px;
}

.upcoming-events .section-title {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-row:last-child {
  border-bottom: none;
}

.event-date {
  color: #ffffff;
  font-size: 14px;
  width: 45px;
}

.event-title {
  flex: 1;
  color: #ffffff;
  font-size: 14px;
  margin-left: 8px;
}

.event-impact {
  font-size: 12px;
  margin-left: auto;
}

/* 봇 추천 섹션 */
.market-bot-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 1rem !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-item,
.bot-item-button {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bot-item:hover:not(.disabled),
.bot-item-button:hover:not(.disabled) {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.bot-item.disabled,
.bot-item-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bot-item.disabled:hover,
.bot-item-button.disabled:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.bot-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.375rem;
}

.bot-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 400;
}

.bot-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  transition: width 0.5s ease;
  border-radius: 3px;
}

.bot-item.disabled .score-fill {
  background: linear-gradient(90deg, #666, #999);
}

.score-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #22c55e;
  min-width: 40px;
  text-align: right;
}

.bot-item.disabled .score-text {
  color: #999;
}

/* 스크롤바 스타일 */
.info-panel-content::-webkit-scrollbar {
  width: 6px;
}

.info-panel-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.info-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.info-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 반응형 */
@media (max-width: 1200px) {
  .info-panel-tabs {
    padding: 1px;
  }

  .tab-button {
    padding: 0.25rem 0.375rem;
    font-size: 0.8125rem;
  }

  .market-type {
    font-size: 1rem;
  }

  .indicator-row {
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    padding-left: 0.875rem;
  }

  .bot-name {
    font-size: 0.875rem;
  }
}/* AccountInfoWidget.css - PricePanel 스타일 재사용 */
.account-info-widget {
  background: transparent;
  padding: 0.5rem 0; /* 좌우 패딩 제거 (PricePanel이 이미 패딩 있음) */
  margin-top: 0.5rem; /* 위쪽 여백 축소 */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* 구분선 */
  color: #fff;
  position: relative;
}

/* 새로고침 버튼 회전 애니메이션 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* price-item 클래스는 PricePanel에서 상속받아 사용 */
.account-info-widget .price-item {
  padding-top: 0.5rem;
}

.account-info-widget .price-symbol {
  font-size: 0.875rem;
  color: #22c55e;
  font-weight: 600;
}

.account-info-widget strong {
  color: #fff;
  font-weight: 700;
}

/* 정보 섹션 */
.info-section {
  margin-bottom: 0.5rem; /* 더 줄이기 */
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 포지션과 주문 섹션 숨기기 (공간 절약) */
.info-section:nth-child(2),
.info-section:nth-child(3) {
  display: none; /* 일단 숨기고 나중에 탭에서 보기 */
}

/* 헤더 */
.info-header {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem; /* 헤더-내용 간격 축소 */
}

.info-icon {
  font-size: 1rem;
  display: inline-block;
  width: 20px; /* 고정 너비로 정렬 */
  text-align: center;
}

.info-label {
  font-size: 0.875rem; /* PricePanel과 동일한 크기 */
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 내용 */
.info-content {
  display: flex;
  gap: 1rem; /* Total과 Avail 나란히 */
  padding-left: 0;
}

.info-row {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.875rem; /* 일관된 크기 */
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-key {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem; /* 키 크기 통일 */
}

.info-value {
  color: #fff;
  font-size: 1rem; /* 가격과 동일한 크기 */
  font-weight: 700; /* 더 굵게 */
  font-family: 'Fira Code', 'Courier New', monospace;
  transition: all 0.3s ease;
}

/* PnL 색상 */
.info-value.profit {
  color: #22c55e;
}

.info-value.loss {
  color: #ef4444;
}

/* 업데이트 애니메이션 - PricePanel과 동일 */
.value-updated {
  animation: valueUpdate 0.5s ease;
}

@keyframes valueUpdate {
  0% {
    color: #22c55e;
  }
  100% {
    color: inherit;
  }
}

/* 연결 상태 표시 */
.connection-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 8px;
  height: 8px;
}

.connection-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.connection-indicator.connected .connection-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

.connection-indicator.disconnected .connection-dot {
  background: #666;
  opacity: 0.5;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

/* 호버 효과 */
.info-section:hover .info-label {
  color: #10b981;
}

/* 반응형 */
@media (max-width: 1200px) {
  .account-info-widget {
    padding: 0.5rem 0.75rem;
  }

  .info-section {
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
  }

  .info-content {
    padding-left: 0;
  }

  .info-row {
    font-size: 0.8rem;
  }

  .info-value {
    font-size: 0.875rem;
  }
}/* EventScroller - 경제 일정 스크롤러 */

.event-scroller-container {
  height: 24px;
  overflow: hidden;
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.event-item {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
}

.event-item-fade {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-emoji {
  font-size: 10px;
}

.event-date {
  color: #888;
  font-weight: 600;
}

.event-title {
  color: #fff;
  font-weight: 500;
}
/* CryptoDashboard.css */
:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #000000;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --accent-primary: #00d4aa;
  --accent-secondary: #10b981;
  --border-color: rgba(255, 255, 255, 0.3);
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #fbbf24;
}

.crypto-dashboard {
  min-height: 100vh;
  background: #000;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* 헤더 */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* 차트 컨트롤 */
.chart-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-select {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
}

.control-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.timeframe-buttons {
  display: flex;
  gap: 0.25rem;
}

.timeframe-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.timeframe-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.timeframe-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}

.new-bot-btn {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.new-bot-btn:hover {
  background: #059669;
}

.btn-icon {
  font-size: 1.125rem;
  font-weight: 700;
}

/* 메인 레이아웃 */
.dashboard-content {
  display: flex;
  height: calc(100vh - 80px);
  position: relative;
  background: #000;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0; /* 수직 리사이즈 핸들이 gap 역할 */
  min-height: 0; /* flex item이 제대로 줄어들 수 있도록 */
  min-width: 0; /* flex item이 제대로 줄어들 수 있도록 */
}

/* 차트 영역 - 동적 크기 조정 */
.chart-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* height는 인라인 스타일로 동적 설정 - min-height 제거 */
}

/* 수직 리사이즈 핸들 */
.horizontal-resize-handle {
  height: 6px;
  background: transparent;
  cursor: ns-resize;
  position: relative;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
}

.horizontal-resize-handle:hover,
.horizontal-resize-handle.dragging {
  border-top-color: rgba(34, 197, 94, 0.3);
  border-bottom-color: rgba(34, 197, 94, 0.3);
}

.horizontal-resize-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 3px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.horizontal-resize-handle:hover::after,
.horizontal-resize-handle.dragging::after {
  opacity: 1;
}

/* Narrative 섹션 - 동적 크기 */
.main-content .narrative-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* height는 인라인 스타일로 동적 설정 - min-height 제거 */
}

/* 사이드바는 이제 SidebarTabs 컴포넌트에서 처리하므로 주석 처리 */
/*
.sidebar {
  width: 280px;
  background: #2a2a2a;
  border-left: 1px solid #444;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
}
*/

/* 패널 공통 스타일 - 테두리 제거, 패딩 최적화 */
.price-panel,
.pnl-panel {
  background: #000;
  border: none;  /* 테두리 제거 */
  border-radius: 0;  /* 둥근 모서리 제거 */
  overflow: hidden;
  padding: 0;  /* 기본 패딩 제거 */
}

/* 가격 리스트 - 패딩 줄이기 */
.price-list {
  padding: 0.25rem;  /* 0.5rem → 0.25rem */
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.25rem;  /* 0.75rem 0.5rem → 0.5rem 0.25rem */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease;
}

.price-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

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

.price-symbol {
  font-size: 0.875rem;
  font-weight: 600;
}

.price-details {
  text-align: right;
}

.price-value {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

/* 실시간 가격 변동 색상 */
.price-value.price-up {
  color: #22c55e !important;
}

.price-value.price-down {
  color: #ef4444 !important;
}

.price-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.price-change.up {
  color: #10b981;
}

.price-change.down {
  color: #ef4444;
}


/* P&L 컨텐츠 - 패딩 줄이기 */
.pnl-content {
  padding: 0.75rem;  /* 1rem → 0.75rem */
}

.pnl-main {
  margin-bottom: 1rem;
}

.pnl-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.pnl-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Monaco', 'Menlo', monospace;
}

.pnl-stats {
  margin-bottom: 1rem;
}

.stat-row {
  display: flex;
  gap: 1rem;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item .stat-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.bot-pnl-list {
  margin-bottom: 1rem;
}

.bot-pnl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.bot-pnl-item:last-child {
  border-bottom: none;
}

.bot-pnl-name {
  color: #d1d5db;
}

.bot-pnl-value {
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 600;
}

.panel-footer {
  text-align: center;
}

.bot-stop-btn {
  width: 100%;
  background: #000;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.bot-stop-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-text {
  font-size: 0.75rem;
  color: #999;
}

/* Narrative 셉션 - 기본 스타일만 (높이는 동적 설정) */
.narrative-section {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* min-height 제거 - 동적 height와 충돌 방지 */
}

/* 설정 패널 리사이즈 핸들 */
.config-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: transparent;
  cursor: ew-resize;
  z-index: 10;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.config-resize-handle:hover,
.config-resize-handle.dragging {
  border-left-color: rgba(34, 197, 94, 0.3);
  border-right-color: rgba(34, 197, 94, 0.3);
}

.config-resize-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 30px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.config-resize-handle:hover::after,
.config-resize-handle.dragging::after {
  opacity: 1;
}

/* 설정 요약 섹션 */
.config-summary-section {
  background: #000;  /* var(--bg-primary) → #000 직접 지정 */
  border-left: 1px solid rgba(255, 255, 255, 0.3);  /* 직접 지정 */
  border-top: 1px solid rgba(255, 255, 255, 0.3);   /* 위쪽 테두리 추가 */
  padding: 0;  /* 1rem → 0으로 변경 */
  padding-left: 0.5rem; /* 리사이즈 핸들 공간만 확보 */
  overflow-y: auto;
}

/* 반응형 - SidebarTabs 대응 */
/* 노트북까지는 기본 레이아웃 유지 (줌 사용 권장) */

/* 태블릿 이하에서만 레이아웃 조정 */
@media (max-width: 768px) {
  .dashboard-content {
    flex-direction: column;
  }
  
  .config-summary-section {
    display: none; /* 태블릿/모바일에서는 설정 패널 숨김 */
  }
  
  .sidebar-tabs {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .chart-section {
    height: 400px; /* 차트 높이 축소 */
  }
}


/* Grid Orders Panel - 테두리 제거, 패딩 최적화 */
.orders-panel {
  background: #000;
  border: none !important;  /* 테두리 완전 제거 */
  border-radius: 0;
  padding: 0;  /* 패딩 제거 */
  margin: 0;  /* 마진 제거 */
  font-family: 'Inter', sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 주문 상태별 통계 - 여백 최적화 */
.order-stats-section {
  margin: 0;  /* 마진 제거 */
  padding: 0.5rem;
  background: transparent;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.order-stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;  /* gap 줄이기 */
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.stat-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
}

.stat-value.pending { color: #ffaa00; }
.stat-value.filled { color: #00d4aa; }
.stat-value.cancelled { color: #666; }
.stat-value.total { color: #ffffff; }

/* 주문 섹션 */
.orders-section {
  margin-top: 0.75rem;
  padding: 0;
}

.orders-section .order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 6px;
  transition: background 0.2s;
}

.orders-section .order-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.order-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-side {
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

.order-price {
  font-family: 'Fira Code', monospace;
  color: #fff;
  font-size: 13px;
}

.order-amount {
  color: #888;
  font-size: 12px;
}

.order-status .status-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.order-status .status-badge.pending {
  background: rgba(255, 170, 0, 0.2);
  color: #ffaa00;
}

.order-status .status-badge.filled {
  background: rgba(0, 212, 170, 0.2);
  color: #00d4aa;
}

.order-status .status-badge.cancelled {
  background: rgba(102, 102, 102, 0.2);
  color: #666;
}

.orders-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.orders-panel .panel-header .panel-icon {
  font-size: 18px;
  margin-right: 8px;
}

.orders-panel .panel-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.orders-panel .base-price {
  color: #888;
  font-size: 12px;
  font-family: 'Fira Code', monospace;
}

.orders-panel .orders-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* empty 상태 - 공간 최대 활용 */
.orders-panel .empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
  margin: 0;
  color: #999;
  background: transparent;
  border: none;
}

.orders-panel .empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.orders-panel .empty-text {
  font-size: 14px;
  font-weight: 500;
}

.orders-panel .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
}

.orders-panel .section-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.orders-panel .section-count {
  color: #888;
  font-size: 12px;
}

.orders-panel .orders-list {
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.orders-panel .order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: #2a2a2a;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.orders-panel .order-item:hover {
  background: #333;
}

.orders-panel .order-item.closest {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.orders-panel .level-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.orders-panel .level-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  min-width: 30px;
}

.orders-panel .level-price {
  color: #888;
  font-size: 12px;
  font-family: 'Fira Code', monospace;
}

.orders-panel .order-status {
  display: flex;
  align-items: center;
}

.orders-panel .status-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.orders-panel .order-summary {
  padding: 12px;
  background: #222;
  border-radius: 6px;
  border: 1px solid #333;
}

.orders-panel .summary-section {
  margin-bottom: 12px;
}

.orders-panel .summary-section:last-child {
  margin-bottom: 0;
}

.orders-panel .summary-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #333;
}

.orders-panel .summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.orders-panel .summary-item:last-child {
  margin-bottom: 0;
}

.orders-panel .summary-label {
  color: #888;
  font-size: 11px;
}

.orders-panel .summary-value {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

.orders-panel .summary-value.pending {
  color: #00d4aa;
}

.orders-panel .summary-value.filled {
  color: #ffaa00;
}

.orders-panel .summary-value.closest {
  color: #22c55e;
}

.orders-panel .summary-value.available {
  color: #00d4aa;
}

.orders-panel .summary-value.used {
  color: #888;
}

.orders-panel .summary-value.cancelled {
  color: #ff6b6b;
}

.orders-panel .narrative-list {
  margin-top: 8px;
}

.orders-panel .narrative-item {
  margin-bottom: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid #00d4aa;
}

.orders-panel .narrative-item:last-child {
  margin-bottom: 0;
}

.orders-panel .narrative-message {
  font-size: 11px;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 2px;
}

.orders-panel .narrative-time {
  font-size: 9px;
  color: #666;
  font-family: 'Fira Code', monospace;
}

/* 새로운 섹션 스타일 */
.orders-panel .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
}

.orders-panel .loading-icon {
  font-size: 24px;
  margin-bottom: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.orders-panel .positions-section,
.orders-panel .channel-section {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.orders-panel .section-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-panel .position-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 8px;
  border-left: 3px solid #00d4aa;
}

.orders-panel .position-item:last-child {
  margin-bottom: 0;
}

.orders-panel .position-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orders-panel .position-side {
  font-weight: 600;
  font-size: 12px;
}

.orders-panel .position-size {
  color: #cccccc;
  font-size: 11px;
  font-family: 'Fira Code', monospace;
}

.orders-panel .position-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.orders-panel .position-price {
  color: #888;
  font-size: 11px;
  font-family: 'Fira Code', monospace;
}

.orders-panel .position-pnl {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

.orders-panel .position-pnl.positive {
  color: #00d4aa;
}

.orders-panel .position-pnl.negative {
  color: #ff3366;
}

.orders-panel .channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 0;
}

.orders-panel .channel-item:last-child {
  margin-bottom: 0;
}

.orders-panel .channel-label {
  color: #888;
  font-size: 12px;
}

.orders-panel .channel-value {
  color: #ffffff;
  font-size: 12px;
  font-family: 'Fira Code', monospace;
}

.orders-panel .channel-position {
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.orders-panel .channel-position.upper {
  color: #ff3366;
}

.orders-panel .channel-position.lower {
  color: #00d4aa;
}

.orders-panel .channel-position.middle {
  color: #ffaa00;
}.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.login-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.login-message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.login-message.info {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #90caf9;
}

.login-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.login-content {
  margin-bottom: 30px;
}

.google-login-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.loading-spinner {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 16px;
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 30px 0;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.login-divider span {
  position: relative;
  padding: 0 20px;
  background: white;
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.demo-info {
  text-align: center;
}

.demo-info p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
}

.demo-btn {
  width: 100%;
  padding: 12px 24px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-btn:hover {
  background: #e8e8e8;
  border-color: #bbb;
}

.login-footer {
  text-align: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.security-note,
.privacy-note {
  margin: 8px 0;
  font-size: 12px;
  color: #888;
}

.security-note {
  font-weight: 500;
  color: #4caf50;
}

/* Error shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Responsive design */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 14px;
  }
}.pricing-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
  color: white;
}

.pricing-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-header p {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 20px;
}

.user-info {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.recommended {
  border: 3px solid #667eea;
  transform: scale(1.05);
}

.pricing-card.recommended:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card.selected {
  border: 3px solid #4caf50;
}

.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.plan-name {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.price {
  font-size: 48px;
  font-weight: 700;
  color: #667eea;
}

.duration {
  font-size: 20px;
  color: #666;
}

.plan-features {
  flex-grow: 1;
  margin-bottom: 30px;
}

.plan-features h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #555;
  font-size: 15px;
}

.check-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  color: #4caf50;
}

.limitations-title {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.limitations li {
  color: #999;
  font-size: 14px;
}

.x-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  flex-shrink: 0;
  color: #ff5252;
}

.select-plan-btn {
  width: 100%;
  padding: 16px 32px;
  background: #f5f5f5;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.select-plan-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.select-plan-btn.recommended-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.select-plan-btn.recommended-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.pricing-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  color: white;
}

.pricing-notes,
.pricing-faq {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
}

.pricing-notes h3,
.pricing-faq h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
}

.pricing-notes ul {
  list-style: none;
  padding: 0;
}

.pricing-notes li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  opacity: 0.95;
}

.pricing-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: white;
}

.faq-item p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: backwards;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .pricing-card.recommended {
    transform: scale(1);
  }

  .pricing-card.recommended:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .pricing-header h1 {
    font-size: 36px;
  }

  .pricing-footer {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 36px;
  }

  .pricing-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .pricing-container {
    padding: 20px 10px;
  }

  .pricing-header h1 {
    font-size: 28px;
  }

  .pricing-header p {
    font-size: 16px;
  }

  .plan-name {
    font-size: 24px;
  }

  .price {
    font-size: 32px;
  }
}.setup-api-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.setup-api-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 100%;
  padding: 40px;
  animation: slideUp 0.5s ease-out;
}

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

.setup-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.setup-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.setup-header p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.selected-plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.exchange-selector {
  margin-bottom: 40px;
}

.exchange-selector h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.exchange-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.exchange-card:hover {
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.exchange-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.exchange-logo {
  font-size: 36px;
}

.exchange-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.exchange-info p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.api-form {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.form-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.guide-link {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid #667eea;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.guide-link:hover {
  background: #667eea;
  color: white;
}

.form-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
}

.form-notice strong {
  color: #856404;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.form-notice ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-notice li {
  color: #856404;
  font-size: 13px;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.form-notice li::before {
  content: "•";
  position: absolute;
  left: 5px;
}

.form-fields {
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  font-family: 'Monaco', 'Courier New', monospace;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.toggle-visibility-btn {
  background: none;
  border: 1px solid #ddd;
  color: #666;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-visibility-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.test-result {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideDown 0.3s ease-out;
}

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

.test-result.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.test-result.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.result-icon {
  font-size: 24px;
}

.result-content {
  flex: 1;
}

.result-content p {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.balance-info {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.form-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.test-btn,
.continue-btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.test-btn {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #e0e0e0;
}

.test-btn:hover:not(:disabled) {
  background: #e0e0e0;
  border-color: #999;
}

.continue-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.continue-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.test-btn:disabled,
.continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.skip-option {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.skip-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.skip-btn:hover {
  color: #667eea;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .setup-api-card {
    padding: 30px 20px;
  }

  .setup-header h1 {
    font-size: 28px;
  }

  .exchange-grid {
    grid-template-columns: 1fr;
  }

  .form-buttons {
    grid-template-columns: 1fr;
  }

  .form-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .setup-api-container {
    padding: 20px 10px;
  }

  .setup-api-card {
    padding: 20px 15px;
  }

  .setup-header h1 {
    font-size: 24px;
  }

  .api-form {
    padding: 20px;
  }
}.mypage-container {
  min-height: 100vh;
  background: #1a1a1a;
  color: #fff;
}

/* 헤더 */
.mypage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #222;
  border-bottom: 1px solid #333;
}

.header-left h1 {
  font-size: 28px;
  margin: 0;
}

.breadcrumb {
  font-size: 14px;
  color: #888;
}

.breadcrumb span:first-child:hover {
  color: #00d4aa;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.user-info .email {
  font-size: 14px;
  font-weight: 500;
}

.user-info .plan {
  font-size: 12px;
  color: #888;
}

.logout-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
}

/* 탭 메뉴 */
.tab-menu {
  display: flex;
  gap: 8px;
  padding: 20px 40px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  color: #888;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: #555;
}

.tab-btn.active {
  background: #00d4aa;
  color: #000;
  border-color: #00d4aa;
  font-weight: 600;
}

/* 탭 컨텐츠 */
.tab-content {
  padding: 40px;
}

.loading {
  text-align: center;
  padding: 60px;
  font-size: 16px;
  color: #888;
}

.empty-message {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 14px;
}

/* 거래 내역 */
.history-content h2 {
  margin: 0 0 30px 0;
  font-size: 24px;
}

.trade-table {
  width: 100%;
  border-collapse: collapse;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
}

.trade-table th {
  background: #2a2a2a;
  padding: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #333;
}

.trade-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid #333;
}

.trade-table tr:last-child td {
  border-bottom: none;
}

.trade-table .buy {
  color: #00d4aa;
  font-weight: 600;
}

.trade-table .sell {
  color: #ff4757;
  font-weight: 600;
}

/* PnL 분석 */
.pnl-content h2 {
  margin: 0 0 30px 0;
  font-size: 24px;
}

.pnl-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.pnl-card {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.pnl-card h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #888;
  font-weight: 500;
}

.pnl-card .amount {
  font-size: 24px;
  font-weight: 700;
}

.pnl-card .amount.positive {
  color: #00d4aa;
}

.pnl-card .amount.negative {
  color: #ff4757;
}

/* API 키 관리 */
.api-content h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
}

.add-api-btn {
  background: #00d4aa;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.add-api-btn:hover {
  background: #00b894;
  transform: translateY(-1px);
}

.api-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-item {
  background: #222;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-info .exchange {
  font-size: 16px;
  font-weight: 600;
}

.api-info .status.valid {
  color: #00d4aa;
}

.api-info .status.invalid {
  color: #ff4757;
}

.api-date {
  font-size: 12px;
  color: #888;
}

/* 구독 관리 */
.subscription-content h2 {
  margin: 0 0 30px 0;
  font-size: 24px;
}

.current-plan {
  background: #222;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #333;
}

.current-plan h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.plan-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: #00d4aa;
}

.upgrade-btn {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 내 설정 템플릿 */
.templates-content h2 {
  margin: 0 0 30px 0;
  font-size: 24px;
}

.templates-content .trade-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.templates-content .template-details {
  background: #2a2a2a !important;
}

.templates-content .template-details:hover {
  background: #2a2a2a !important;
}

.templates-content .config-details h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #00d4aa;
}

.templates-content .config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.templates-content .config-grid div {
  font-size: 14px;
}

.templates-content .config-grid strong {
  color: #888;
  margin-right: 8px;
}

/* 계정 설정 */
.settings-content h2 {
  margin: 0 0 30px 0;
  font-size: 24px;
}

.settings-section {
  background: #222;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #333;
  margin-bottom: 20px;
}

.settings-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .label {
  font-size: 14px;
  color: #888;
  min-width: 100px;
}

.info-row .value {
  font-size: 14px;
  font-weight: 500;
}

/* 반응형 */
@media (max-width: 768px) {
  .mypage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .tab-menu {
    padding: 20px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tab-content {
    padding: 20px;
  }

  .pnl-summary {
    grid-template-columns: 1fr;
  }
}

/* API 키 수정 버튼 */
.edit-api-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #374151;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.edit-api-btn:hover {
  background: #4b5563;
}/* ConfigViewModal.css */

.config-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.config-modal-container {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.config-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.config-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.strategy-description {
  margin: 8px 0 0 0;
  font-size: 0.875rem;
  color: #a0a0b0;
  font-weight: 400;
}

.config-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #a0a0b0;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.config-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.config-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.config-json-container {
  background: #16161e;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.config-json {
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0e0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* JSON Syntax Highlighting (simple) */
.config-json {
  color: #e0e0e0;
}

.config-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.config-modal-footer button {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-copy {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
}

.btn-copy:hover {
  background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Scrollbar Styling */
.config-modal-body::-webkit-scrollbar {
  width: 8px;
}

.config-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.config-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.config-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .config-modal-container {
    width: 95%;
    max-height: 90vh;
  }

  .config-modal-header {
    padding: 20px;
  }

  .config-modal-header h2 {
    font-size: 1.25rem;
  }

  .config-modal-body {
    padding: 16px 20px;
  }

  .config-json {
    font-size: 12px;
  }

  .config-modal-footer {
    padding: 16px 20px;
    flex-direction: column;
  }

  .config-modal-footer button {
    width: 100%;
  }
}
/* Landing Page Styles */

.landing-page {
  min-height: 100vh;
  background: #0a0e27;
  color: #fff;
}

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff9f43;
  letter-spacing: 2px;
}

.nav-login-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 2px solid #ff9f43;
  color: #ff9f43;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-login-btn:hover {
  background: #ff9f43;
  color: #0a0e27;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 159, 67, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  color: #ff9f43;
  -webkit-text-fill-color: #ff9f43;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a0a0a0;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  padding: 1rem 3rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff9f43 0%, #ff8c00 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 159, 67, 0.3);
}

.hero-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 159, 67, 0.4);
}

/* Introduction Section */
.intro-section {
  padding: 6rem 2rem;
  background: #0f1420;
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
}

.intro-column {
  padding: 2rem;
}

.intro-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff9f43;
  margin-bottom: 2rem;
  letter-spacing: 3px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b0b0b0;
}

/* Features Section */
.features-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #fff 0%, #ff9f43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff9f43;
  box-shadow: 0 12px 32px rgba(255, 159, 67, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #a0a0a0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 2rem;
  background: #0f1420;
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 159, 67, 0.3);
}

.testimonial-rating {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ff9f43;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 0.875rem;
  color: #808080;
  font-weight: 600;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.premium {
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-color: #ff9f43;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff9f43;
  color: #0a0e27;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-tier {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
}

.pricing-price {
  margin-bottom: 2rem;
  color: #ff9f43;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
}

.price-period {
  font-size: 1rem;
  color: #808080;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: #b0b0b0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: rgba(255, 159, 67, 0.2);
  border: 2px solid #ff9f43;
  color: #ff9f43;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pricing-btn:hover {
  background: #ff9f43;
  color: #0a0e27;
  transform: translateY(-2px);
}

.pricing-btn.premium {
  background: #ff9f43;
  color: #0a0e27;
}

.pricing-btn.premium:hover {
  background: #ff8c00;
}

/* Footer */
.landing-footer {
  background: #060812;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ff9f43;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #808080;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #606060;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-heading {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding: 1rem;
  }
}
/* Admin Dashboard Styles */

.admin-dashboard {
  min-height: 100vh;
  background: #0a0a0a;
  color: #fff;
}

/* ===== Header ===== */
.admin-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 2px solid #00d4aa;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 212, 170, 0.1);
}

.admin-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
}

.admin-logo h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #00d4aa 0%, #00a3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #00d4aa;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.user-role {
  font-size: 12px;
  color: #00d4aa;
  font-weight: 500;
}

.btn-secondary {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #4b5563;
  border-color: #6b7280;
}

.btn-logout {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #b91c1c;
}

/* ===== Main Content ===== */
.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4aa 0%, #00a3ff 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.2);
  border-color: rgba(0, 212, 170, 0.3);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-icon {
  font-size: 32px;
}

.stat-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-body {
  margin-bottom: 16px;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}

.stat-number.profit {
  color: #00d4aa;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.stat-item .label {
  color: #6b7280;
  font-weight: 500;
}

.stat-item .value {
  color: #d1d5db;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.stat-item .value.success {
  color: #00d4aa;
}

.stat-action {
  width: 100%;
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.3);
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.stat-action:hover {
  background: rgba(0, 212, 170, 0.2);
  border-color: #00d4aa;
}

/* ===== Activity Section ===== */
.activity-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.btn-link {
  background: none;
  border: none;
  color: #00d4aa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-link:hover {
  color: #00a3ff;
  text-decoration: underline;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.activity-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.activity-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 212, 170, 0.3);
}

.activity-label {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 8px;
  font-weight: 500;
}

.activity-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  font-family: 'Courier New', monospace;
}

.activity-value.success {
  color: #00d4aa;
}

/* ===== Quick Actions ===== */
.quick-actions-section {
  margin-bottom: 40px;
}

.quick-actions-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-action-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.2);
  border-color: rgba(0, 212, 170, 0.5);
}

.quick-action-btn.super-admin {
  border-color: rgba(255, 193, 7, 0.3);
}

.quick-action-btn.super-admin:hover {
  border-color: rgba(255, 193, 7, 0.7);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.action-icon {
  font-size: 48px;
}

.action-label {
  font-size: 16px;
  font-weight: 600;
  color: #d1d5db;
}

/* ===== Loading & Error States ===== */
.admin-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #0a0a0a;
  color: #fff;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #333;
  border-top: 4px solid #00d4aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.admin-error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #0a0a0a;
  color: #fff;
  gap: 20px;
  padding: 40px;
  text-align: center;
}

.error-icon {
  font-size: 64px;
}

.admin-error h2 {
  font-size: 32px;
  margin: 0;
}

.admin-error p {
  color: #dc2626;
  font-size: 16px;
}

.retry-btn {
  background: #00d4aa;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: #00a389;
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .admin-header-content {
    flex-direction: column;
    gap: 16px;
  }

  .admin-header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.admin-users {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.back-button {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.back-button:hover {
  background: #4b5563;
}

.admin-header h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.users-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
}

.search-box input:focus {
  outline: none;
  border-color: #00d4aa;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-controls label {
  color: #9ca3af;
  font-size: 0.875rem;
}

.filter-controls select {
  padding: 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

.refresh-button {
  padding: 0.75rem 1.5rem;
  background: #00d4aa;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.refresh-button:hover {
  background: #00b894;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-size: 1.125rem;
}

.users-table-container {
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead {
  background: #111827;
}

.users-table th {
  padding: 1rem;
  text-align: left;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.users-table tbody tr {
  border-bottom: 1px solid #374151;
  transition: background 0.2s;
}

.users-table tbody tr:hover {
  background: #374151;
}

.users-table td {
  padding: 1rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-user {
  background: #374151;
  color: #9ca3af;
}

.role-admin {
  background: #3b82f6;
  color: #fff;
}

.role-super_admin {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.role-select {
  padding: 0.5rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.activate-btn,
.deactivate-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.activate-btn {
  background: #10b981;
  color: #fff;
}

.activate-btn:hover {
  background: #059669;
}

.deactivate-btn {
  background: #ef4444;
  color: #fff;
}

.deactivate-btn:hover {
  background: #dc2626;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: #4b5563;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  color: #9ca3af;
  font-size: 0.875rem;
}
.log-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1a1a2e;
  border-radius: 8px;
  overflow: hidden;
}

.log-viewer-controls {
  padding: 1rem;
  background: #16213e;
  border-bottom: 1px solid #2a2a3e;
}

.log-type-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.log-type-btn {
  padding: 0.5rem 1rem;
  background: #2a2a3e;
  color: #fff;
  border: 1px solid #3a3a4e;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.log-type-btn:hover {
  background: #3a3a4e;
  border-color: #6366f1;
}

.log-type-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  font-weight: 600;
}

.log-filters {
  margin-top: 0.5rem;
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.8rem;
  color: #aaa;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem;
  background: #2a2a3e;
  color: #fff;
  border: 1px solid #3a3a4e;
  border-radius: 4px;
  font-size: 0.9rem;
}

.filter-group input {
  min-width: 150px;
}

.btn-apply,
.btn-refresh {
  padding: 0.5rem 1rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-apply:hover {
  background: #059669;
}

.btn-refresh {
  background: #3b82f6;
}

.btn-refresh:hover {
  background: #2563eb;
}

.log-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.log-loading,
.log-error,
.log-empty {
  text-align: center;
  padding: 2rem;
  color: #aaa;
}

.log-error {
  color: #ef4444;
}

.log-lines {
  display: flex;
  flex-direction: column;
}

.log-line {
  display: flex;
  padding: 0.25rem 0;
  border-bottom: 1px solid #2a2a3e;
}

.log-line:hover {
  background: #2a2a3e;
}

.log-line-number {
  flex-shrink: 0;
  width: 50px;
  color: #666;
  text-align: right;
  padding-right: 1rem;
  user-select: none;
}

.log-line-content {
  flex: 1;
  color: #f8f8f2;
  word-break: break-all;
  white-space: pre-wrap;
}

.log-footer {
  padding: 0.5rem 1rem;
  background: #16213e;
  border-top: 1px solid #2a2a3e;
  font-size: 0.85rem;
  color: #aaa;
}
.admin-user-detail {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 2rem;
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.5rem;
  background: #1f2937;
  border-radius: 8px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 2rem;
  color: #9ca3af;
  font-weight: 600;
}

.user-info h1 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 1.5rem;
}

.user-email {
  margin: 0 0 0.5rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.tabs-container {
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
}

.tab-list {
  display: flex;
  background: #111827;
  border-bottom: 1px solid #374151;
  overflow-x: auto;
}

.tab {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: #d1d5db;
  background: #1f2937;
}

.tab.active {
  color: #00d4aa;
  border-bottom-color: #00d4aa;
  background: #1f2937;
}

.tab-content {
  padding: 2rem;
}

.tab-panel h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 1.5rem 0;
}

.tab-panel h3 {
  color: #d1d5db;
  font-size: 1rem;
  margin: 2rem 0 1rem 0;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: #111827;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #374151;
}

.metric-label {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.metric-value {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.metric-change,
.metric-sub {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Risk Alerts */
.risk-alerts {
  background: #1f1300;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.risk-alerts h3 {
  margin-top: 0;
  color: #f59e0b;
}

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Chart */
.chart-container {
  background: #111827;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #374151;
}

.chart-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-style: italic;
}

/* Bots List */
.bots-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.bot-card {
  background: #111827;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #374151;
}

.bot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bot-header h4 {
  margin: 0;
  color: #fff;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-running {
  background: #10b981;
  color: #fff;
}

.status-stopped {
  background: #6b7280;
  color: #fff;
}

.status-error {
  background: #ef4444;
  color: #fff;
}

.bot-info {
  color: #9ca3af;
  font-size: 0.875rem;
}

.bot-info > div {
  margin-bottom: 0.5rem;
}

/* Tables */
.history-table {
  width: 100%;
  border-collapse: collapse;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
}

.history-table th {
  background: #0d1117;
  padding: 1rem;
  text-align: left;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.875rem;
}

.history-table td {
  padding: 1rem;
  border-top: 1px solid #374151;
  color: #d1d5db;
  font-size: 0.875rem;
}

.history-table tbody tr:hover {
  background: #1f2937;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.buy {
  background: #10b981;
  color: #fff;
}

.badge.sell {
  background: #ef4444;
  color: #fff;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.setup-card {
  background: #111827;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #374151;
}

.setup-card h4 {
  margin: 0 0 1rem 0;
  color: #fff;
}

.setup-stats,
.setup-config {
  margin-bottom: 1rem;
}

.setup-stats > div,
.setup-config > div {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Logs */
.logs-list {
  max-height: 600px;
  overflow-y: auto;
}

.log-entry {
  padding: 1rem;
  border-left: 3px solid #374151;
  margin-bottom: 1rem;
  background: #111827;
  border-radius: 4px;
}

.log-time {
  color: #6b7280;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.log-action {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.log-details {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Notes */
.notes-textarea {
  width: 100%;
  min-height: 300px;
  padding: 1rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #d1d5db;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
}

.notes-textarea:focus {
  outline: none;
  border-color: #00d4aa;
}

.save-notes-btn {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background: #00d4aa;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.save-notes-btn:hover {
  background: #00b894;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-style: italic;
}

.loading-spinner,
.error-message {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
}

.error-message {
  color: #ef4444;
}

/* QuickSetups Table */
.quicksetups-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.quicksetups-table {
  width: 100%;
  border-collapse: collapse;
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
}

.quicksetups-table thead {
  background: #374151;
}

.quicksetups-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quicksetups-table tbody tr {
  border-top: 1px solid #374151;
  transition: background-color 0.2s;
}

.quicksetups-table tbody tr:hover {
  background: #374151;
}

.quicksetups-table td {
  padding: 12px 16px;
  color: #e5e7eb;
  font-size: 0.9375rem;
}

/* Log Sub-tabs */
.log-sub-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #2a2a3e;
  padding-bottom: 0.5rem;
}

.log-sub-tabs .sub-tab {
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: #aaa;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  margin-bottom: -0.5rem;
}

.log-sub-tabs .sub-tab:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.1);
}

.log-sub-tabs .sub-tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
  font-weight: 600;
}

.server-logs-container {
  height: 600px;
  margin-top: 1rem;
}

.activity-logs-container {
  margin-top: 1rem;
}
.activity-logs {
  padding: 24px;
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
}

/* Header */
.logs-header {
  margin-bottom: 24px;
}

.logs-header h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

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

/* View Mode Selector */
.view-mode-selector {
  display: flex;
  gap: 8px;
  background: #1a1a1a;
  padding: 4px;
  border-radius: 8px;
}

.view-mode-selector button {
  padding: 8px 16px;
  background: transparent;
  color: #888;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.view-mode-selector button:hover {
  background: #2a2a2a;
  color: #fff;
}

.view-mode-selector button.active {
  background: #00d4aa;
  color: #000;
}

/* Filters */
.logs-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logs-filters input,
.logs-filters select {
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  min-width: 150px;
}

.logs-filters input:focus,
.logs-filters select:focus {
  outline: none;
  border-color: #00d4aa;
}

.logs-filters .search-btn {
  padding: 10px 20px;
  background: #00d4aa;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.logs-filters .search-btn:hover {
  background: #00ffc8;
  transform: translateY(-1px);
}

/* Stats Cards */
.logs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.stat-label {
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #00d4aa;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
  color: #888;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a2a2a;
  border-top-color: #00d4aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px;
  color: #666;
  font-size: 16px;
}

/* Table */
.logs-table {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.logs-table table {
  width: 100%;
  border-collapse: collapse;
}

.logs-table th {
  background: #0f0f0f;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a2a;
}

.logs-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #1f1f1f;
  font-size: 14px;
}

.logs-table tr:hover td {
  background: #151515;
}

.logs-table tr:last-child td {
  border-bottom: none;
}

/* Table Cells */
.time-cell {
  color: #888;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.action-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.user-id-cell code,
.ip-cell code {
  background: #0a0a0a;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #00d4aa;
}

.target-cell {
  font-size: 13px;
}

.target-cell small {
  color: #666;
  margin-right: 4px;
}

.target-cell code {
  background: #0a0a0a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #ff9800;
}

.no-target,
.no-details {
  color: #444;
}

/* Details Cell */
.details-cell details {
  cursor: pointer;
}

.details-cell summary {
  color: #00d4aa;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: #0f0f0f;
  display: inline-block;
  transition: background 0.2s;
}

.details-cell summary:hover {
  background: #1a1a1a;
}

.details-cell pre {
  background: #0a0a0a;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid #2a2a2a;
  color: #ddd;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1200px) {
  .logs-table {
    overflow-x: auto;
  }

  .logs-table table {
    min-width: 900px;
  }
}

@media (max-width: 768px) {
  .activity-logs {
    padding: 16px;
  }

  .header-controls {
    flex-direction: column;
    align-items: stretch;
  }

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

  .logs-filters input,
  .logs-filters select {
    width: 100%;
  }

  .view-mode-selector {
    width: 100%;
  }

  .view-mode-selector button {
    flex: 1;
  }

  .logs-stats {
    grid-template-columns: 1fr;
  }
}

/* ========== Activity Statistics Dashboard ========== */

.activity-stats-dashboard {
  padding: 20px 0;
}

.activity-stats-dashboard h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #00ff88;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stats-grid .stat-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.stats-grid .stat-card h3 {
  margin-bottom: 15px;
  color: #00ff88;
  font-size: 16px;
  font-weight: 600;
}

.stats-grid .stat-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-grid .stat-card li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.stats-grid .stat-card li:last-child {
  border-bottom: none;
}

.stats-grid .stat-card .count {
  color: #00ff88;
  font-weight: bold;
  font-size: 14px;
}

.stats-grid .stat-card .no-data {
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

/* Daily Chart */
.daily-chart {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 150px;
  padding: 10px 0;
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
}

.bar {
  width: 100%;
  background: #00ff88;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
  min-height: 5px;
}

.bar-item:hover .bar {
  background: #00d4ff;
  transform: scaleY(1.05);
}

.date {
  font-size: 11px;
  margin-top: 5px;
  color: #888;
  white-space: nowrap;
}

/* Responsive for stats */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .daily-chart {
    gap: 6px;
  }

  .date {
    font-size: 9px;
  }
}
.admin-bots {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.back-button {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.back-button:hover {
  background: #4b5563;
}

.admin-header h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

/* Filters Section */
.bots-controls {
  margin-bottom: 1.5rem;
}

.filters-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
}

.filter-input:focus {
  outline: none;
  border-color: #00d4aa;
}

.filter-select {
  padding: 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: #00d4aa;
}

.reset-button {
  padding: 0.75rem 1.25rem;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.reset-button:hover {
  background: #4b5563;
}

.refresh-button {
  padding: 0.75rem 1.5rem;
  background: #00d4aa;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.refresh-button:hover {
  background: #00b894;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #1f2937;
  border-radius: 6px;
  border: 1px solid #374151;
}

.total-count {
  color: #00d4aa;
  font-weight: 600;
  font-size: 0.875rem;
}

.page-info {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Error Message */
.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Loading */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-size: 1.125rem;
}

/* Table */
.bots-table-container {
  background: #1f2937;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bots-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1400px;
}

.bots-table thead {
  background: #111827;
}

.bots-table th {
  padding: 1rem;
  text-align: left;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bots-table tbody tr {
  border-bottom: 1px solid #374151;
  transition: background 0.2s;
}

.bots-table tbody tr:hover {
  background: #374151;
}

.bots-table td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Bot ID */
.bot-id-code {
  font-family: 'Courier New', monospace;
  background: #111827;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: #00d4aa;
  font-size: 0.8rem;
}

/* User Email Link */
.user-email-link {
  color: #3b82f6;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.user-email-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Exchange Badge */
.exchange-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.exchange-okx {
  background: #1e40af;
  color: #fff;
}

.exchange-binance {
  background: #f59e0b;
  color: #000;
}

.exchange-bybit {
  background: #8b5cf6;
  color: #fff;
}

/* Symbol */
.symbol-text {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-running {
  background: #10b981;
  color: #fff;
}

.status-stopped {
  background: #6b7280;
  color: #fff;
}

.status-error {
  background: #ef4444;
  color: #fff;
}

.status-paused {
  background: #f59e0b;
  color: #000;
}

.status-starting {
  background: #3b82f6;
  color: #fff;
}

.status-ending {
  background: #8b5cf6;
  color: #fff;
}

.status-unknown {
  background: #374151;
  color: #9ca3af;
}

/* DateTime */
.datetime-cell {
  color: #9ca3af;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Profit */
.profit-positive {
  color: #10b981;
  font-weight: 600;
}

.profit-negative {
  color: #ef4444;
  font-weight: 600;
}

/* Error Cell */
.error-cell details {
  cursor: pointer;
}

.error-summary {
  color: #ef4444;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.error-summary:hover {
  color: #dc2626;
}

.error-details {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #111827;
  border-radius: 4px;
  color: #fca5a5;
  font-size: 0.75rem;
  max-width: 300px;
  word-break: break-word;
}

.no-error {
  color: #6b7280;
}

/* Pause Reason */
.pause-reason-cell {
  max-width: 150px;
}

.pause-reason-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #f59e0b;
  color: #000;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: help;
}

/* Stop Reason */
.stop-reason-cell {
  max-width: 150px;
}

.stop-reason-text {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #6b7280;
  color: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: help;
}

/* Actions */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.view-btn:hover {
  background: #2563eb;
}

.stop-btn {
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.stop-btn:hover {
  background: #dc2626;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #4b5563;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
}
.admin-api-keys {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.back-button {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.back-button:hover {
  background: #4b5563;
}

.admin-header h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

/* Filters Section */
.api-keys-controls {
  margin-bottom: 1.5rem;
}

.filters-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
}

.filter-input:focus {
  outline: none;
  border-color: #00d4aa;
}

.filter-select {
  padding: 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: #00d4aa;
}

.reset-button {
  padding: 0.75rem 1.25rem;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.reset-button:hover {
  background: #4b5563;
}

.refresh-button {
  padding: 0.75rem 1.5rem;
  background: #00d4aa;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.refresh-button:hover {
  background: #00b894;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #1f2937;
  border-radius: 6px;
  border: 1px solid #374151;
}

.total-count {
  color: #00d4aa;
  font-weight: 600;
  font-size: 0.875rem;
}

.page-info {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Error Message */
.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Loading */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-size: 1.125rem;
}

/* Table */
.api-keys-table-container {
  background: #1f2937;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-keys-table {
  width: 100%;
  border-collapse: collapse;
}

.api-keys-table thead {
  background: #111827;
}

.api-keys-table th {
  padding: 1rem;
  text-align: left;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.api-keys-table tbody tr {
  border-bottom: 1px solid #374151;
  transition: background 0.2s;
}

.api-keys-table tbody tr:hover {
  background: #374151;
}

.api-keys-table td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Key ID */
.key-id-code {
  font-family: 'Courier New', monospace;
  background: #111827;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 600;
}

/* User Email Link */
.user-email-link {
  color: #3b82f6;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.user-email-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Exchange Badge */
.exchange-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.exchange-okx {
  background: #1e40af;
  color: #fff;
}

.exchange-binance {
  background: #f59e0b;
  color: #000;
}

.exchange-bybit {
  background: #8b5cf6;
  color: #fff;
}

/* Referral Badge */
.referral-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.referral-yes {
  background: #10b981;
  color: #fff;
}

.referral-no {
  color: #6b7280;
  background: transparent;
}

/* Valid Badge */
.valid-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.valid-yes {
  background: #10b981;
  color: #fff;
}

.valid-no {
  background: #ef4444;
  color: #fff;
}

/* DateTime */
.datetime-cell {
  color: #9ca3af;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #4b5563;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
}
/* App.css - 프로페셔널 다크모드 디자인 */

/* CSS 변수 - 프로 트레이딩 플랫폼 컬러 */
:root {
  /* 배경 계층 */
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: #000000;
  --bg-hover: rgba(255, 255, 255, 0.02);
  --bg-active: rgba(255, 255, 255, 0.05);
  
  /* 테두리 */
  --border-primary: rgba(255, 255, 255, 0.3);
  --border-secondary: rgba(255, 255, 255, 0.3);
  --border-focus: #0066ff;
  
  /* 텍스트 */
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-inverse: #000000;
  
  /* 브랜드 컬러 */
  --brand-primary: #0066ff;
  --brand-secondary: #0052cc;
  --brand-light: rgba(0, 102, 255, 0.1);
  
  /* 시맨틱 컬러 */
  --color-success: #00d4aa;
  --color-error: #ff3366;
  --color-warning: #ffaa00;
  --color-info: #00aaff;
  
  /* VSCode 스타일 액센트 컬러 */
  --color-accent-yellow: #ffd700;
  --color-accent-green: #00ff88;
  --color-accent-purple: #c792ea;
  --color-accent-orange: #ff9800;
  
  /* 단색으로 변경 (그라데이션 대신) */
  --gradient-primary: #0066ff;
  --gradient-success: #00d4aa;
  --gradient-card: #000000;
  
  /* 그림자 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
}

/* 전역 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* Header */
.app-header {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
}

.app-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 24px;
  color: var(--brand-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Connection Status */
.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.connection-status.connected {
  border-color: var(--color-success);
  background: rgba(0, 212, 170, 0.05);
}

.connection-status.connected .status-dot {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.connection-status.error {
  border-color: var(--color-error);
  background: rgba(255, 51, 102, 0.05);
}

.connection-status.error .status-dot {
  background: var(--color-error);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
}

/* Main Content */
.app-main {
  flex: 1;
  padding: 32px 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Dashboard Styles */
.dashboard-container {
  width: 100%;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-value.profit {
  color: var(--color-success);
}

.stat-value.loss {
  color: var(--color-error);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-action {
  flex: 1;
  padding: 12px 24px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.btn-action.primary {
  background: var(--brand-primary);
  border: none;
  color: white;
}

.btn-action.primary:hover {
  box-shadow: var(--shadow-glow);
}

/* Bot List */
.bot-list {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.bot-list-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-list-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.bot-list-content {
  padding: 20px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-state-subtext {
  font-size: 14px;
  color: var(--text-muted);
}

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

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .header-content {
    padding: 0 16px;
  }
  
  .app-main {
    padding: 24px 16px;
  }
}
/* 비활성 경고 모달 */
.inactivity-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in;
}

.inactivity-warning-modal {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  border: 2px solid #ff6b00;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 107, 0, 0.3);
}

.inactivity-warning-modal h3 {
  color: #ff6b00;
  margin-bottom: 20px;
  font-size: 24px;
}

.inactivity-warning-modal p {
  margin: 15px 0;
  color: #ccc;
  font-size: 16px;
  line-height: 1.5;
}

.inactivity-warning-modal .btn-continue {
  margin-top: 30px;
  padding: 14px 40px;
  background: #00ff88;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.inactivity-warning-modal .btn-continue:hover {
  background: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}
