/* ... (기존 CSS 유지) ... */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative; /* 탭 메뉴 배치를 위해 */
}

/* 탭 메뉴 스타일 */
.nav-tabs {
    display: flex;
    justify-content: flex-end;
    background: #f8f9ff;
    padding: 10px 20px 0;
    border-bottom: 1px solid #e8ebff;
}

.nav-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    margin-left: 5px;
    transition: all 0.3s ease;
    background: #e8ebff;
}

.nav-tab:hover {
    background: #dce0ff;
    color: #667eea;
}

.nav-tab.active {
    background: white;
    color: #667eea;
    border-top: 3px solid #667eea;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.upload-section {
    padding: 40px 30px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    background: #f0f2ff;
    border-color: #764ba2;
    transform: translateY(-2px);
}

.upload-area.dragover {
    background: #e8ebff;
    border-color: #764ba2;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-area p {
    color: #667eea;
    font-size: 1.1em;
    font-weight: 500;
}

.preview-section {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-section img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.remove-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.analyze-section {
    padding: 0 30px 30px;
    text-align: center;
}

.analyze-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.analyze-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #a0b0ea 0%, #a892bf 100%);
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-section {
    padding: 30px;
    background: #f8f9ff;
    border-top: 2px solid #e8ebff;
}

.results-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.results-grid {
    margin-bottom: 30px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.result-item.top-result {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.result-percentage {
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e8ebff;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.top-result-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.top-result-summary h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.result-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #333;
}

.result-text strong {
    color: #667eea;
    font-size: 1.3em;
}

.confidence {
    display: block;
    margin-top: 10px;
    color: #764ba2;
    font-weight: 600;
}

/* 추가된 정보 섹션 스타일 */
.info-section {
    margin-top: 50px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: white;
}

.info-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e8ebff;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-card h2 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8ebff;
    padding-bottom: 10px;
}

.info-card p, .info-card li {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.info-card ol {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

/* 푸터 스타일 */
footer {
    padding: 30px;
    background: #f1f3f9;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content p {
    color: #777;
    margin-bottom: 10px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
}

.upload-subtext {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

/* 음식 추천 페이지 스타일 */
.food-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.food-name {
    font-size: 2em;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.food-desc {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.food-placeholder {
    font-size: 6em;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* 반응형 처리 */
@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .container {
        border-radius: 15px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
    
    .food-image {
        width: 100%;
        height: auto;
    }
}