/* /static/css/style_analysis_workflow_code.css */


/* Overview와 Code tab menu */
.analysis-tab-menu {
  display: flex;
  width: 100%;
  max-width: 1200px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}
.analysis-tab-menu a {
  flex: 1;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  border: 1px solid #ddd;
  border-bottom: none;
  color: #666;
  background-color: white;
  position: relative;
}
.analysis-tab-menu a.active {
  background-color: #004a99; /* 파란색 */
  color: white;
}
.analysis-tab-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #004a99;
}



/*accordion*/
/* 아코디언 전체 박스 */
.workflow-accordion_code {
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

/* 제목 부분(클릭 영역) */
.workflow-accordion_title {
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  background-color: #e9f2ff;
  border-radius: 6px;

  font-size: 1.35rem;
}

/* 내용 부분: 처음에는 접혀 있음 */
.workflow-accordion_content {
  max-height: 0;          /* 높이 0 → 안 보이게 */
  overflow: hidden;       /* 넘치는 내용 숨기기 */
  padding: 0 10px;        /* 좌우 패딩만 먼저 */
  opacity: 0;             /* 투명 */
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* open 클래스가 붙었을 때(펼쳐진 상태) */
.workflow-accordion_code.open .workflow-accordion_content {
  max-height: 9999px;   /* 아주 크게 → 사실상 제한 없음 */
  overflow: visible;    /* 넘치는 내용도 보이게 */
  padding: 10px;          /* 위아래 패딩도 살짝 추가 */
  opacity: 1;             /* 보이게 */
}



/*아이콘 애니메이션*/
/* 제목 정렬용 */
.workflow-accordion_title {
  display: flex;
  align-items: center;
  gap: 16px;   /* 아이콘과 텍스트 사이 간격 */
}

/* 아이콘 기본 스타일 + 애니메이션 */
.rotate-icon {
  display: inline-block;
  font-size: 0.9rem;      /* 아이콘 크기 */
  line-height: 1;
  transition: transform 0.25s ease;
}

/* 아코디언이 열렸을 때 회전 */
.workflow-accordion_code.open .rotate-icon {
  transform: rotate(90deg);  /* ▶ → ▼ 처럼 보임 */
}


/*아코디언 소제목*/
.progress-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 20px;   /* 원하는 만큼 늘리기 */
  margin-bottom: 10px;
}


/*code box*/
.codebox { 
  position: relative; 
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: visible;
}


/* 헤더 영역 */
.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: none;
  border-radius: 0 0 10px 10px;
  overflow-x: auto;          /* 가로 스크롤 */
  overflow-y: visible;          /* 세로 내용이 모두 보임 */
  margin: 0;
  white-space: pre-wrap;
  background-color: #f0f2f5;
  font-family: "Source Code Pro", Menlo, Consolas, monospace;
  word-break: normal;        /* 단어 중간 강제 개행 방지 */
  word-wrap: normal;

  font-size: 17px;
  line-height: 1.5;
}

/* (권장) 일부 테마가 code에 wrap을 걸어둘 수 있어 방지 */
.codebox code {
  white-space: inherit;
  display: inline-block;
}


/*아코디언 첫 위치로 돌아가는 기능*/
.back-to-top-btn {
  text-align: center;   /* 텍스트 가운데 정렬 */
  margin-top: 20px;
}

.back-to-top-btn a {
  text-decoration: none;
  font-weight: 600;
  color: #555;
}

.back-to-top-btn a:hover {
  text-decoration: underline;
}


/* =============== 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);
}