/**
 * 메가커피 단체 주문 웹 애플리케이션 스타일시트
 * 모바일 우선 반응형 디자인
 * 프리미엄하고 현대적인 UI/UX
 */

/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* 헤더 */
header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 메인 컨테이너 */
.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px 20px;
    animation: fadeIn 0.5s ease-out;
}

/* 섹션 공통 스타일 */
section {
    margin-bottom: 25px;
}

section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

section h2 span {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

/* 이름 선택 영역 */
.name-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.name-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.name-section-header h2 {
    margin-bottom: 0;
}

.settings-btn {
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.settings-btn:hover {
    background: #667eea;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.name-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.name-select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-name-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-name-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 체크박스 스타일 */
.mode-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    user-select: none;
}

/* 카테고리 버튼 */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.category-btn:hover {
    background: #f5f7fa;
    border-color: #667eea;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 메뉴 리스트 */
.menu-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.menu-list.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f0f0f0;
}

.menu-item-wrapper {
    margin-bottom: 10px;
}

.menu-item {
    padding: 12px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    background: #f5f7fa;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-item input[type="radio"],
.menu-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.menu-item .menu-label {
    flex: 1;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.menu-item .menu-label.popular-menu {
    font-weight: 700;
    color: #667eea;
}

.menu-item .menu-label.user-favorite {
    font-weight: 900;
    color: #FF8C00;
    /* 진한 오렌지색 */
}

/* 즐겨찾기 항목 배경 강조 */
.favorite-item-wrapper {
    background-color: #fff9db;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 12px;
    border: 1px solid #ffeaa7;
}

/* ICE/HOT 온도 선택 버튼 */
.temp-buttons {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
}

/* 여러 개 주문하기 모드 */
.temp-buttons.multi-mode {
    gap: 15px;
    padding: 12px 15px;
}

/* 온도 컨트롤 wrapper */
.temp-control-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 메인 버튼 (ICE/HOT 추가) */
.temp-main-btn {
    position: relative;
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #90caf9;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.temp-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* + 버튼 힌트 */
.plus-hint {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: bold;
}

.temp-main-btn:active {
    transform: translateY(0);
}

.temp-main-btn.temp-ice-btn {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-color: #90caf9;
}

.temp-main-btn.temp-ice-btn.has-quantity {
    background: linear-gradient(135deg, #6DD5FA 0%, #2980B9 100%);
    color: white;
    border-color: #2980B9;
}

.temp-main-btn.temp-hot-btn {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-color: #ef9a9a;
}

.temp-main-btn.temp-hot-btn.has-quantity {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    border-color: #EE5A6F;
}

/* 수량 배지 */
.temp-quantity-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5722;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: popIn 0.2s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 감소 버튼 */
.temp-minus-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.temp-minus-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: #fff5f5;
}

.temp-minus-btn:active {
    transform: scale(0.95);
}

/* 단일 주문 모드 버튼 - 여러 개 주문하기 모드와 동일한 스타일 */
.temp-btn,
.temp-main-btn {
    position: relative;
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #90caf9;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.temp-btn.temp-hot,
.temp-main-btn.temp-hot-btn {
    border-color: #ef9a9a;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.temp-btn:hover,
.temp-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.temp-btn.active.temp-ice,
.temp-main-btn.active.temp-ice-btn {
    background: linear-gradient(135deg, #6DD5FA 0%, #2980B9 100%);
    border-color: #2980B9;
    color: white;
    box-shadow: 0 2px 10px rgba(45, 128, 185, 0.3);
}

.temp-btn.active.temp-hot,
.temp-main-btn.active.temp-hot-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    border-color: #EE5A6F;
    color: white;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.temp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 스크롤바 스타일 */
.menu-list::-webkit-scrollbar {
    width: 8px;
}

.menu-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.menu-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 버튼 스타일 */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 12px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

/* 임시 장바구니 (여러 개 주문하기 모드용) */
.temp-cart-section {
    background: linear-gradient(135deg, #fff9db 0%, #fff5c7 100%);
    border: 2px solid #ffd43b;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideUp 0.3s ease-out;
}

.temp-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 212, 59, 0.5);
}

.temp-cart-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #f08c00;
}

.temp-cart-header h2 span {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

.clear-temp-cart-btn {
    background: white;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.clear-temp-cart-btn:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

.temp-cart-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.temp-cart-item {
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ffd43b;
    transition: all 0.3s ease;
}

.temp-cart-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.temp-cart-item-info {
    flex: 1;
    min-width: 0;
}

.temp-cart-item-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.temp-cart-item-temp {
    font-size: 0.85rem;
    color: #666;
}

.temp-cart-item-temp .temp-ice {
    color: #2980b9;
}

.temp-cart-item-temp .temp-hot {
    color: #e74c3c;
}

.temp-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.temp-cart-quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.temp-cart-quantity-btn:hover {
    border-color: #667eea;
    background: #f5f7fa;
}

.temp-cart-quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.temp-cart-quantity {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.temp-cart-delete-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff6b6b;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.temp-cart-delete-btn:hover {
    background: #ee5a6f;
    transform: scale(1.1);
}

/* 스크롤바 스타일 - 임시 장바구니 */
.temp-cart-list::-webkit-scrollbar {
    width: 6px;
}

.temp-cart-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.temp-cart-list::-webkit-scrollbar-thumb {
    background: #ffd43b;
    border-radius: 10px;
}

.temp-cart-list::-webkit-scrollbar-thumb:hover {
    background: #fab005;
}

/* 장바구니 보기 모드 선택 */
.cart-view-mode {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
}

.radio-label:hover {
    background: rgba(102, 126, 234, 0.1);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

/* 메뉴순 보기 모드 안내 메시지 */
.cart-view-hint {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 8px;
    background: #fff9db;
    border-radius: 6px;
    border: 1px dashed #ffd43b;
}

/* 음료 잔 수 뱃지 (메뉴순 보기) */
.cart-item-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.drink-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 1잔 - 기본/ subtle */
.drink-count-badge.single {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* 2잔 이상 - 강조/주의 */
.drink-count-badge.multiple {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 1px solid #2980b9;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
    animation: pulse 2s infinite;
}

/* 잔 수 아이콘 */
.drink-count-badge::before {
    font-size: 0.8rem;
}

.drink-count-badge.single::before {
    content: "☕";
}

.drink-count-badge.multiple::before {
    content: "☕";
}

/* 2잔 이상일 때 주목도 높은 애니메이션 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.6);
    }
}

/* 메뉴순 보기에서 메뉴 이름 강조 */
.cart-item-name .menu-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

/* 카테고리 헤더 (메뉴순 보기) - minimal */
.cart-category-header {
    color: #667eea;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 0 6px 0;
    margin-top: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

/* 첫 번째 카테고리 헤더는 상단 여백 없이 */
.cart-category-header:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.cart-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.cart-item-content {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cart-item-drinks {
    color: #666;
    line-height: 1.6;
}

.delete-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #ee5a6f;
    transform: scale(1.1);
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
}

/* 이름 관리 페이지 */
.add-name-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.name-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
}

.name-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.names-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.name-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.name-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.name-item-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 빈 상태 메시지 */
.empty-message {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 1rem;
}

/* 로딩 스피너 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* 푸터 */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: white;
    font-size: 0.8rem;
    opacity: 0.8;
}

footer p {
    margin: 5px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 20px 15px;
    }

    section h2 {
        font-size: 1.1rem;
    }

    .category-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .input-group {
        flex-direction: column;
    }
}

/* 데스크톱 최적화 */
@media (min-width: 768px) {
    body {
        padding: 40px;
    }

    .container {
        padding: 40px;
    }

    .action-section {
        flex-direction: row;
    }
}