/home/awneajlw/.trash/welcome.php
<?php
/**
 * Welcome Page - Landing Page with Login/Signup Options
 * This page displays the welcome popup with multi-tasking person illustration
 * Background shows home page content (shop info and action buttons)
 * Features: Green popup overlay, action buttons, responsive design
 */

// Start session if not already started
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}

// Include required files
require_once 'includes/auth.php';    // Authentication functions

/**
 * Authentication Check
 * If user is already logged in, redirect to home page
 */
if (isLoggedIn()) {
    header('Location: home.php');
    exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome - OPTI SLIP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background: #f5f5f5;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
        }
        
        /* Home page background elements */
        .background-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 1;
            z-index: 1;
        }
        
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            background: #e5e7eb;
            color: #374151;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .nav-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }
        
        .nav-links a {
            color: #6b7280;
            text-decoration: none;
            font-weight: 500;
        }
        
        .nav-links a.active {
            color: #10b981;
            font-weight: 600;
        }
        
        .nav-icons {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .nav-icon {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .search-bar {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 25px;
            padding: 10px 20px;
            gap: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .search-input {
            background: transparent;
            border: none;
            color: #374151;
            outline: none;
            width: 200px;
        }
        
        .search-input::placeholder {
            color: #9ca3af;
        }
        
        .main-content {
            padding: 40px 30px;
            display: flex;
            flex-direction: column;
            gap: 30px;
            min-height: calc(100vh - 120px);
        }
        
        .content-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        .content-card {
            background: white;
            border: 2px solid #10b981;
            border-radius: 15px;
            padding: 20px;
            color: #374151;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .action-btn {
            padding: 10px 20px;
            background: #10b981;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }
        
        /* Welcome Popup */
        .welcome-popup {
            position: fixed;
            top: 50%;
            left: 48%;
            transform: translate(-50%, -50%);
            background: #059669;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            z-index: 1000;
            max-width: 600px;
            width: 80%;
            text-align: center;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .welcome-title {
            font-size: 48px;
            font-weight: 700;
            color: white;
            margin-bottom: 20px;
        }
        
        .welcome-text {
            color: white;
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 30px;
            opacity: 0.9;
        }
        
        .illustration-container {
            position: relative;
            margin: 30px 0;
            display: flex;
            justify-content: center;
        }
        
        .illustration-bg {
            width: 200px;
            height: 200px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .person {
            width: 60px;
            height: 60px;
            background: #059669;
            border-radius: 50%;
            position: relative;
            z-index: 2;
        }
        
        .person::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 10px;
            width: 40px;
            height: 40px;
            background: #10b981;
            border-radius: 50%;
        }
        
        .person::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 15px;
            width: 30px;
            height: 20px;
            background: #059669;
            border-radius: 0 0 15px 15px;
        }
        
        /* Multi-tasking items around person */
        .task-item {
            position: absolute;
            width: 20px;
            height: 20px;
            background: #059669;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
        }
        
        .task-item.top-left {
            top: 30px;
            left: 30px;
        }
        
        .task-item.top-right {
            top: 30px;
            right: 30px;
        }
        
        .task-item.middle-left {
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
        }
        
        .task-item.middle-right {
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
        }
        
        .task-item.bottom-right {
            bottom: 30px;
            right: 30px;
        }
        
        .speech-bubble {
            position: absolute;
            width: 15px;
            height: 15px;
            background: white;
            border-radius: 50%;
            top: 10px;
            right: 10px;
        }
        
        .speech-bubble::before {
            content: '...';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 8px;
            color: #059669;
        }
        
        .welcome-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 30px;
        }
        
        .welcome-btn {
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            min-width: 120px;
            text-align: center;
        }
        
        .signin-btn {
            background: white;
            color: #059669;
            border: none;
        }
        
        .signin-btn:hover {
            background: #f0fdf4;
            color: #059669;
        }
        
        .signup-btn {
            background: transparent;
            color: white;
            border: 2px solid white;
        }
        
        .signup-btn:hover {
            background: white;
            color: #059669;
        }
        
        /* Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
        }
        
        @media (max-width: 768px) {
            .welcome-popup {
                padding: 25px 15px !important;
                margin: 15px !important;
                max-width: 95% !important;
                width: 95% !important;
                max-height: 95vh !important;
            }
            
            .welcome-title {
                font-size: 32px !important;
                margin-bottom: 15px !important;
            }
            
            .welcome-text {
                font-size: 14px !important;
                margin-bottom: 25px !important;
            }
            
            .welcome-buttons {
                flex-direction: column !important;
                gap: 12px !important;
            }
            
            .welcome-btn {
                padding: 12px 25px !important;
                font-size: 14px !important;
                min-width: 100px !important;
            }
            
            .illustration-bg {
                width: 150px !important;
                height: 150px !important;
            }
            
            .person {
                width: 45px !important;
                height: 45px !important;
            }
            
            .person::before {
                width: 30px !important;
                height: 30px !important;
                top: 8px !important;
                left: 8px !important;
            }
            
            .person::after {
                width: 22px !important;
                height: 15px !important;
                left: 12px !important;
                bottom: -6px !important;
            }
            
            .task-item {
                width: 15px !important;
                height: 15px !important;
                font-size: 8px !important;
            }
            
            .task-item.top-left {
                top: 20px !important;
                left: 20px !important;
            }
            
            .task-item.top-right {
                top: 20px !important;
                right: 20px !important;
            }
            
            .task-item.middle-left {
                left: 15px !important;
            }
            
            .task-item.middle-right {
                right: 15px !important;
            }
            
            .task-item.bottom-right {
                bottom: 20px !important;
                right: 20px !important;
            }
            
            .speech-bubble {
                width: 12px !important;
                height: 12px !important;
                top: 8px !important;
                right: 8px !important;
            }
            
            /* Background content responsive */
            .top-nav {
                padding: 15px 20px !important;
                flex-direction: column !important;
                gap: 15px !important;
                align-items: flex-start !important;
            }
            
            .nav-links {
                display: none !important;
            }
            
            .search-bar {
                width: 100% !important;
                max-width: 300px !important;
            }
            
            .search-input {
                width: 100% !important;
            }
            
            .nav-icons {
                gap: 10px !important;
            }
            
            .nav-icon {
                width: 35px !important;
                height: 35px !important;
            }
            
            .main-content {
                padding: 20px 15px !important;
                gap: 20px !important;
            }
            
            .content-card {
                padding: 20px 15px !important;
                flex-direction: column !important;
                text-align: center !important;
                gap: 20px !important;
            }
            
            .logo-icon {
                width: 60px !important;
                height: 60px !important;
                font-size: 24px !important;
            }
            
            .content-section {
                grid-template-columns: 1fr !important;
            }
            
            .action-buttons {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 15px !important;
            }
            
            .action-btn {
                padding: 15px !important;
                font-size: 14px !important;
            }
        }
        
        @media (max-width: 480px) {
            .welcome-popup {
                padding: 20px 10px !important;
                margin: 10px !important;
                max-width: 98% !important;
                width: 98% !important;
                max-height: 98vh !important;
            }
            
            .welcome-title {
                font-size: 28px !important;
            }
            
            .welcome-text {
                font-size: 13px !important;
            }
            
            .illustration-bg {
                width: 120px !important;
                height: 120px !important;
            }
            
            .person {
                width: 35px !important;
                height: 35px !important;
            }
            
            .person::before {
                width: 25px !important;
                height: 25px !important;
                top: 5px !important;
                left: 5px !important;
            }
            
            .person::after {
                width: 18px !important;
                height: 12px !important;
                left: 9px !important;
                bottom: -5px !important;
            }
            
            .task-item {
                width: 12px !important;
                height: 12px !important;
                font-size: 6px !important;
            }
            
            .task-item.top-left {
                top: 15px !important;
                left: 15px !important;
            }
            
            .task-item.top-right {
                top: 15px !important;
                right: 15px !important;
            }
            
            .task-item.middle-left {
                left: 10px !important;
            }
            
            .task-item.middle-right {
                right: 10px !important;
            }
            
            .task-item.bottom-right {
                bottom: 15px !important;
                right: 15px !important;
            }
            
            .speech-bubble {
                width: 10px !important;
                height: 10px !important;
                top: 5px !important;
                right: 5px !important;
            }
            
            .top-nav {
                padding: 10px 15px !important;
            }
            
            .main-content {
                padding: 15px 10px !important;
            }
            
            .content-card {
                padding: 15px 10px !important;
            }
            
            .action-buttons {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }
            
            .action-btn {
                padding: 12px !important;
                font-size: 13px !important;
            }
        }
    </style>
</head>
<body>
    <!-- Background Home Page Content -->
    <div class="background-content">
        <!-- Top Navigation -->
        <div class="top-nav">
            <div style="display: flex; align-items: center; gap: 30px;">
                <h3 style="color: #374151;">Welcome</h3>
                <ul class="nav-links">
                    <li><a href="#" class="active">Home</a></li>
                    <li><a href="#">My Shop</a></li>
                    <li><a href="#">Promotion</a></li>
                    <li><a href="#">Notification</a></li>
            </ul>
            </div>
            
            <div style="display: flex; align-items: center; gap: 20px;">
                <div class="nav-icons">
                    <div class="nav-icon">
                        <i class="fas fa-shopping-cart"></i>
        </div>
                    <div class="nav-icon">
                <i class="fas fa-bell"></i>
                    </div>
                </div>
                
                <div class="search-bar">
                    <i class="fas fa-search"></i>
                    <input type="text" class="search-input" placeholder="Search Here....">
            </div>
        </div>
    </div>
    
        <!-- Main Content -->
        <div class="main-content">
            <!-- Shop Information Card -->
            <div class="content-card" style="grid-column: 1 / -1; display: flex; align-items: center; gap: 30px; padding: 30px;">
                <div class="logo-icon" style="width: 80px; height: 80px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px;">
                    <i class="fas fa-glasses"></i>
                    </div>
                <div style="flex: 1;">
                    <h2 style="color: #10b981; margin-bottom: 10px;">Name : AINAK STORE</h2>
                    <p style="margin-bottom: 20px;"><i class="fas fa-map-marker-alt" style="color: #10b981;"></i> Address: 95176 Gloria Ranch, Pollichworth</p>
                    <div style="display: flex; gap: 20px; flex-wrap: wrap;">
                        <span><i class="fab fa-whatsapp" style="color: #25d366;"></i> +923325122739</span>
                        <span><i class="fab fa-facebook" style="color: #1877f2;"></i> f ainakstore</span>
                        <span><i class="fab fa-instagram" style="color: #e4405f;"></i> ainakstore</span>
                        <span><i class="fas fa-globe" style="color: #059669;"></i> ainakstore.com</span>
                    </div>
                </div>
            </div>
            
            <!-- Action Buttons -->
            <div class="content-section">
                <div class="action-buttons" style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%;">
                    <button class="action-btn" style="padding: 20px; font-size: 16px; font-weight: 600;">New Order</button>
                    <button class="action-btn" style="padding: 20px; font-size: 16px; font-weight: 600;">Pending Order</button>
                    <button class="action-btn" style="padding: 20px; font-size: 16px; font-weight: 600;">Complete Order</button>
                    <button class="action-btn" style="padding: 20px; font-size: 16px; font-weight: 600;">Search Record</button>
                    <button class="action-btn" style="padding: 20px; font-size: 16px; font-weight: 600;">Sale Record</button>
                    <button class="action-btn" style="padding: 20px; font-size: 16px; font-weight: 600;">Add Record</button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Overlay -->
    <div class="overlay"></div>
    
    <!-- Welcome Popup -->
    <div class="welcome-popup">
        <h1 class="welcome-title">Welcome</h1>
        
        <p class="welcome-text">
            Lorem ipsum dolor sit amet consectetur. Hendrerit blandit justo tincidunt turpis vel donec. 
            Nam ullamcorper neque volutpat tellus eget molestie in amet. Sodales eu ac aliquet erat risus. Quisque.
        </p>
        
        <div class="illustration-container">
            <div class="illustration-bg">
                <!-- Multi-tasking person illustration -->
                <div class="person"></div>
                
                <!-- Task items around person -->
                <div class="task-item top-left">
                    <i class="fas fa-clipboard-list"></i>
                </div>
                <div class="task-item top-right">
                    <i class="fas fa-lightbulb"></i>
                </div>
                <div class="task-item middle-left">
                    <i class="fas fa-stethoscope"></i>
                </div>
                <div class="task-item middle-right">
                    <i class="fas fa-clock"></i>
                </div>
                <div class="task-item bottom-right">
                    <i class="fas fa-coffee"></i>
                </div>
                
                <!-- Speech bubbles -->
                <div class="speech-bubble"></div>
            </div>
        </div>
        
        <div class="welcome-buttons">
            <a href="signin.php" class="welcome-btn signin-btn">SIGN IN</a>
            <a href="register.php" class="welcome-btn signup-btn">SIGN UP</a>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>