/* 공통 스타일 */

/* Pretendard 폰트 import */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

body {
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  /* font-family: "Noto Sans", "sans-serif"; */

  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  position: relative;
}

body.login-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

body.login-body {
  background: url("/images/backgrounds/bg.webp") center center/cover no-repeat;
}
a {
  text-decoration: none;
}

/* 로그인 페이지 스타일 */
.login-container {
  background: transparent;
  text-align: center;
  width: 90vw;
  max-width: 400px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* 버튼 그룹 스타일 */
.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container .sideLink {
  margin-top: 15px;
  color: #979797;
}

.logo {
  width: 60px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group {
  position: relative;
  text-align: left;
}

.input-label {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 1px;
  color: #02343f;
}

.input-group input {
  width: 95%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
}

/* 자동완성 시 배경색 투명 유지 */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  background-color: transparent !important;
  background: transparent !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-line {
  height: 1px;
  background: #afafaf;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.input-group input:focus + .input-line {
  background: #02343f;
  height: 1px;
}

.login-form input {
  padding: 10px;
  font-size: 16px;

  border-radius: 5px;

  border: none;
  box-shadow: none;
  outline: none;
}

.login-form button {
  padding: 12px 15px;
  font-size: 16px;
  color: #fff;
  background-color: #02343f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  height: 45px;
  font-weight: 600;
  letter-spacing: 1px;
}

.login-btn {
  background-color: #02343f !important;
}

.login-btn:hover {
  background-color: #002129 !important;
  transform: translateY(-1px);
}

.login-form button:hover {
  background-color: #002129;
}

/* 메인 페이지 스타일 */
.sidebar {
  width: 150px;
  background-color: #f4f4f4;
  box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 100;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.maincontent {
  margin-left: 150px;
  width: -webkit-fill-available;
}

/* 모바일 반응형 - 사이드바가 숨겨질 때 maincontent 마진 제거 */
@media (max-width: 1024px) {
  .maincontent {
    margin-left: 0;
    padding: 20px;
  }
}

.logo-container {
  padding: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.logo-container img {
  width: 50px;
  margin: 14px;
}

h1.menutitle {
  font-size: 15px;
  color: #333;
  margin: 0;
  font-weight: bold;
  line-height: 20px;
}

h1.pagetitle {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: bold;
}

.user-info {
  padding: 15px;
  background-color: #02343f;
  margin-bottom: 10px;
}

.user-info span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #333;
}

.user-info span.welcome_text {
  font-weight: 500;
  color: #fff;
}

.mypage-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  height: 28px;
  font-size: 12px;
  font-weight: bold;
  width: -webkit-fill-available;
}

.menu ul {
  padding: 0;

  padding-left: 20px;
  padding-right: 10px;

  margin: 0;
  cursor: pointer;
}

.menu li {
  position: relative;
  display: flex;
  height: 20px;
  align-items: center;
  font-size: 12px;
  color: #333;
  font-weight: 400;
  margin-left: 20px;
  padding: 4px;
}

.menu li::before {
  position: absolute;
  top: 0px;
  left: -12px;
  width: 7px;
  height: 50%;
  border-left: 1px solid #c1c1c1;
  border-bottom: 1px solid #c1c1c1;
  content: "";
}

.menu li.middle::after {
  position: absolute;
  bottom: 0px;
  left: -12px;
  width: 7px;
  height: 50%;
  border-left: 1px solid #c1c1c1;
  content: "";
}

.menu ul:hover,
.menu ul:hover li {
  background-color: #333;
  color: #fff;
}

.menu ul.active,
.menu ul.active li {
  background-color: #333;
  color: #fff;
}

.menu li .sidebar_icon {
  margin-right: 6px;
  font-size: 17px;
}

.menu .line {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  color: #333;
  font-weight: 700;
  margin: 15px 10px 0;
  padding-left: 10px;
  padding-bottom: 4px;
}

.menu .line span {
  margin-right: 10px;
  font-size: 20px;
}

.content.mainpage {
  padding: 20px 25px;
}

.content.mainpage .option {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 500;
}

/* 정보 수정폼  */

/* 폼 전체 스타일  ----------------------------- */

/* 폼 요소를 가로로 정렬하는 플렉스 박스 설정 */
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

/* 레이블 스타일 */
.form-group label {
  display: flex;
  width: 140px;
  font-weight: 500;
  font-size: 12px;
  justify-content: center;
  background-color: #eaedff;
  border: 1px solid #ccc;
  height: 36px;
  align-items: center;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* 인풋, 텍스트 에어리어 스타일 */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  box-sizing: border-box;
}

.form-group input[type="text"] {
  font-size: 12px;
  height: 38px;
}
.form-group input[type="date"] {
  font-size: 12px;
}

/* 폼 텍스트에어리어 스타일 */
#formTitle,
#formContent {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  resize: vertical;
}

/* editform 버튼 스타일 */

.btn-group {
  display: flex;
  justify-content: space-between;
}

.editModal button {
  color: white;
  padding: 10px 17px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.editModal button.green {
  background-color: #4caf50;
}

.editModal button.green:hover {
  background-color: #45a049;
}

.editModal button.black {
  background-color: #424242;
}

.editModal button.black:hover {
  background-color: #1c1c1c;
}

.editModal button.red {
  background-color: #f44336;
}

.editModal button.red:hover {
  background-color: #e53935;
}

.myTable {
  width: 100%; /* 부모 요소에 맞추어 가로 크기 조정 */
  table-layout: auto; /* 열 크기 자동 조정 */
}

/* 툴팁 */
#tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  max-width: 300px;
  word-wrap: break-word;
  z-index: 10000;
  pointer-events: none;
  display: none;
  line-height: 22px;
}

/* 툴바 전체 여백 및 높이 축소 */
.toastui-editor-toolbar {
  padding: 2px 4px !important;
  min-height: 32px !important;
}

/* 툴바 버튼 축소 */
.toastui-editor-toolbar button {
  padding: 2px 6px !important;
  font-size: 10px !important;
  min-height: 28px !important;
  height: auto !important;
  line-height: 1.2 !important;
}

/* 툴바 아이콘 SVG 크기 줄이기 */
.toastui-editor-toolbar svg {
  width: 14px !important;
  height: 14px !important;
}

/* 공지사항 */

.notice-section textarea {
  width: -webkit-fill-available;
  height: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  overflow-y: auto;
  outline: none;
  font-size: 12px;
  line-height: 1.5;
}

.notice-section .contentTitle {
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #02343f;
  color: #fff;
  margin: 10px 0;
  border-radius: 5px;
}

.red {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.red:hover {
  background-color: #cc0000;
}

/* 토스트 알림 스타일 (공통) */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  width: 250px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast .material-symbols-outlined {
  font-size: 20px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .toast {
    width: 200px;
    right: 10px;
    padding: 10px 15px;
    font-size: 12px;
  }

  .toast .material-symbols-outlined {
    font-size: 16px;
  }

  .notice-section textarea {
    height: 300px;
    font-size: 11px;
  }

  .notice-section .contentTitle {
    font-size: 12px;
    padding: 8px;
  }

  /* 모바일에서 tooltip 개선 */
  #tooltip {
    font-size: 11px;
    padding: 4px 8px;
    max-width: 250px;
    line-height: 18px;
  }
}

@media (max-width: 480px) {
  /* 작은 화면에서 tooltip 추가 개선 */
  #tooltip {
    font-size: 10px;
    padding: 3px 6px;
    max-width: 200px;
    line-height: 16px;
  }
}

/* 모바일 헤더 스타일 */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo img {
  height: 35px;
}

.mobile-logo span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 8px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -8px);
}

/* 모바일 메뉴 컨테이너 */
.mobile-menu-container {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-menu-container.mobile-open {
  transform: translateY(0);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

/* 모바일 사용자 정보 */
.mobile-user-info {
  padding: 20px;
  background-color: #02343f;
  color: #fff;
}

.mobile-user-info .welcome_text {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
}

.mobile-user-info .mypage-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  width: 100%;
}

/* 모바일 메뉴 스타일 */
.mobile-menu {
  padding: 20px 0;
}

.mobile-menu .line {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  font-weight: 700;
  margin: 20px 20px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.mobile-menu .line span {
  margin-right: 10px;
  font-size: 20px;
}

.mobile-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu li {
  padding: 15px 20px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu li:hover,
.mobile-menu ul.active li {
  background-color: #f8f9fa;
  color: #333;
}

.mobile-menu a {
  text-decoration: none;
  color: inherit;
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
  .mobile-header {
    display: flex;
  }

  .mobile-menu-container {
    display: block;
  }

  .sidebar {
    display: none;
  }

  body {
    padding-top: 60px;
  }
}

/* 데스크톱에서는 모바일 헤더 숨김 */
@media (min-width: 1025px) {
  .mobile-header {
    display: none;
  }

  .mobile-menu-container {
    display: none;
  }

  .sidebar {
    display: block;
  }

  body {
    padding-top: 0;
  }
}
