body {
  background-color: #ffffff;
}

/* 최상단 네비게이션 바 스타일 */
.top-nav {
  background-color: #f8f9fa;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.top-nav .logo {
  height: 35px; /* 로고 이미지의 높이 조정 */
  width: auto; /* 로고의 너비는 자동으로 조절 */
  /* margin-bottom: 0.5rem; */
  margin-left: 2rem;
}

.top-nav a,
.top-nav span {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  margin-right: 10px; /* 오른쪽 마진 추가 */
}

.top-nav span {
  color: #333;
}

.auth-links {
  display: flex; /* 로그인/로그아웃 및 알림설정을 가로로 배치 */
  align-items: center; /* 세로 중앙 정렬 */
}

/* 로그인/로그아웃 버튼과 사용자 이름 사이의 간격 */
.auth-links a + span {
  margin-left: 10px;
}
/* 대시보드 래퍼 스타일 */
.dashboard-wrapper {
  display: flex;
  justify-content: center; /* 가로 방향으로 가운데 정렬 */
  width: 100%; /* 래퍼의 너비를 브라우저 창의 너비로 설정 */
}

.dashboard {
  max-width: 1200px;
  grid-template-columns: 1fr 3fr; /* 왼쪽 영역은 1의 비율, 오른쪽 영역은 3의 비율로 설정 */
  display: grid;
  height: 100vh;
  box-sizing: border-box; /* 패딩을 너비에 포함 */
}

.menu {
  background: #fff; /* 메뉴 배경색 */
  padding: 1rem;
}
.content {
  background: #fff; /* 내용 배경색 */
  padding: 1rem;
}
.main-container {
  margin: 0 auto; /* This will center your container */
  max-width: 1200px;
  /* margin-top: 10px; */
  max-height: 100%;
  position: sticky;
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-sizing: border-box;
  width: 360px;
  /* box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); */
}
/* Tab button container */
.tab {
  overflow: hidden;
  border-top: 1px solid rgb(238, 238, 238);
  border-bottom: 1px solid rgb(238, 238, 238);
  background-color: #fff;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
/* .tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
} */
h3 {
  padding: 6px 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

.pagination a {
  color: black;
  /* float: left; */
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: dodgerblue;
  color: white;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000; /* 확실한 가시성을 위해 높은 z-index 값 */
}

.stock-table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  /* margin-bottom: 0.5em; */
  font-family: "Arial", sans-serif;
}

.stock-header {
  background-color: #fff;
  font-weight: 500;
  font-size: 12px;
  color: #a4a4a4;
  padding: 8px 14px 8px 26px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}
.stockData {
  max-height: 576px; /* 원하는 최대 높이 설정 */
  overflow-y: auto;
}
.stock-row {
  display: flex;
  height: 30px;
  line-height: 1.2;
  justify-content: space-between;
  padding: 8px 14px 8px 26px;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  max-height: 200px;
}

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

.stock-title,
.stock-price,
.stock-change,
.stock-volume,
.stock-transaction {
  font-size: 13px;
  flex: 1;
  text-align: center;
}

.stock-view {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: blue;
  text-decoration: underline;
  font-weight: 700;
}

.stock-change.change-up {
  color: #ff4242;
}

.stock-change.change-down {
  color: #00b894;
}

.stock-symbol {
  font-weight: bold;
}

.stock-row:hover {
  background-color: #f9f9f9; /* 마우스 오버 시 배경색 */
  cursor: pointer; /* 마우스 오버 시 커서 변경 */
}
.date-container {
  display: flex;
  justify-content: center; /* 수평 방향 가운데 정렬 */
}

.date {
  display: flex;
  align-items: center; /* 버튼과 입*/
  margin: 0px 0px 20px 0px;
}

/* .data-marker {
  display: block;
  color: green;
  font-size: 0.75em;
} */
.input-container {
  position: relative;
  display: inline-block;
}

#datePicker {
  background-color: #f3f3f3;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: auto; /* 너비 조정 */
}
#changeButton {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background-color: #4a90e2;
  color: white;
  padding: 0 15px;
  border-radius: 0 5px 5px 0; /* 오른쪽 끝에 맞춰서 둥글게 */
  cursor: pointer;
  font-size: 16px;
}

#changeButton:hover {
  background-color: #357abd;
}

#datePicker:focus {
  outline: none;
  border: 2px solid #4a90e2;
}
input[type="date"] {
  background-color: #f3f3f3;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  border: 2px solid #4a90e2;
}

/* 이전/다음 버튼 스타일 */
#prevDay {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#prevDay:hover {
  background-color: #357abd;
}

#nextDay {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#nextDay:hover {
  background-color: #357abd;
}

/* 검색 파트 */
/* 현재 선택된 검색어 */
.autocomplete > div.active {
  background: #e0e5f6;
  color: #000;
}

/* -------------------------- */

.autocomplete > div {
  width: 50%;
  background: #fafafa; /* 기본 배경 색상 */
  padding: 2rem 1.5rem; /* 패딩 조정 */
  margin-left: 0.5rem; /* 검색 결과 사이 간격 추가 */
  margin-bottom: 0.5rem; /* 검색 결과 사이 간격 추가 */
  border-radius: 5px;
  cursor: pointer; /* 마우스 오버 시 커서 변경 */
  transition: background 0.3s ease; /* 부드러운 배경색 전환 효과 */
}
/* .autocomplete > div.text {

  
} */

/* 마우스 hover 시 스타일 */
.autocomplete > div:hover {
  background: #d0d4da; /* hover 배경 색상 */
}

section {
  width: 100%;
  /* padding: 1.2rem 1.6rem; */
  /* box-shadow: 0 0 1rem rgba(0, 0, 0, 0.05); */
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  /* margin-top: 0.5rem; */
  margin-bottom: 2rem;
}

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

.search-container {
  display: flex; /* Flexbox 레이아웃을 활성화합니다. */
  justify-content: space-between; /* 요소들을 양 끝으로 정렬 (검색 필드는 좌측, 버튼은 우측) */
  align-items: center; /* 요소들을 세로 중앙에 정렬합니다. */
  width: 100%; /* 검색 컨테이너의 너비를 지정합니다. */
}

#searchInput {
  flex-grow: 1; /* 입력 필드가 컨테이너의 나머지 공간을 모두 차지하도록 합니다. */
  margin-right: 8px; /* 버튼과의 간격을 조정합니다. */
}

/* active 클래스를 가진 요소에 대해 */
#searchSec .autocomplete > div.active {
  margin: 10px;
  background: #333;
  color: #eee;
}
#searchSec {
  border: 1px solid #eee;
}
#searchSec * {
  margin-top: 0px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  word-break: break-all;
  font-family: Pretendard;
}

#searchSec input {
  width: 70%;
  height: 3rem;
  border-radius: 5px;
  font-size: 0.9rem;
  padding: 0 1rem;
  border: 0px solid #eee;
  background: #fff;
  /* margin: 1rem 0; */
}

#searchSec input::placeholder {
  font-size: 1rem;
}

#searchSec body {
  background: #f7f8fc;
  display: flex;
  justify-content: center;
  align-items: center;
}

#searchSec mark {
  background: #febf0090;
}

#searchSec p {
  opacity: 0.8;
  font-size: 15px;
  margin: 0 2px;
}
#searchSec h2 {
  padding: 5px 2px;
  font-size: 20px;
  margin: 4px 2px;
}
@media only screen and (max-width: 600px) {
  #prevDay,
  #nextDay {
    width: 10%;
    padding: 12px;
    margin-bottom: 10px; /* 모바일 환경에서 버튼과 입력 필드가 넓고 터치하기 쉽도록 조정 */
  }
  .top-nav .logo {
    height: 12px; /* 로고 이미지의 높이 조정 */
    width: auto; /* 로고의 너비는 자동으로 조절 */
    margin-bottom: 0;
    margin-left: 1rem;
  }
}

#searchButton {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 16px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.chart-box {
  display: flex; /* Flexbox 레이아웃 사용 */
  align-items: flex-start; /* 아이템들을 컨테이너의 시작 부분(상단)에 정렬 */
  justify-content: space-between; /* 요소 사이에 공간을 균등하게 분배 */
}

#chart,
#legend {
  flex: 1; /* 차트와 레전드가 사용 가능한 공간을 균등하게 차지하도록 함 */
}

/* 필요에 따라 추가 스타일을 정의 */
.chart-legend {
  /* 레전드에 대한 추가 스타일 */
  margin-top: 12rem;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(184, 184, 184, 0.6);
  border-radius: 5px;
}

/* === HEADING STYLE #2 === */
#legend {
  display: flex; /* Flexbox를 사용하여 항목들을 가로로 나열 */
  justify-content: space-around; /* 항목들 사이에 공간을 균등하게 배분 */
  width: 30%;
  margin-top: 10px; /* 시가총액 정보와의 공간을 조정 */
  padding: 10px; /* 내부 여백 추가 */
  border: 1px solid #ddd; /* 경계선 추가 (선택적) */
  border-radius: 5px; /* 박스 모서리 둥글게 (선택적) */
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 11px;
  /* margin-bottom: 4px; */
  /* 범례 아이템 스타일 */
}

.color-box {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 0.5px solid rgba(0, 0, 0, 0.4);
  /* 색상 박스 스타일 */
}

.color-box.red {
  background-color: red;
  /* 빨간색 박스 스타일 */
}

.color-box.blue {
  background-color: blue;
  /* 파란색 박스 스타일 */
}
.color-box.green {
  background-color: green;
  /* 파란색 박스 스타일 */
}
.color-box.orange {
  background-color: orange;
  /* 파란색 박스 스타일 */
}
.color-box.purple {
  background-color: purple;
  /* 파란색 박스 스타일 */
}
#legend {
  display: flex; /* Flexbox를 사용하여 항목들을 가로로 나열 */
  justify-content: space-around; /* 항목들 사이에 공간을 균등하게 배분 */
  width: 30%;
  margin-top: 10px; /* 시가총액 정보와의 공간을 조정 */
  padding: 10px; /* 내부 여백 추가 */
  border: 1px solid #ddd; /* 경계선 추가 (선택적) */
  border-radius: 5px; /* 박스 모서리 둥글게 (선택적) */
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 11px;
  /* margin-bottom: 4px; */
  /* 범례 아이템 스타일 */
}

.color-box {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 0.5px solid rgba(0, 0, 0, 0.4);
  /* 색상 박스 스타일 */
}

.color-box.red {
  background-color: red;
  /* 빨간색 박스 스타일 */
}

.color-box.blue {
  background-color: blue;
  /* 파란색 박스 스타일 */
}
.color-box.green {
  background-color: green;
  /* 파란색 박스 스타일 */
}
.color-box.orange {
  background-color: orange;
  /* 파란색 박스 스타일 */
}
.color-box.purple {
  background-color: purple;
  /* 파란색 박스 스타일 */
}

.chart h1 {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #080808;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  text-transform: capitalize;
}
.chart h1:before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  content: "";
  background-color: #c50000;
}

.chart .chart_value {
  display: block;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 3em;
  padding-left: 0.25em;
  color: rgba(0, 0, 0, 0.6);
  padding-top: 0;
  padding-bottom: 10px;
}

.chart_code {
  font-family: "Raleway", sans-serif;
  display: block;
  line-height: 0.2;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.5em;
  /* padding-left: 0.25em; */
  color: rgba(0, 0, 0, 0.6);
}

.chart-container {
  margin: 0 auto; /* This will center your container */
  margin-left: 0;
  max-width: 1000px;
  max-height: 100%;
  padding: 20px 20px; /* Padding on the sides */
  position: sticky;
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-sizing: border-box;
}

.chart_body {
  background-color: #f4f4f4;
}
#chart {
  margin-top: 2rem;
}
.tab button.tablinks {
  background-color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 20px;
  transition: 0.3s;
  font-size: 17px;
  color: #777777;
}

/* 탭 버튼에 마우스를 올렸을 때 */
.tab button.tablinks:hover {
  background-color: #ddd;
}

/* 블루 탭 선택 시 스타일 */
.tab button.tablinks[data-tab="Tab1"].active {
  font-weight: 700;
  color: #1b1b1b;
  border-bottom: 2px solid #1b1b1b; /* 아래쪽에 선을 표시 */
}

/* 그린 탭 선택 시 스타일 */
.tab button.tablinks[data-tab="Tab2"].active {
  font-weight: 700;
  color: #1b1b1b;
  border-bottom: 2px solid #1b1b1b;
}

/* 블랙 탭 선택 시 스타일 */
.tab button.tablinks[data-tab="Tab3"].active {
  font-weight: 700;
  color: #1b1b1b;
  border-bottom: 2px solid #1b1b1b;
}

.tabcontent {
  display: none;
  /* padding: 10px; */
  /* border: 1px solid #ccc; */
  border-top: none;
  margin-top: -1px; /* 탭 버튼과 컨텐츠 사이의 틈을 없앰 */
  background-color: #fff;
}
.update-date {
  display: block;
  /* line-height: 1.3; */
  padding-left: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 2em;
  color: rgba(0, 0, 0, 0.6);
  padding-top: 0;
}
#noDataMessage {
  text-align: center; /* 텍스트를 가운데 정렬 */
  margin-top: 20px; /* 위쪽 마진 설정 */
  margin-bottom: 20px; /* 아래쪽 마진 설정 */
  color: #666; /* 텍스트 색상 설정 */
  font-size: 16px; /* 폰트 크기 설정 */
}

.settings-container {
  margin: 0 auto; /* This will center your container */
  margin-top: 1rem;
  max-width: 800px;
  max-height: 100%;
  padding: 20px 20px; /* Padding on the sides */
  background-color: #ffffff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}
/* === HEADING STYLE #2 === */
.settings-container h2 {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #080808;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  text-transform: capitalize;
  /* margin-bottom: 2rem; */
}
.settings-container h2:before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  content: "";
  background-color: #c50000;
}
.settings-container span {
  margin-top: 1em;
  display: block;
  /* line-height: 1.1; */
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  /* letter-spacing: 3px; */
  line-height: 1.4em;
  /* padding-left: 0.25em; */
  color: rgba(0, 0, 0, 0.6);
  padding-top: 0;
  padding-bottom: 10px;
  margin-bottom: 1rem;
}

.form-group {
  margin-top: 2em;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  word-break: break-all;
  font-family: Pretendard;
}

.custom-phone-input {
  width: 50%;
  height: 3rem;
  border-radius: 5px;
  font-size: 0.9rem;
  padding: 0 1rem;
  border: 1px solid #e0e5f6;
  background: #fff;
  margin: 0.3rem 0.3rem;
}
