/* Body resets and base font */
body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', sans-serif;
    box-sizing: border-box;
  background-color: #eef4ff;
}

/* Fixed top navbar container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* Logo left, menu items right :contentReference[oaicite:4]{index=4} */
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #5b6ea7;
  padding: 10px 20px;
  z-index: 1000;  /* Ensure navbar stays on top of other content */
}

/* Logo box (clickable logo + text) */
.logo-box {
  display: flex;
  align-items: center;
  text-decoration: none;  /* Remove underline from clickable logo text */
}
.logo-box img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.logo-box span {
  font-weight: bold;
  font-size: 20px;
  color: white;
}



/* Container for main content (centered card) */
.container {
  max-width: 420px;                   /* 좀 더 넓게 */
  margin: 40px auto;
  background: white;
  padding: 42px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.container h1 {
  font-size: 23px;
  margin-bottom: 22px;
}

/* Search box and autocomplete suggestions */
.search-container {
  position: relative;
  margin-bottom: 16px;
}
#search-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.easy-autocomplete-container {
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  z-index: 1000;
}

.easy-autocomplete-container ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.easy-autocomplete-container li {
  padding: 10px;
  cursor: pointer;
}

.easy-autocomplete-container li:hover {
  background-color: #f0f0f0;
}


/* Search and meal buttons */
button {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background-color: #5b6ea7;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background-color: #4a5e96;
}

/* Hidden class to toggle visibility (used for meal section) */
.hidden {
  display: none;
}

/* Meal section styling */
#meal-section {
  margin-top: 30px;
}
#meal-menu {
  margin-top: 10px;
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
}
.mypage-btn, .menu-btn {
  font-size: 13px;
  padding: 6px 14px;
  background: white;
  color: #5c6bc0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.mypage-btn:hover, .menu-btn:hover {
  background: #eaeaea;
}
input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 340px;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: 17px;
  outline: none;
  box-sizing: border-box;

}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #5c6bc0;
  box-shadow: 0 0 8px rgba(92, 107, 192, 0.3);
}
#login-tab{
  margin-bottom: 10px;
}
.top-meal-box {
  border-radius: 12px;
  padding: 24px;                      /* 적당한 여백 */
  margin: 28px auto;
  width: 100%;
  max-width: 380px;                   /* 살짝 줄인 넓이 */
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(92, 107, 192, 0.08);  /* 그림자도 부드럽게 */
  text-align: center;
}
.top-meal-box h2 {
  color: #3f51b5;
  font-size: 17px;
  margin-bottom: 10px;
}

.top-meal-box p {
  font-size: 17px;
  color: #444;
}
/* 날짜 입력 안내 텍스트 */
#meal-section p {
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
  text-align: center;
  font-weight: 600;
}
/* 달력 input 필드 스타일 */
#meal-date {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: border 0.2s;
}
#meal-date:focus {
  border-color: #5c6bc0;
  outline: none;
  box-shadow: 0 0 5px rgba(92, 107, 192, 0.3);
}
.search-container {
  position: relative;  /* 꼭 필요함!! */
}
.easy-autocomplete-container ul {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.easy-autocomplete-container li {
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.easy-autocomplete-container li:hover {
  background-color: #f0f4ff;
}
.hidden {
  display: none;
}
/* 슬라이드 사이드바 스타일 */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  padding: 30px 20px;
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* 메뉴 항목 스타일 */
.sidebar-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: #f5f5f5;
  transition: background-color 0.2s, color 0.2s;
}

/* 호버 시 스타일 */
.sidebar-menu a:hover {
  background-color: #5c6bc0;
  color: white;
}

.sidebar-menu.open {
  right: 0;
}