/* 버튼 스타일 */
#run-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease-in-out;
  }
  
  #run-btn:hover {
    background-color: #45a049; /* hover 시 살짝 진해짐 */
  }
  
  /* 상태 텍스트 스타일 */
  #status-span {
    margin-left: 14px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
  }
  
  /* 전체 컨테이너 스타일 */
  .benchmark-container {
    margin-top: 12px;
    display: flex;
    align-items: center;
  }
  
  /* KPI 영역: 행/카드 */
  .kpi-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 12px 0;
  }
  .kpi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    min-width: 180px;
    text-align: center;
  }

  /* 섹션 타이틀 */
  .section-title {
    margin: 18px 0 8px 0;
    font-weight: 700;
    font-size: 16px;
    border-left: 4px solid #4CAF50;
    padding-left: 8px;
  }

  /* 그래프 카드 컨테이너 */
  .graph-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 8px 0;
  }

  /* 2열 그리드 (반응형) */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  @media (max-width: 1100px) {
    .grid-2 {
      grid-template-columns: 1fr;
    }
  }

  /* 컨트롤(드롭다운 등) 행 */
  .control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px 0;
  }

  /* 표 카드 컨테이너 */
  .table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 8px 0;
  }

  .rounded-tabs .tab--selected, .rounded-tabs .tab {
    border-radius: 12px 12px 0 0 !important;
  }
  .rounded-tabs .tab {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    margin-right: 6px !important;
    padding: 8px 12px !important;
  }
  .rounded-tabs .tab--selected {
    background: #ffffff !important;
    border-bottom-color: #ffffff !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  }

  /* Sidebar toggle button */
  #toggle-sidebar {
    background: none;      
    border: none;         
    padding: 0; 
    cursor: pointer;
    font-size: 22px;       
    line-height: 1;        
  }
  
  #toggle-sidebar:hover {
    opacity: 0.7;     
  }

  /* Responsive hint area (behavior handled by Dash callback) */
  
  /* Logs toggle button */
  #toggle-logs {
    background-color: #f8fafc;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.02s ease;
  }
  #toggle-logs:hover {
    background-color: #eef2f7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }
  #toggle-logs:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  }
  #toggle-logs::before {
    content: "📜";
    font-size: 14px;
    line-height: 1;
  }

  /* Detail question dropdown styling */
  .dropdown-questions .Select-control, .dropdown-questions .dash-dropdown, .dropdown-questions .Select {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  }
  .dropdown-questions .Select-control:hover {
    border-color: #9ca3af !important;
  }
  .dropdown-questions .Select--single > .Select-control .Select-value, 
  .dropdown-questions .Select-placeholder {
    padding-left: 10px !important;
    color: #374151 !important;
  }
  .dropdown-questions .Select-menu-outer {
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
    border-radius: 8px !important;
    padding: 6px !important;
  }
  .dropdown-questions .Select-option {
    padding: 10px 12px !important;
    margin: 4px 6px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
  }
  .dropdown-questions .Select-option.is-focused {
    background-color: #f3f4f6 !important;
  }
  .dropdown-questions .Select-option.is-selected {
    background-color: #e5e7eb !important;
  }

  /* Dropdown questions: show full text and add spacing between items */
  .dropdown-questions .Select-option {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important; /* hide overflow beyond clamp */
    height: auto !important;           /* no fixed height */
    line-height: 1.35 !important;
    margin: 8px 6px !important;        /* space between questions */
    padding: 10px 12px !important;
    border-radius: 6px !important;
    display: -webkit-box !important;   /* for line clamp */
    -webkit-line-clamp: 2;             /* clamp to 2 lines visually */
    line-clamp: 2;                     /* standard property */
    -webkit-box-orient: vertical;
  }
  /* Ensure selected value also wraps fully */
  .dropdown-questions .Select-value-label {
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Detail search input styling */
  #detail-search {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  #detail-search:hover {
    border-color: #9ca3af;
  }
  #detail-search:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
  }
  #detail-search::placeholder {
    color: #6b7280;
  }

  