/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-logo i {
    font-size: 1.8rem;
}

.app-logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-logout i {
    font-size: 0.9rem;
}

.header {
    text-align: center;
    padding: 2rem 0;
    color: white;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.app-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */


/* Language Selector */
.language-selector {
    position: relative;
    margin-top: 1rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-btn i {
    width: 16px;
    height: 16px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
}

.language-option:hover {
    background: rgba(76, 175, 80, 0.1);
}

.language-option.active {
    background: rgba(76, 175, 80, 0.2);
    font-weight: 600;
}

.language-flag {
    font-size: 1.2rem;
}

.language-name {
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        margin-top: 0.5rem;
    }

    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .language-dropdown {
        left: -1rem;
        right: -1rem;
    }
}

/* Login Section */
.login-section {
    text-align: center;
    margin: 2rem 0;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.login-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-description {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Login Loading */
.login-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Error */
.login-error {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff5252;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff5252;
}

.error-content i {
    width: 20px;
    height: 20px;
}

.success-icon {
    margin-bottom: 1rem;
    color: #4CAF50;
}

.success-icon i {
    width: 40px;
    height: 40px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Container */
.app-container {
    width: 100%;
    height: 100vh;
    overflow: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 3rem 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e8;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #666;
}

.upload-content h3 {
    color: #333;
    font-size: 1.25rem;
    margin: 0;
}

.upload-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
    justify-content: center;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-primary {
    background: #4CAF50 !important;
    color: white !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 구독 버튼 강제 표시 */
#subscribeBtn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #4CAF50 !important;
    color: white !important;
}

/* 카메라 버튼 강제 표시 */
#cameraBtn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #4CAF50 !important;
    color: white !important;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
}

.btn-analyze {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

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

/* Preview Section */
.preview-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-preview {
    position: relative;
    margin-bottom: 1rem;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Loading Section */
.loading-section {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    color: #666;
    font-size: 1.1rem;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

/* Food Image in Results */
.food-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.result-food-image {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.result-food-image:hover {
    transform: scale(1.02);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.food-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.food-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.food-details h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.calories {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.activities-section h4,
.health-impacts-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.activity-icon {
    width: 24px;
    height: 24px;
    color: #4CAF50;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-name {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.activity-duration {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Macronutrients Section */
.macronutrients-section {
    margin: 1rem 0 1.5rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #17a2b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.macronutrients-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #17a2b8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.macronutrients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.macro-item:hover {
    transform: translateX(4px);
}

.macro-item.carbs {
    border-left: 4px solid #28a745;
}

.macro-item.protein {
    border-left: 4px solid #fd7e14;
}

.macro-item.fat {
    border-left: 4px solid #e83e8c;
}

.macro-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.macro-item.carbs .macro-icon {
    color: #28a745;
}

.macro-item.protein .macro-icon {
    color: #fd7e14;
}

.macro-item.fat .macro-icon {
    color: #e83e8c;
}

.macro-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.macro-name {
    font-weight: 500;
    color: #333;
}

.macro-amount {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Health Impacts Section */
.health-impacts-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.ingredients-info {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2196F3;
}

.ingredients-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.ingredients-list {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.health-impacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.health-impact-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
}

.health-impact-item.risky-for-user {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.health-impact-item h6 {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.health-impact-item .benefit {
    color: #27ae60;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-impact-item .risk {
    color: #e74c3c;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-impact-item .recommendation {
    color: #7f8c8d;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 상세 건강 분석 스타일 */
.detailed-analysis {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.detailed-health-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detailed-health-info h6 {
    color: #495057;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.detailed-health-info.diabetes h6 {
    border-bottom-color: #dc3545;
}

.detailed-health-info.hypertension h6 {
    border-bottom-color: #fd7e14;
}

.detailed-health-info.cholesterol h6 {
    border-bottom-color: #6f42c1;
}

.detailed-health-info.heart-disease h6 {
    border-bottom-color: #e91e63;
}

.detailed-health-info.kidney-disease h6 {
    border-bottom-color: #20c997;
}

.detailed-health-info.gastric h6 {
    border-bottom-color: #ffc107;
}

.detailed-health-info.general h6 {
    border-bottom-color: #6c757d;
}

.analysis-section {
    font-size: 14px;
    line-height: 1.6;
}

.analysis-section p {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.analysis-section ul {
    margin: 8px 0 15px 20px;
    padding: 0;
}

.analysis-section li {
    margin-bottom: 6px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

.analysis-section strong {
    color: #343a40;
}

/* 상세 분석의 아이콘 스타일 */
.detailed-health-info [data-feather] {
    width: 18px;
    height: 18px;
    color: inherit;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .detailed-health-info {
        padding: 15px;
    }

    .detailed-health-info h6 {
        font-size: 15px;
    }

    .analysis-section {
        font-size: 13px;
    }

    .analysis-section li {
        font-size: 12px;
    }
}

.health-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.health-detail:last-child {
    margin-bottom: 0;
}

.health-label {
    font-weight: 500;
    min-width: 80px;
    font-size: 0.85rem;
    color: #666;
}

.health-benefit {
    color: #4CAF50;
}

.health-risk {
    color: #FF5722;
}

.health-recommendation {
    color: #2196F3;
}

.health-content {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.health-content.benefit {
    color: #2E7D32;
}

.health-content.risk {
    color: #D32F2F;
}

.health-content.recommendation {
    color: #1976D2;
}

/* Collapsible Health Section */
.health-toggle {
    background: #ffc107;
    border: #D32F2F;
    color: #2196F3;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0.5rem 0;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.health-toggle:hover {
    color: #1976D2;
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.install-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.btn-install {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-install:hover {
    background: #45a049;
}

.btn-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dismiss:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 1.5rem 0;
    }

    .app-title {
        font-size: 1.75rem;
    }

    .upload-section,
    .preview-section,
    .results-section {
        padding: 1.5rem;
    }

    .result-food-image {
        height: 160px;
        border-radius: 12px;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }

    .food-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .install-banner {
        left: 10px;
        right: 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    }

    .upload-section,
    .preview-section,
    .results-section,
    .loading-section {
        background: #2c3e50;
        color: white;
    }

    .upload-area {
        background: #34495e;
        border-color: #5a6c7d;
    }

    .upload-area:hover {
        border-color: #4CAF50;
        background: #3d5a3d;
    }

    .btn-secondary {
        background: #34495e;
        color: white;
        border-color: #5a6c7d;
    }

    .activity-item {
        background: #34495e;
        color: white;
    }

    .activity-name {
        color: white;
    }

    .install-banner {
        background: #2c3e50;
        color: white;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .upload-area {
        border-width: 3px;
    }
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.landing-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    text-align: center;
    padding: 3rem 0 2rem 0;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

/* Feature Preview */
.feature-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.phone-mockup {
    width: 200px;
    height: 300px;
    background: #333;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #333;
    text-align: center;
}

.demo-upload,
.demo-analysis,
.demo-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.demo-icon {
    width: 24px;
    height: 24px;
    color: #4CAF50;
}

.demo-arrow {
    font-size: 1.2rem;
    color: #666;
    font-weight: bold;
}

.demo-content span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: #4CAF50;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

/* Login Section */
.login-section {
    text-align: center;
    margin-top: auto;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #333;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 280px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-login:active {
    transform: translateY(0);
}

.google-icon {
    flex-shrink: 0;
}

.login-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

.landing-footer {
    text-align: center;
    padding: 1.5rem 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Login Loading Overlay */
.login-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content .loading-spinner {
    margin-bottom: 1rem;
}

.loading-content p {
    font-size: 1.1rem;
    margin: 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    width: 30px;
    height: 30px;
}

/* Login Error */
.login-error {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    z-index: 1500;
    animation: slideDown 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.error-content i {
    width: 20px;
    height: 20px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* App Container */
.app-container {
    min-height: 100vh;
}

/* User Info in Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info span {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-logout i {
    width: 18px;
    height: 18px;
}

/* Responsive for landing page */
@media (max-width: 480px) {
    .landing-container {
        padding: 0 15px;
    }

    .landing-header {
        padding: 2rem 0 1.5rem 0;
    }

    .landing-title {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 160px;
        height: 240px;
        padding: 12px;
    }

    .feature-item {
        padding: 1rem;
    }

    .btn-login {
        padding: 0.875rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .user-info {
        order: -1;
    }
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.25rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab.active {
    background: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-tab:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab i {
    width: 18px;
    height: 18px;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    gap: 2rem;
}

.tab-content.active {
    display: flex;
}

/* Meal Time Badge */
.meal-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.meal-time-badge i {
    width: 16px;
    height: 16px;
}

/* Confidence Display */
.confidence {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Health Alert */
.health-alert {
    background: #ff5722;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-content i {
    width: 20px;
    height: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Action Buttons in Results */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.action-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* History Section */
.history-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #333;
}

.history-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.loading-history {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-history .spinner {
    margin: 0 auto 1rem auto;
}

.history-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #4CAF50;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.history-meal-time {
    background: #4CAF50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-delete-history {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.btn-delete-history:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    transform: scale(1.1);
}

.btn-delete-history i {
    width: 16px;
    height: 16px;
}

.history-food-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.history-food-info:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(5px);
}

.history-food-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.history-food-details h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.history-food-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Settings Section */
.settings-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.settings-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 2rem 0;
    color: #333;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.setting-card.premium-feature {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9c4 0%, #f8f9fa 100%);
}

.setting-header {
    position: relative;
    margin-bottom: 1rem;
}

.setting-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.setting-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.premium-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffc107;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Health Conditions */
.health-conditions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.health-condition-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.health-condition-item:hover {
    border-color: #4CAF50;
    background: #f0f0f0;
}

.health-condition-item input {
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
}

.health-condition-item label {
    flex: 1;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Phone Numbers */
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-number-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-number-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.phone-number-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.phone-number-input:disabled {
    background: #f5f5f5;
    color: #999;
}

.btn-remove-phone {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove-phone:hover {
    background: #d32f2f;
}

.btn-remove-phone i {
    width: 16px;
    height: 16px;
}

/* Meal Time Settings */
.meal-time-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meal-time-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.meal-time-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.meal-time-label i {
    width: 18px;
    height: 18px;
    color: #4CAF50;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-range input[type="time"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 80px;
    /* 24시간 형식으로 표시 */
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.time-range input[type="time"]::-webkit-datetime-edit-ampm-field {
    display: none;
}

.time-range input[type="time"]::-webkit-datetime-edit-hour-field,
.time-range input[type="time"]::-webkit-datetime-edit-minute-field {
    font-weight: normal;
}

.time-range span {
    color: #666;
    font-weight: 500;
}

/* General Settings */
.general-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex: 1;
}

.setting-label input {
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
}

.setting-text {
    font-size: 0.95rem;
    color: #333;
}

/* Subscription Info */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.subscription-status.free {
    border-color: #2196f3;
    background: linear-gradient(135deg, #e3f2fd 0%, white 100%);
}

.subscription-status.premium {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9c4 0%, white 100%);
}

.subscription-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-status.free .subscription-icon {
    background: #2196f3;
    color: white;
}

.subscription-status.premium .subscription-icon {
    background: #ffc107;
    color: #333;
}

.subscription-details h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.subscription-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.btn-upgrade {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-upgrade:hover {
    background: #ffb300;
    transform: translateY(-1px);
}

/* Weekly Summary Modal */
.summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.summary-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.summary-header h3 {
    margin: 0;
    color: #333;
}

.btn-close-summary {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-summary:hover {
    background: #f0f0f0;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.summary-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
}

.summary-stat-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Responsive Design for New Features */
@media (max-width: 480px) {
    .nav-tab {
        font-size: 0.8rem;
        padding: 0.625rem 0.5rem;
    }

    .nav-tab span {
        display: none;
    }

    .history-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .history-controls {
        justify-content: center;
    }

    .health-conditions {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        flex: none;
        width: 100%;
    }

    .phone-number-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Notifications */
.error-notification,
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeOut 5s linear forwards;
}

.error-notification {
    background: rgba(244, 67, 54, 0.95);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.success-notification {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out, fadeOut 5s linear forwards 0.5s;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-content i {
    width: 20px;
    height: 20px;
}

.warning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out, fadeOut 5s linear forwards 0.5s;
    max-width: 350px;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.warning-content i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content span {
    flex: 1;
    line-height: 1.4;
}

.warning-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0;
}

.warning-close i {
    width: 16px;
    height: 16px;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.error-content i,
.success-content i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Drag and drop styles */
.upload-area.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    transform: scale(1.02);
}

.upload-area.dragover .upload-icon {
    color: #4CAF50;
    transform: scale(1.1);
}

/* Health impact styles */
.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.ingredient-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem;
    display: inline-block;
}

.health-impact-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.health-impact-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.health-impact-item.risky-for-user {
    border-color: #ff5722;
    background: linear-gradient(135deg, #fffbee 0%, white 100%);
}

.health-impact-item h6 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.health-impact-item p {
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.health-impact-item p i {
    width: 16px;
    height: 16px;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.health-impact-item .benefit {
    color: #2e7d32;
}

.health-impact-item .benefit i {
    color: #4caf50;
}

.health-impact-item .risk {
    color: #c62828;
}

.health-impact-item .risk i {
    color: #f44336;
}

.health-impact-item .recommendation {
    color: #1565c0;
}

.health-impact-item .recommendation i {
    color: #2196f3;
}

/* History enhancements */
.history-date-group {
    margin-bottom: 2rem;
}

.history-date-header {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.ingredient-badge {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem;
    display: inline-block;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.saved {
    background: #28a745;
    color: white;
    cursor: not-allowed;
}

.btn.saved:hover {
    background: #28a745;
    transform: none;
}

.btn-completed {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
    opacity: 1 !important;
}

.btn i[data-feather="loader"] {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Premium feature enhancements */
.premium-feature.disabled .phone-number-input:disabled {
    background: #f5f5f5;
    color: #999;
    border-style: dashed;
}

.premium-feature.disabled .phone-number-input:disabled::placeholder {
    color: #bbb;
}

/* Calendar Styles */
.calendar-section {
    padding: 0.5rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.btn-nav {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.btn-nav i {
    width: 18px;
    height: 18px;
    color: #666;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #666;
    padding: 8px 4px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day {
    background: white;
    min-height: 80px;
    padding: 0.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #fafafa;
    opacity: 0.5;
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

.day-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    text-align: center;
}

.meal-photos {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.meal-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.15rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 20px;
}

.meal-slot:hover {
    background: rgba(76, 175, 80, 0.1);
}

.meal-slot.has-photo:hover {
    transform: scale(1.02);
}

.meal-icon {
    width: 12px;
    height: 12px;
    color: #666;
    flex-shrink: 0;
}

.meal-photo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.meal-placeholder {
    width: 16px;
    height: 16px;
    border: 1px dashed #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.meal-placeholder i {
    width: 8px;
    height: 8px;
    color: #ccc;
}

.breakfast .meal-icon { color: #ff9800; }
.lunch .meal-icon { color: #4caf50; }
.dinner .meal-icon { color: #2196f3; }

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-food-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-food-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analysis-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.analysis-item {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #333;
}

.analysis-item strong {
    color: #4CAF50;
    font-weight: 600;
}

.ingredients-section,
.activities-section,
.health-impacts-section,
.description-section {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ingredients-section h4,
.activities-section h4,
.health-impacts-section h4,
.description-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-section h4:before {
    content: "🥗";
}

.activities-section h4:before {
    content: "🏃‍♂️";
}

.health-impacts-section h4:before {
    content: "💚";
}

.description-section h4:before {
    content: "📝";
}

.modal-analysis-content .activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #4CAF50;
}

.modal-analysis-content .activity-icon {
    width: 24px;
    height: 24px;
    color: #4CAF50;
    flex-shrink: 0;
}

.modal-analysis-content .activity-details {
    flex: 1;
}

.modal-analysis-content .activity-name {
    font-weight: 500;
    color: #333;
    display: block;
}

.modal-analysis-content .activity-duration {
    color: #666;
    font-size: 0.9rem;
    display: block;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-footer .btn {
    flex: 1;
    min-width: 120px;
}

/* Responsive calendar adjustments */
@media (max-width: 768px) {
    .calendar-section {
        padding: 0.5rem;
    }

    .calendar-day {
        min-height: 70px;
        padding: 0.25rem;
    }

    .day-number {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .meal-slot {
        gap: 0.2rem;
        padding: 0.1rem;
        min-height: 18px;
    }

    .meal-icon {
        width: 11px;
        height: 11px;
    }

    .meal-photo {
        width: 14px;
        height: 14px;
    }

    .meal-placeholder {
        width: 14px;
        height: 14px;
    }

    .modal-content {
        width: 95vw;
        margin: 0.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        flex: none;
    }

    .calendar-header h3 {
        font-size: 1rem;
    }

    .btn-nav {
        width: 32px;
        height: 32px;
    }

    .btn-nav i {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .calendar-section {
        padding: 0.25rem;
    }

    .calendar-day {
        min-height: 65px;
        padding: 0.2rem;
    }

    .day-number {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .meal-photos {
        gap: 0.1rem;
    }

    .meal-slot {
        gap: 0.15rem;
        padding: 0.05rem;
        min-height: 16px;
    }

    .meal-icon {
        width: 10px;
        height: 10px;
    }

    .meal-photo {
        width: 12px;
        height: 12px;
    }

    .meal-placeholder {
        width: 12px;
        height: 12px;
    }

    .calendar-header {
        margin-bottom: 0.5rem;
    }

    .calendar-header h3 {
        font-size: 0.95rem;
    }

    .btn-nav {
        width: 30px;
        height: 30px;
    }

    .btn-nav i {
        width: 14px;
        height: 14px;
    }

    .calendar-day-header {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
}

/* Premium Features Section */
.premium-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
}

.premium-header {
    margin-bottom: 2.5rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.premium-star {
    color: #ffd700;
    width: 20px;
    height: 20px;
}

.premium-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.premium-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.premium-feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.premium-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.premium-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.premium-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.premium-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.premium-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.premium-detail {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

/* Landing page responsive adjustments */
@media (max-width: 768px) {
    .premium-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .premium-header h2 {
        font-size: 1.5rem;
    }

    .premium-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .premium-feature {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .premium-section {
        padding: 1rem;
        border-radius: 16px;
    }

    .premium-header h2 {
        font-size: 1.25rem;
    }

    .premium-header p {
        font-size: 1rem;
    }

    .premium-features {
        gap: 0.75rem;
    }

    .premium-feature {
        padding: 1rem;
    }

    .premium-icon {
        width: 40px;
        height: 40px;
    }

    .premium-icon i {
        width: 20px;
        height: 20px;
    }
}

/* Settings Page Styles */
.subscription-info {
    margin-bottom: 1.5rem;
}

.subscription-plan {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subscription-expires {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.subscription-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Trial Progress Bar */
.trial-progress {
    margin: 1rem 0;
}

.trial-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trial-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #81C784 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    min-width: 20px;
}

.trial-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.trial-progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

.subscription-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.subscription-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--hover-bg);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Health Conditions Grid */
.health-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.health-condition-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.health-condition-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.health-condition-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.health-condition-label {
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
}

/* Contact Management */
.contacts-list {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.contact-type-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 80px;
}

.contact-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.contact-input:focus,
.contact-type-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.remove-contact-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-contact-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

.add-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgb(76, 175, 80, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.add-contact-btn:hover {
    background: rgb(76, 175, 80, 1);
}

.add-contact-btn:disabled {
    background: rgb(76, 175, 80, 0.3);
    cursor: not-allowed;
}

/* Auto Share Toggle */
.auto-share-toggle {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.toggle-switch {
    position: relative;
    display: inline-block !important;
    width: 50px;
    height: 24px;
    visibility: visible !important;
    opacity: 1 !important;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

input:checked + .toggle-slider {
    background-color: #4CAF50 !important;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* General Settings Toggle Switches */
.setting-item {
    display: flex !important;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    visibility: visible !important;
    opacity: 1 !important;
}

.setting-item .toggle-switch {
    margin-left: auto;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.auto-share-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.auto-share-preview h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.message-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
}

/* Weekly Report Info */
.weekly-report-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.report-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.report-label i {
    width: 18px;
    height: 18px;
}

.report-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Premium feature styling */
.premium-feature.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 0.5rem;
}

/* Responsive adjustments for settings */
@media (max-width: 768px) {
    .health-conditions-grid {
        grid-template-columns: 1fr;
    }

    .subscription-actions {
        flex-direction: column;
    }

    .subscription-actions .btn {
        width: 100%;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-type-select,
    .contact-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .remove-contact-btn {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
}

/* Health PDF Upload Styles */
.pdf-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.pdf-upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.pdf-upload-area .upload-icon {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.pdf-upload-area h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.pdf-upload-area p {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.pdf-upload-area small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.health-pdf-status {
    background: #e8f5e8;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 1rem;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pdf-info i {
    color: #4CAF50;
    width: 20px;
    height: 20px;
}

.btn-remove-pdf {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-left: auto;
}

.btn-remove-pdf:hover {
    background: #fee;
}

.health-data-summary {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.health-data-summary h5 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
}

.health-data-summary p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.health-concerns {
    margin-top: 0.75rem;
}

.health-concerns ul {
    margin: 0.25rem 0 0 1rem;
    color: var(--text-secondary);
}

.health-concerns li {
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

/* Health PDF List Styles */
.health-pdf-list {
    margin-top: 1rem;
}

.health-pdf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.pdf-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.pdf-item-icon {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pdf-item-details h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.pdf-item-details small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.btn-remove-pdf {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-remove-pdf:hover {
    background: #fee;
}

.health-pdf-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.health-pdf-loading .spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 1rem;
}

.no-health-pdfs {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

.pdf-files-list {
    margin-bottom: 1rem;
}

.add-more-pdf {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.add-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px dashed #4CAF50;
    color: #4CAF50;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-pdf-btn:hover {
    background: #e8f5e8;
    border-color: #45a049;
    color: #45a049;
}

.add-pdf-btn i {
    width: 16px;
    height: 16px;
}

/* Premium feature enhancements */
.premium-feature.disabled .pdf-upload-area {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.btn-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Subscription Modal Styles */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.subscription-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.subscription-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.btn-close-subscription {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-close-subscription:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

.plan-info {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.payment-form {
    margin: 1.5rem 0;
}

.payment-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

#stripe-elements {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    min-height: 60px;
    display: block;
    transition: border-color 0.3s ease;
}

#stripe-elements:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

#stripe-elements .StripeElement {
    padding: 8px 0;
}

#stripe-elements .StripeElement--focus {
    border-color: #4CAF50;
}

#stripe-elements .StripeElement--invalid {
    border-color: #e74c3c;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.card-errors {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

#subscribe-submit {
    width: 100%;
    padding: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#subscribe-submit:hover {
    background: #45a049;
}

#subscribe-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .subscription-modal {
        padding: 10px;
    }

    .subscription-modal-content {
        padding: 1.5rem;
    }

    .subscription-header h3 {
        font-size: 1.25rem;
    }

    .plan-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .subscription-modal-content {
        padding: 1rem;
    }

    .plan-features {
        padding: 1rem;
    }
}

/* Responsive notification adjustments */
@media (max-width: 480px) {
    .error-notification,
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .ingredient-tag,
    .ingredient-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Update subscription modal styles with fixed color values as requested. */
.subscription-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.btn-close-subscription:hover {
    background: #f0f0f0;
    color: #333;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
}
.subscription-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.btn-close-subscription:hover {
    background: #f0f0f0;
    color: #333;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

#stripe-elements {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    min-height: 60px;
    display: block;
    transition: border-color 0.3s ease;
}
/* Premium Health Analysis Section */
.premium-health-analysis {
    background: linear-gradient(135deg, #f77373 0%, #e9ecef 100%);
    border: 2px solid #6f42c1;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.1);
}

.premium-badge-container {
    text-align: center;
    margin-bottom: 15px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.premium-badge i {
    width: 14px;
    height: 14px;
}

.premium-health-analysis h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.premium-analysis-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.analysis-insight {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon.positive {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.insight-icon.warning {
    background: rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 152, 0, 0.5);
}

.insight-icon.recommendation {
    background: rgba(33, 150, 243, 0.3);
    border: 2px solid rgba(33, 150, 243, 0.5);
}

.insight-icon i {
    width: 18px;
    height: 18px;
    color: white;
}

.insight-content h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.insight-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Medical Opinion Section */
.medical-opinion-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.medical-opinion {
    padding: 0;
}

.doctor-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.opinion-content {
    padding: 16px;
    line-height: 1.6;
}

.opinion-content p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.6;
}

/* 프리미엄 분석 내용 색상 스타일 */
.opinion-content .positive-aspect,
.premium-analysis-content .positive-aspect {
    color: #2e7d32;
    font-weight: 500;
}

.opinion-content .warning-aspect,
.premium-analysis-content .warning-aspect {
    color: #c62828;
    font-weight: 500;
}

.opinion-content .recommendation-aspect,
.premium-analysis-content .recommendation-aspect {
    color: #1565c0;
    font-weight: 500;
}

.medical-disclaimer {
    background: #f8f9fa;
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.medical-disclaimer i {
    color: #6c757d;
    margin-top: 2px;
    flex-shrink: 0;
}

.medical-disclaimer small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.no-medical-opinion {
    text-align: center;
    padding: 20px;
    color: #28a745;
}

.no-medical-opinion i {
    color: #28a745;
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
}

.no-medical-opinion p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .premium-health-analysis {
        padding: 20px 16px;
        margin: 16px 0;
    }

    .analysis-insight {
        padding: 12px;
        gap: 10px;
    }

    .insight-icon {
        width: 32px;
        height: 32px;
    }

    .insight-icon i {
        width: 16px;
        height: 16px;
    }
}

/* Activities Section */
.activities-section {
    background-color: #f8fffe;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}