/* /static/css/style_analysis_workflow.css */


/* =============== Main_content =============== */

/*번호 1), 2) 달기*/
.custom-list {
  list-style: none; /* 기본 불릿 없애기 */
  padding-left: 0;
  counter-reset: item;
}
.custom-list li::before {
  counter-increment: item;
  content: counter(item) ") "; /* 1) 2) 3) ... */
}


.no-bullet {
  list-style: none;
  margin: 0;     /* 기본 위아래 마진 제거 */
  padding: 0;    /* 기본 들여쓰기 제거 */
}
.no-bullet > li {
  margin: 0;     /* li 자체의 기본 마진 제거 */
  padding: 0;
}


/*code box*/
.codebox { 
  position: relative; 
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}


/* 헤더 영역 */
.codebox-header {
  display: flex;
  justify-content: space-between; /* 왼쪽 bash, 오른쪽 버튼 */
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 15px;
  color: #555;
  background: inherit;    /* codebox와 같은 배경 */
  border-bottom: 1px solid #ddd;
}


.codebox .copy-btn {
  position: static;
/*  top: 8px;
  right: 8px;*/
  width: max-content;
  white-space: nowrap;             /* ← 두 줄로 안 꺾이게 */
  display: inline-flex;            /* 가운데 정렬 */
  align-items: center;
  justify-content: center;  
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 10px;
  background: #fff;
  cursor: pointer;

  font-size: 15px;
  flex-shrink: 0;
}


.codebox pre {
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow-x: auto;          /* 가로 스크롤 */
  overflow-y: auto;          /* 세로 스크롤은 필요 시 */
  margin: 0;
  white-space: pre;
  background-color: #f5f5f5;
  word-break: normal;        /* 단어 중간 강제 개행 방지 */
  word-wrap: normal;

  font-size: 17px;
  line-height: 1.4;
}

/* (권장) 일부 테마가 code에 wrap을 걸어둘 수 있어 방지 */
.codebox code {
  white-space: inherit;
  display: inline-block;
}


/* =============== Sidebar =============== */

/* 사이드바 컨테이너 */
.rc {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  padding: 0;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

/* 상단 헤더 (Sections → 상설전시) */
.rc__header {
  padding: 12px 16px;
  background: #1f3b75;   /* 기존 메인 컬러 */
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  border-radius: 8px 8px 0 0; /* 위쪽 모서리만 둥글게 */
}

/* 패널 */
.rc__panel { margin-top: 0px; }
.rc__panel[hidden] { display: none !important; }

/* 스크롤 영역 */
.rc__scroll {
  overflow: auto;
  max-height: calc(100vh - 80px - 36px - 48px); /* 화면 높이-여백-탭높이 대략치 */
}

/* 리스트 */
.rc__list { list-style: none; margin: 0; padding: 0; }
.rc__list li { 
  margin: 0; 
}
.rc__list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 0px;
  font-size: 16px;
  color: #2c3e50;
  text-decoration: none;
  height: 64px;
  border-bottom: 1px solid #e6e8eb;

  justify-content: center;
  text-align: center;
}
.rc__list li:last-child a {
  border-bottom: none; /* 마지막 칸은 선 제거 */
}

.rc__list li a:hover { background: #f5f7fa; }

.rc__list li.is-current {
  background: #eef3ff;   /* ✅ li에 배경 적용 */
}

/* 제목류(li.is-current) 기본 스타일: 텍스트는 여전히 중앙 */
.rc__list li.is-current a {
  position: relative;        /* ::before 위치 기준 */
  display: flex;
  justify-content: center;   /* 텍스트 중앙 */
  align-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 18px;

  padding-left: 27px;
}

/* 아이콘을 무조건 왼쪽에 고정 */
.rc__list li.is-current > a::before {
  content: "▼";
  font-weight: 800;
  color: #0d6efd;
  position: absolute;
  left: 8px;                /* a의 왼쪽 여백 기준 */
  top: 50%;
  transform: translateY(-50%);
}

.rc__list li.is-center a { 
  display:flex; 
  align-items:center; 
  justify-content:flex-start; 
  text-align:left; 
  padding-left:10px;
}

/* 반응형(옵션): 모바일에서 sticky 해제 */
@media (max-width: 992px) {
  .rc { position: static; max-height: none; }
  .rc__scroll { max-height: 50vh; }
}

/* 사이드바를 viewport에 고정시킬 주체는 aside */
.aside-sticky {
  position: sticky;
  top: 120px;      /* 헤더 높이에 맞춰 조정 (예: header 90px이면 100~140px) */
  align-self: start;
  height: fit-content; /* 컬럼 높이 강제 늘어남 방지 */
  z-index: 2;      /* z 겹침 이슈 방지 */
}



/* Page contrivutors sidebar */
/* 카드 전체 박스 */
.page_contributors {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 22px;
  background-color: #fff;
  margin-top: 20px;
}

/* 제목 */
.page_contributors-header {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}

/* 각 사람 한 줄 (아이콘 + 이름) */
.contributor-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;

  width: 260px;          
  margin-left: auto;           /* 좌우 자동 마진으로 */
  margin-right: auto;          /* 카드 안에서 가운데 정렬 */
}

/* 아이콘을 감싸는 고정폭 박스 */
.icon-box {
  width: 80px;                 
  display: flex;
  justify-content: center;
  position: relative;   
}

/* 이미지 아이콘 */
.contributor-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;   /* 이미지를 동그랗게 */
  object-fit: cover;    /* 이미지가 찌그러지지 않게 자르기 */
}

/* 이름 텍스트 */
.contributor-name {
  font-weight: 600;
  font-size: 16px;

  text-align: left;
}

/* 가운데 회색 라인 */
.contributors-divider {
  margin: 18px 0 14px;
  border: none;
  border-top: 3px solid #b5b5b5;
}

/* More Information */
.contributors-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}

.contributors-more {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 0px;
  font-size: 16px;
  text-decoration: none;
  color: #333;
  width: 100%;
}

.info-icon-img {
  width: 21px;
  height: 21px;
  margin-right: 6px;
  vertical-align: middle;
  transform: translateY(0.1px);
}