/* AI Recommendation Card */
.ai-recommendation-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 3px solid #3b82f6;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    animation: slideInUp 0.5s ease;
}

/* Scrollable Content */
.scrollable-content {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
}

.app-container[data-device="mobile"] .scrollable-content {
    max-height: calc(100vh - 150px);
    padding: 20px;
}

.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Recommended Banner */
.recommended-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.banner-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.banner-content h3 {
    font-size: 18px;
    color: #92400e;
    margin-bottom: 5px;
    font-weight: 700;
}

.banner-content p {
    font-size: 14px;
    color: #b45309;
    margin: 0;
    line-height: 1.4;
}

/* Registration Method Card */
.registration-method-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.registration-method-card.featured {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 3px solid #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

.method-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.method-header h4 {
    font-size: 22px;
    color: #1e40af;
    margin: 0;
    font-weight: 700;
}

.method-description {
    font-size: 15px;
    color: #1e3a8a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.method-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.method-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
}

/* Registration Divider */
.registration-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.registration-divider::before,
.registration-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.registration-divider::before {
    left: 0;
}

.registration-divider::after {
    right: 0;
}

.registration-divider span {
    background: white;
    padding: 0 15px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Alternative Methods Toggle */
.alternative-methods {
    margin-bottom: 20px;
}

.alternative-toggle {
    width: 100%;
    padding: 15px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.alternative-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.alternative-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.alternative-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.alternative-methods-content {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Notice Box */
.notice-box {
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notice-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-box p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
}

.recommendation-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.ai-recommendation-card h4 {
    font-size: 24px;
    color: #1e40af;
    margin-bottom: 15px;
    font-weight: 700;
}

.recommendation-desc {
    font-size: 15px;
    color: #1e3a8a;
    line-height: 1.6;
    margin-bottom: 20px;
}

.program-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-item {
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

/* Default Programs Section */
.default-programs-section {
    margin-top: 40px;
}

.default-programs-section h4 {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
    text-align: center;
}

.default-program-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.default-program-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.default-program-card:hover {
    border-color: #9ca3af;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.program-badge {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.default-program-card h5 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 700;
}

.program-brief {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
}

.program-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.program-meta span {
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Session Controls Enhancement */
.intensity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.temperature-toggle {
    display: flex;
    gap: 10px;
}

.temp-toggle-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.temp-toggle-btn.active {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #f59e0b;
}

.temp-toggle-btn:hover {
    border-color: #d1d5db;
}

.massage-note {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
}

.massage-note p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .default-program-list {
        grid-template-columns: 1fr;
    }
    
    .ai-recommendation-card {
        padding: 20px;
    }
    
    .program-details {
        flex-direction: column;
    }
    
    .auth-method-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ai-recommendation-card h4 {
        font-size: 20px;
    }
    
    .recommendation-desc {
        font-size: 14px;
    }
    
    .default-program-card {
        padding: 15px;
    }
    
    .intensity-labels {
        font-size: 11px;
    }
    
    .massage-note p {
        font-size: 12px;
    }
}

/* Language Selector */
.language-selector-welcome {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.language-option:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.language-option.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
}

.language-option .flag-icon {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 768px) {
    .language-selector-welcome {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .language-option {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .language-option .flag-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .language-selector-welcome {
        flex-direction: column;
        gap: 4px;
    }
    
    .language-option {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .language-option .flag-icon {
        font-size: 14px;
    }
}

/* Language Change Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Button Center Container */
.btn-center-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-center-container .btn {
    min-width: 200px;
}
