@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

/* General Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

h1 {
    font-size: 1.8rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

h2 {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Forms and Inputs */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="password"],
input[type="tel"] {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.button-group {
    margin-top: 1.5rem;
}

.button-group p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.error-message {
    color: #d9534f;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Survey Page */
.survey-question {
    text-align: left;
    margin-bottom: 1.5rem;
    border: 1px solid #dfe6e9;
    padding: 1.5rem;
    border-radius: 8px;
}
.survey-question p {
    margin-top: 0;
    font-weight: 500;
    color: #2d3436;
}
.survey-question label {
    display: block;
    margin: 0.8rem 0;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.survey-question label:hover {
    background-color: #f7f8fa;
}
.survey-question input[type="radio"] {
    margin-right: 10px;
}


/* 홈 화면 스타일 */
body.home-body {
    display: block;
    background: #f0f2f5;
    padding: 2rem;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

#logoutButton {
    background: #f44336;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: none;
}
#logoutButton:hover {
    background: #d32f2f;
    transform: none;
}

main {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
}

.tab-menu {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.tab-link {
    flex: 1;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease-in-out;
    border-radius: 0;
    margin: 0;
}

.tab-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.tab-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 700;
    background-color: #fff;
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.map-layout {
    display: flex;
    gap: 1.5rem;
}

.map-view {
    flex: 1;
    height: 60vh;
    background-color: #e9ecef;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.store-list-container {
    flex: 1;
    display: flex;
    gap: 1.5rem;
}

.store-column {
    flex: 1;
}

.store-column h3 {
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.store-column ul {
    list-style-type: none;
    padding: 0;
    height: calc(60vh - 40px);
    overflow-y: auto;
}

.store-column li {
    background: #f8f9fa;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

/* Chatbot */
.chat-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 65vh;
    overflow: hidden;
}

.chat-window {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    max-width: 70%;
    line-height: 1.5;
}

.user-message {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.bot-message {
    background-color: #e9ecef;
    color: #343a40;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

#chatInput {
    flex-grow: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    background: transparent;
}
#chatInput:focus {
    outline: none;
}

#chatSendButton {
    border-radius: 0;
    background-color: #007bff;
    color: white;
    padding: 0 1.5rem;
}
#chatSendButton:hover {
    background-color: #0056b3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Map Modal Styles */
.map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.map-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.map-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.close-modal {
    color: #aaa;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    background: none;
}

.modal-map-view {
    flex: 1;
    width: 100%;
    background-color: #e9ecef;
}
