  body, html {
    font-family: Monospace;
    overflow: hidden; /* prevents scrolling */
    height: 100%;
    width: 101%;     /* ensures full height */
    margin: 0;        /* removes default body margin */
    background-color: #FFFFFF;
    background-image: url("./background.png");
    background-size: cover;       /* cover entire viewport */
    background-position: center;  /* center the image */
    background-repeat: no-repeat; /* don't tile */
  }
  
  .container {
    display: flex;
    height: 95vh;
    padding: 20px;
    gap: 20px;
  }
  #nameInputLabel {
    padding-left:10px;
    font-size: 18px;
    font-weight: 600;
  }

  #nameInput {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
  }
  
  /* 좌측 멤버 리스트 */
  .member-list {
    width: 35%;
    background: #ffffff50;
    border-radius: 10px;
    padding: 20px;

    display: flex;
    flex-direction: column;

    margin-top: 50px;
  }

  .member-list h2 {
    font-size: 30px;
  }
  
  .member-card {
    background: #d69c69;
    border: 2px solid #000000;
    min-height: 50px;
    height: auto;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
  }

  #member-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    gap: 5px;
  }

  .member-card:hover {
    background: #a4652d;
  }

  #button-group {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  #button-group button:first-child {
    margin-left: 10px;
  }

  #button-group button:last-child {
    margin-right: 10px;
  }
  
  .add-member-btn {
    width: 50px;
    height: 50px;
    border-radius: 30%;
    border: none;
    font-size: 40px;
    cursor: pointer;
    background: #A87142;
    color:#ffffff;
  }

  #member-name-container {
    display: inline-block;
    border-radius: 0%;
    border-bottom: 2px solid #0000003e;
    min-width: 200px;
    padding: 5px;
    padding-left: 2px;
  }
  
  .member-name {
    font-size: 15px;
    font-weight: 600;
  }

  #member-allergies-container {
    border-radius: 0%;
    width: auto;
    padding: 5px;
    padding-top: 10px;
    padding-left: 2px;
  }

  .member-allergy {
    font-size: 15px;
    font-weight: 500;
  }

  .clear-btn {
    width: 60px;
    height: 40px;
    border-radius: 10%;
    border: none;
    font-size: 15px;
    cursor: pointer;
    background: #A87142;
    font-weight: 600;
    color: #ffffff;
  }
  
  /* 오른쪽 메인 영역 */
  .main-panel {
    width: 59%;
    background: #FFFFFF;
    border: 3px solid #89644E;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .right-panel {
    width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100vh; /* make the panel full height */
    overflow: hidden; /* hide overflow; content will scroll inside tab-content */
    padding: 16px;
    box-sizing: border-box;
  }

  .right-panel-header {
    /* Fixed header at top */
    flex-shrink: 0; /* do not shrink */
  }

  .right-panel h1 {
    margin-bottom: 16px;
    text-align: center;  /* center title */
  }

    /* Tabs area */
  .tabs {
    display: flex;
    justify-content: left;
    gap: 8px;
    margin-bottom: 6px;
  }  

    /* Tab buttons */
  .tab-button {
    padding: 8px 12px;
    margin-right: 8px;
    border: 1px solid #282828;
    border-radius: 30px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
  }

    /* Active tab */
  .tab-button.active {
    padding: 8px 12px;
    margin-right: 8px;
    border: 4px solid #282828;
    border-radius: 30px;
    background-color: #c78a56;
    cursor: pointer;
    font-weight: bold;
  }

    /* Tab content container */
  #tab-content {
    margin-top: 16px;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    align-items: center;       /* center inner content (food cards, allergies) */
    width: 100%;
  }

  .tab-content {
    /* Make content scrollable */
    flex: 1; /* take remaining space */
    overflow-y: auto;
    width: 100%;
    position: relative;
  }

    /* Food cards layout */
  .food-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* center the cards */
    gap: 12px;
    width: 100%;
  }  
    /* Single food card */
  .food-card {
    background-color: #ffffff;
    border: 4px solid #000000;
    border-radius: 8px;
    padding: 8px;
    flex: 1 1 200px;  /* flex-grow, flex-shrink, base width */
    box-sizing: border-box;
  }

    /* Food image */
  .food-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
  }

    /* Food text inside card */
  .food-info strong {
    display: block;
    margin-bottom: 4px;
  }

  .food-allergy-text {
    font-size: 0.9rem;
    color: #555;
  }


  /* 모달 */
  .modal {
    display: none; /* JS에서 block으로 변경 */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: #A87142;
    height: 320px;
    width: 350px;
    padding: 20px;
    border-radius: 15px;
    position: relative;
  }
  
  .close-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }
  
  .allergy-box {
    padding: 10px;
    padding-top: 0px;
    border-radius: 10px;
    margin-top: 15px;
  }
  
  .allergy-list {
    max-height: 140px;
    overflow-y: auto;
    padding-left: 5px;
    height: 100vh;
  }
  
  /* Container holds all allergy items */
.current_allergy_container {
    display: flex;
    flex-wrap: wrap;   /* wrap items to next line if needed */
    gap: 8px;          /* spacing between items */
    padding: 10px;
}

/* Each allergy text is an item */
.current_allergy_item {
    display: inline-block;
    padding: 8px 12px;
    font-size: 16px;
    background-color: #d69c69;
    border-radius: 12px;
    border: 1px solid #000000;       /* optional border */
    white-space: normal;
    overflow-wrap: break-word;
    margin: 3px;
    font-weight: 550;

}
  
  .modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .logo-container {
    position: absolute;
    top: 20px;
    left: 5px;
    margin-left:25px;
    display: flex;
    align-items: center;
    gap: 12px;

    z-index: 999;
}

.logo-icon {
    width: 210px;     /* 로고 크기 조절 */
    height: 70px;
}

.allergy-search {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #fff;
}
  