/* 공통 CSS 스타일 */
:root {
  --primary-color: #3498db;
  --primary-light-color: #85c1e9;
  --secondary-color: #2ecc71;
  --background-color: #f9f9f9;
  --text-color: #333;
  --border-color: #ddd;
  --header-height: 60px;
  --footer-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.container {
  padding: 1rem;
  flex: 1;
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
}

.logo {
  height: 40px;
}

.tab-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background-color: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  padding: 0.5rem 0;
}

.tab.active {
  color: var(--primary-color);
}

.tab i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.tab span {
  font-size: 0.75rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* 토스트 메시지 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(51, 51, 51, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 80%;
  text-align: center;
  animation: fadeInOut 3s ease-in-out;
  pointer-events: none;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* 오류 토스트 */
.toast.error {
  background-color: rgba(231, 76, 60, 0.9);
}

/* 성공 토스트 */
.toast.success {
  background-color: rgba(46, 204, 113, 0.9);
} 