@font-face {
  font-family: 'Spoqa Han Sans Neo';
  src: url('/fonts/SpoqaHanSansNeo-Regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Spoqa Han Sans Neo';
  src: url('/fonts/SpoqaHanSansNeo-Bold.woff2') format('woff2');
  font-weight: 700;
}
.container-head{
     max-width: 1280px;
    margin: 0 auto;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
   font-weight: 700;
  
}
/*  전체 컨테이너 설정 */
.container-global {
    max-width: 1280px;
    margin: 0 auto;
    padding: 130px 18px;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    font-weight: 400;
  
}


/*  공통 헤더 스타일 */
.header-top, .header-bottom {
    transition: all 0.3s ease-in-out;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-weight: bold;
    padding: 0 20px;
    
}

/* ✅ 기본 헤더 스타일 */
.header-top {
    background: #000000 !important;
    border-bottom: none;
}

.header-top .navbar-brand,
.header-top .nav-link {
    color: white !important;
    font-weight: bold;
    white-space: nowrap;
}

/* ✅ 스크롤 시 헤더 스타일 변경 */
.header-bottom {
    background-color: white;
    opacity: 0;
    visibility: hidden;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.header-bottom.visible {
    opacity: 1;
    visibility: visible;
    background-color: #ffffff !important;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #4a11be, #b98ff0, #e6d493, #f3cc3c) 1;
}

/* ✅ 돋보기 아이콘 스타일 */
.search-box .headsearch-icon {
    position: absolute;
    right: 15px;
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
}
/* ✅ 검색 입력 필드 스타일 수정 */
.search-box input {
    border: none !important;  /* 테두리 없애기 */
    outline: none !important; /* 클릭 시 테두리 제거 */
    box-shadow: none !important; /* 클릭 시 그림자 효과 제거 */
    font-size: 1rem;
    background: transparent;
    width: auto !important;
    max-width: 100% !important;
    color: #000000;
    padding-right: 35px;
}



/* ✅ readonly 상태일 때도 테두리 없애기 */
.search-box input[readonly] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ✅ 클릭(포커스) 시에도 테두리 안 생기도록 */
.search-box input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


.search-box .headsearch-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #666;
    transform: rotate(45deg);
    bottom: -4px;
    right: -4px;
}

/* ✅ 스크롤 후 검색창 스타일 변경 */
.header-bottom.visible .search-box {
    background: #F7F8FB !important;
}


.header-bottom.visible .nav-link {
    color: black !important;
    font-weight: bold !important;
}
.search-box {
  display: flex !important;
  align-items: center !important;
  background: white !important;
  padding: 12px 15px !important;
  border-radius: 30px !important;
  transition: all 0.3s ease-in-out !important;
  max-width: 400px !important;
  width: 100% !important;
  margin-left: 10px !important;
  position: relative !important;
}

.search-box input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  background: transparent !important;
  width: 100% !important;
  color: #000000 !important;
  padding-right: 35px !important;
}
.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item.alarm {
    margin-left: auto;
}
.alarm-dot {
  position: absolute;
  /* 알림연동시 넣어야함 display: none;*/
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  
  z-index: 10;
}
.float-emoji {
  font-size: 20px;
  margin-right: 6px;
  display: inline-block;
}


/* ========================== */
/* ✅ 반응형 헤더 & 네비게이션 스타일 (1024px 이하) */
/* ========================== */
@media screen and (max-width: 1024px) {
    /* ✅ 헤더 내부 정렬 수정 */
    .header-top, .header-bottom {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
        justify-content: center;
        align-items: center;
    }


    /* ✅ 네비게이션 메뉴 줄바꿈 허용 */
    .header-top .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ✅ 메뉴 아이템 크기 조정 */
    .header-top .nav-link {
        font-size: 14px;
        padding: 5px 10px;
    }

    /* ✅ Bootstrap 토글러 아이콘 색상 조정 */
    .navbar-toggler {
        border: none;
    }

    /* ✅ 기본 헤더(어두운 배경)에서는 아이콘 색상을 흰색으로 */
    .navbar-toggler-icon {
        filter: invert(1);
    }

    /* ✅ 스크롤 후(밝은 배경)에서는 아이콘 색상을 검정색으로 */
    .header-bottom.visible .navbar-toggler-icon {
        filter: invert(0);
    }

    /* ✅ 네비게이션 메뉴 숨기기 */
    .nav {
        flex-direction: column;
        background-color: white;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }}
   /* ✅ AI 챗봇 버튼 (우측 하단 고정) */
    .ai-chatbot-button {
      position: fixed !important;
      bottom: 80px !important;
      right: 50px !important; 
      width: 60px;
      height: 60px;
      background-color: #6b59e8;
      border-radius: 50%;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
      cursor: pointer;
      transition: background 0.3s ease-in-out;
      z-index: 9999 !important; /* ✅ 모든 요소 위에 배치 */
    }
    
    
    /* ✅ 버튼 호버 효과 */
    .ai-chatbot-button:hover {
      background-color: #543fe4;
    }
    /* ✅ 버튼이 사라지는 문제 해결 */
    .ai-chatbot-button.hidden {
      display: flex !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
    
      
    /* 챗봇 창 스타일 */
    .chatbot-container {
      position: fixed;
      bottom: 80px;
      right: 40px;
      width: 320px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 9999;
    }
    
    /* 챗봇 헤더 */
    .chatbot-header {
      background: #6b59e8 ;
      color: white;
      padding: 10px;
      text-align: center;
      font-weight: bold;
      position: relative;
    }
    
    /* 닫기 버튼 */
    .chatbot-header button {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: white;
      font-size: 20px;
      cursor: pointer;
      font-weight:bold;
    }
    
    /* 챗봇 메시지 영역 */
.chatbot-messages {
  display: flex;
  flex-direction: column;
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  gap: 4px;
}
    .chatbot-input-container {
  position: relative;
  width: 100%;
}

.chatbot-input {
  width: 100%;
  padding: 10px 50px 10px 12px; /* 오른쪽 공간 확보 */
  border: 1px solid #ddd;
  border-radius: 0 0 10px 10px;
  outline: none;
  font-size: 14px;
}

.chatbot-send-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #6b59e8;
  border: none;
  color: white;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chatbot-send-btn:hover {
  background: #543fe4;
}
.faq-button {
  all: unset; /* 기본 버튼 스타일 제거 */
  background-color: #6b59e8 !important;
  color: white !important;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 4px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  transition: background 0.2s ease;
  border: none;
}

.faq-button:hover {
  background-color: #543fe4 !important;
}

.chatbot-faq-buttons {
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-height: 40px;
}

/* 공통 말풍선 */
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  display: inline-block;
}

/* 사용자 메시지 */
.user-message {
  background-color: #dbe7ff;
  color: #333;
  align-self: flex-end;
  border-top-right-radius: 0;
  margin-left: auto;
}

/* 챗봇 메시지 */
.bot-message {
  background-color: #f1f1f1;
  color: #444;
  align-self: flex-start;
  border-top-left-radius: 0;
  margin-right: auto;
}

 .floating-plus-button {
  position: fixed;
  bottom: 160px;
  right: 50px;
  width: 60px;
  height: 60px;
  background-color: #f3cc3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}
.floating-plus-button:hover {
      background-color: #f0be11;
    }

.floating-popup {
  position: fixed;
  bottom: 230px;
  right: 50px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  padding: 10px;
  z-index: 9999;
}

.floating-item {
  padding: 10px 14px;
  color: #000000;
  font-weight:bold;
  text-decoration: none;
  
  white-space: nowrap;
  border-bottom: 1px solid #eee;
}
.floating-item:last-child {
  border-bottom: none;
}

@media screen and (max-width: 768px) {
  /* 헤더 내부 정렬 변경 */
  .header-top, .header-bottom {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 15px;
  }

  /* 로고 + 메뉴 */
  .header-top .navbar-brand,
  .header-top .nav {
    width: 100%;
    text-align: left;
    margin: 5px 0;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-link {
    padding: 8px 0;
    width: 100%;
  }

  /* 검색 박스 너비 및 정렬 조정 */
  .search-box {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 10px 12px !important;
  }

  .search-box input {
    font-size: 15px !important;
  }

  /* 알람 위치 조정 */
  .nav-item.alarm {
    margin-left: 0;
    width: 100%;
    text-align: right;
    margin-top: 5px;
  }

  /* 챗봇 버튼 위치 조정 */
  .ai-chatbot-button {
    bottom: 20px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
  }

  .floating-plus-button {
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .floating-popup {
    bottom: 150px;
    right: 20px;
    width: 85%;
  }

  /* 챗봇 창도 화면에 맞게 조정 */
  .chatbot-container {
    width: 90%;
    right: 5%;
    bottom: 20px;
  }

  .chatbot-messages {
    height: 200px;
  }

  .chatbot-input {
    font-size: 13px;
  }

  .chatbot-send-btn {
    font-size: 13px;
    padding: 4px 8px;
  }

  .faq-button {
    font-size: 12px;
    padding: 4px 10px;
  }

  .chatbot-faq-buttons {
    justify-content: center;
  }

  .bubble {
    font-size: 13px;
  }

  .container-global {
    padding: 100px 14px; /* 패딩 살짝 줄이기 */
  }

  .container-head {
    padding: 0 14px;
  }
}

/* 아이폰 11 Pro 대응 (375px 이하 화면 최적화) */
@media screen and (max-width: 390px) {

  /* 헤더 및 전체 패딩 보정 */
  .container-global {
    padding: 80px 12px;
  }

  .container-head {
    padding: 0 12px;
  }

  /* 검색창 */
  .search-box {
    padding: 8px 10px !important;
    margin: 8px 0 !important;
  }

  .search-box input {
    font-size: 14px !important;
  }

  /* 네비게이션 */
  .nav-link {
    font-size: 13px;
    padding: 6px 0;
  }

  /* 챗봇 버튼 및 팝업 위치 */
  .ai-chatbot-button {
    width: 48px;
    height: 48px;
    bottom: 15px !important;
    right: 15px !important;
  }

  .floating-plus-button {
    width: 48px;
    height: 48px;
    bottom: 75px;
    right: 15px;
  }

  .floating-popup {
    width: 90%;
    right: 5%;
    bottom: 135px;
    font-size: 13px;
  }

  /* 챗봇 */
  .chatbot-container {
    width: 92%;
    right: 4%;
    bottom: 15px;
  }

  .chatbot-messages {
    height: 180px;
    padding: 8px;
  }

  .chatbot-input {
    padding: 9px 48px 9px 10px;
    font-size: 13px;
  }

  .chatbot-send-btn {
    padding: 5px 9px;
    font-size: 12px;
  }

  .faq-button {
    font-size: 11.5px;
    padding: 4px 8px;
  }

  .bubble {
    font-size: 13px;
  }

  .chatbot-faq-buttons {
    padding: 6px 8px;
  }

}


    