/*
    메인 컨텐츠 커스텀마이징
*/
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: calc(100vh - 56px);
    overflow-y: auto;
    max-width: 1400px;
    margin-right: auto;
}

.comment-item-content {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 10px;
}

/*
    테이블 컨테이너 커스텀마이징
*/
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.form-label-required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

/*
    페이지네이션 컨테이너 커스텀마이징
*/
.pagination-container {
    margin-top: 20px;
}

/*
    댓글 컨테이너 커스텀마이징
*/
.comment-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

/*
    네비게이션 컨테이너 커스텀마이징
*/
.nav-container {
    position: fixed;  /* fixed로 변경 */
    top: 0;          /* 상단에 고정 */
    right: 0;        /* 우측 정렬 */
    padding: 15px;   /* 패딩 추가 */
    z-index: 1031;   /* 사이드바보다 위에 표시 */
    width: calc(100% - 250px); /* 사이드바 너비를 제외한 너비 */
    height: 50px;
    display: flex;   /* Flexbox 사용 */
    align-items: center; /* 수직 중앙 정렬 */
}

/*
    피드 이미지 확대 커스텀마이징
*/
.enlarged-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 247, 247, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

/*
    부트 스트랩 툴팁 커스터마이징
*/
.tooltip-inner {
    max-width: 420px !important;  /* 툴팁 최대 너비 */
    max-height: 500px !important; /* 툴팁 최대 높이 */
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    font-family: var(--bs-font-sans-serif);
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-y: auto !important;  /* 내용이 많을 경우 스크롤 */
}

/* 툴팁 화살표 커스터마이징 */
.tooltip.show {
    opacity: 1 !important;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before, 
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.9) !important;
}

/*
    메모 툴팁 커스터마이징
*/
.memo-tooltip {
    --bs-tooltip-max-width: 500px !important;
}

/*
    부트 스트랩 관련 기타 아이콘들
*/
.fas.fa-star.star {
    color: #DCDCDC;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fas.fa-star.star.active-star {
    color: #F6D258;
}

/* 모바일 메뉴 고정 스타일 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 모바일 메뉴가 고정되어 있을 때 컨텐츠에 상단 여백 추가 */
.mobile-content {
    margin-top: 60px; /* 모바일 메뉴 높이만큼 여백 추가 */
}

.mobile-navbar {
  overflow: visible;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 1000;
  background: white;
}

.mobile-navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* 모바일 드롭다운 스타일 추가 */
.mobile-navbar .dropdown {
  position: relative;
  display: inline-block;
}

.mobile-navbar .dropdown-toggle {
  background: none;
  border: none;
  color: #f2f2f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-navbar .dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-navbar .dropdown-toggle.active i {
  transform: rotate(180deg);
}

.mobile-navbar .dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 150px;
  display: none;
  z-index: 9999;
  margin-bottom: 10px;
  max-height: 200px;
  overflow-y: auto;
}

/*
    프로필 이미지 커스텀마이징
*/
.avatar {
    vertical-align: middle;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    margin-bottom: 6px;
 }

 /*
    프로필 이미지 커스텀마이징 (상세)
*/
 .detail-avatar {
    width: 60px;
    height: 60px;
    margin-left: 6px;
    border-radius: 50%;
 }


/*
    모든 테이블 태그에 헤더 배경색 추가
*/
.table thead {
    border-bottom: 2px solid #dee2e6 !important;  /* 헤더 하단 테두리 강화 */
    border-top: 1px solid #dee2e6 !important;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.department-dropdown-menu {
    margin-left: 20px;
    width: 620px;
    height: 300px;
    padding-top:0;
    top: 0;
    transform: translate(7px, 35px) !important;
}

.user-code {
    margin-left: 42px;
}

/**
    버튼 커스텀 마이징
**/
.btn {
    border-radius: 8px;
}

.mode-switch-div{
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 3.2em;
    min-height: 0;
}

/* 트랙(뒤 타원) - 배경/그림자 전환 애니메이션 */
.mode-switch-div .switch-bg{
    position: absolute;
    left: 0.4em; 
    top: 50%; 
    transform: translateY(-50%);
    width: 48px; 
    height: 26px; 
    border-radius: 26px;
    background: #e9ecef;
    pointer-events: none; /*이모티콘 뚫고 체크박스 클릭할 수 있게*/
    z-index: 1;
    /*그림자*/
    box-shadow: inset 0px 2.5px 7.5px rgba(0,0,0,0.2),
                inset 0px -5px 15px rgba(255,255,255,0.4);
    transition: background .25s ease, box-shadow .25s ease; /*애니메이션*/
}

/*스위치 트랙 변경 시*/
.mode-switch-div .switch-bg::before,
.mode-switch-div .switch-bg::after{
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    font-size: 14px; 
    line-height: 1;
    transition: opacity .25s ease, transform .25s ease;
}

/*체크박스가 켜지면 스위치 배경 변경*/
.mode-switch-div .form-check-input.mode-switch:checked ~ .switch-bg{
    background: #50505e;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
/*체크되었을 때 라이트 모드 상태 X*/
.mode-switch-div .form-check-input.mode-switch:checked ~ .switch-bg::before{
    opacity: 0;
    transform: translateY(-50%) scale(.85) rotate(12deg);
}

.mode-switch-div .form-check-input.mode-switch:checked ~ .switch-bg::after{
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
    
}

/*기존 인풋 투명하게 변경 + 포커스 삭제*/
.mode-switch-div .form-check-input.mode-switch{
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.mode-switch-div .form-check-input.mode-switch:focus{
    box-shadow: none !important;
    outline: none !important;
}


@media (prefers-reduced-motion: reduce){
    .mode-switch-div .switch-bg,
    .mode-switch-div .switch-bg::before,
    .mode-switch-div .switch-bg::after{
        transition: 0.5 !important;
    }
}

.mobile-menu {
    .mode-switch-div .switch-bg::after {
        top: 40%;
    } 
}

.fc .fc-button-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.fc .fc-icon {
    color: white !important;
}

.fc .fc-col-header-cell-cushion {
    color: black;
    text-decoration: none !important;
}

/* 다크 모드 스타일 */
body.dark-mode .fc .fc-daygrid-day-number {
    color: white !important;
}

/* 라이트 모드 스타일 */
body.light-mode .fc .fc-daygrid-day-number {
    color: black !important;
}

.fc-h-event .fc-event-title {
    color: white !important;
}

body.light-mode .fc-event-single-day .fc-event-title {
    color: black !important;
}

body.dark-mode .fc-event-single-day .fc-event-title {
    color: white !important;
}

body.dark-mode .fc-event-multi-day .fc-event-title {
    color: white !important;
}

body.light-mode .fc-event-multi-day .fc-event-title {
    color: black !important;
}

.fc-event-time {
    display: none;
}
/*모달 창 가장자리 둥글게*/
.modal-content {
    border-radius: 15px !important;
}
.modal-header {
    border-radius: 15px 15px 0 0 !important;
}

.fc-event {
    padding-left: 6px !important;
}

a {
    font-family: 'sc_dream_regular';
}

button {
    font-family: 'sc_dream_regular';
}

span {
    font-family: 'sc_dream_regular';
}

h1 {
    font-family: 'sc_dream_regular';
}

h2 {
    font-family: 'sc_dream_regular';
}

h3 {
    font-family: 'sc_dream_regular';
}

h4 {
    font-family: 'sc_dream_regular';
}


input {
    font-family: 'sc_dream_regular';
}

.form-label-required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

#chatContainer {
    height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    position: relative;
    padding-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.order-container {
    padding-top: 0 !important;
}

.top-add-btn {
    background-color: #F1E8DF;
    text-decoration: none;
    padding: .5rem 1rem;
    border-radius: 8px;
}