/* styles.css - ไฟล์ CSS หลัก */
* {
    font-family: 'line_seed_sans_th', sans-serif;
}

.tab-active {
    border-bottom: 3px solid #f59e0b;
    color: #f59e0b;
}

.price-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.scrollable-modal {
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 500px;
    position: relative;
}

@media (max-width: 640px) {
    .scrollable-modal {
        max-height: 85vh;
        width: 95%;
        margin: 0 auto;
    }
}

.file-preview-container {
    margin-top: 1rem;
    display: none;
}

.file-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    display: block;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    z-index: 10;
}

.close-modal-btn:hover {
    color: #374151;
}

.loading-btn {
    position: relative;
}

.loading-btn .spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

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

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background-color: #3b82f6;
    color: white;
}

.step.completed .step-number {
    background-color: #10b981;
    color: white;
}

.step-text {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.step.active .step-text {
    color: #3b82f6;
    font-weight: 500;
}

.step.completed .step-text {
    color: #10b981;
}

/* Mobile App Navigation Styles */
.mobile-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.back-btn:active {
    transform: scale(0.95);
}

.page-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.page-container {
    min-height: calc(100vh - 140px);
    background: #f8fafc;
}

/* Animation for page transitions */
.page-enter {
    opacity: 0;
    transform: translateX(100%);
}

.page-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-out;
}

.page-exit {
    opacity: 1;
    transform: translateX(0);
}

.page-exit-active {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease-in;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Button animations */
.btn-animate {
    transition: all 0.2s ease;
}

.btn-animate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-animate:active {
    transform: translateY(0);
}
          /* Fixed Tab Styles - แก้ไขให้อยู่ด้านล่างเสมอ */
        .bottom-tabs {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 9999 !important;
            background: white;
            border-top: 1px solid #e5e7eb;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            height: 70px !important;
        }
        
        .tab-button {
            color: #6b7280;
            transition: all 0.2s ease;
            border-bottom: 3px solid transparent;
            padding: 12px 8px !important;
            font-size: 14px;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .tab-button:hover {
            color: #374151;
            background-color: #f9fafb;
        }
        
        .tab-button.active {
            color: #f59e0b !important;
            border-bottom-color: #f59e0b !important;
            background-color: #fffbeb;
            font-weight: 600;
        }
        
        /* Page container styles - เพิ่มพื้นที่ด้านล่างสำหรับ tabs */
        .page-content {
            padding-bottom: 80px !important;
            min-height: calc(100vh - 160px) !important;
            overflow-y: auto;
        }
        
        
        /* Loading and other styles */
        #loading {
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        }
        
        .card-hover, .btn-animate {
            will-change: transform;
            transform: translateZ(0);
            transition: all 0.2s ease;
        }
        
        .card-hover:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .btn-animate:active {
            transform: scale(0.95);
        }
        
        /* Prevent body scroll when needed */
        body {
            overflow-x: hidden;
            font-family: 'Prompt', sans-serif;
        }
        
     
        /* Smooth transitions */
        .content-section {
            transition: opacity 0.3s ease-in-out;
        }
        
        .content-section.hidden {
            display: none !important;
        }
