<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Booking Confirmation</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background: linear-gradient(135deg, #f0730b 0%, #22c55e 100%);
            color: white;
            padding: 30px;
            text-align: center;
            border-radius: 10px 10px 0 0;
        }
        .header h1 {
            margin: 0;
            font-size: 28px;
        }
        .content {
            background: #f9f9f9;
            padding: 30px;
            border-radius: 0 0 10px 10px;
        }
        .info-box {
            background: white;
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            border-left: 4px solid #f0730b;
        }
        .info-row {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .info-row:last-child {
            border-bottom: none;
        }
        .info-label {
            font-weight: bold;
            width: 150px;
            color: #666;
        }
        .info-value {
            color: #333;
        }
        .highlight {
            background: #fff3cd;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            border-left: 4px solid #ffc107;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid #eee;
            color: #666;
            font-size: 14px;
        }
        .button {
            display: inline-block;
            padding: 12px 30px;
            background: #f0730b;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>🏨 Booking Confirmation</h1>
        <p style="margin: 10px 0 0 0; font-size: 16px;">Hotel Bardan Boutique</p>
    </div>

    <div class="content">
        <h2 style="color: #f0730b;">Dear {{ $booking->guest_name }},</h2>
        
        <p>Thank you for choosing Hotel Bardan Boutique! We're delighted to confirm your reservation.</p>

        <div class="highlight">
            <strong>⚠️ Important:</strong> Your booking is currently <strong>PENDING</strong> confirmation. Our team will review and confirm your reservation shortly. You will receive another email once confirmed.
        </div>

        <div class="info-box">
            <h3 style="margin-top: 0; color: #f0730b;">📋 Booking Details</h3>
            
            <div class="info-row">
                <span class="info-label">Booking ID:</span>
                <span class="info-value">#{{ $booking->id }}</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Room Type:</span>
                <span class="info-value">{{ $booking->room->name }}</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Check-in:</span>
                <span class="info-value">{{ $booking->check_in->format('l, F j, Y') }}</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Check-out:</span>
                <span class="info-value">{{ $booking->check_out->format('l, F j, Y') }}</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Number of Nights:</span>
                <span class="info-value">{{ $booking->check_in->diffInDays($booking->check_out) }} nights</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Guests:</span>
                <span class="info-value">{{ $booking->adults }} Adults @if($booking->children > 0), {{ $booking->children }} Children @endif</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Price per Night:</span>
                <span class="info-value">NPR {{ number_format($booking->room->price_per_night) }}</span>
            </div>
            
            <div class="info-row">
                <span class="info-label"><strong>Estimated Total:</strong></span>
                <span class="info-value"><strong>NPR {{ number_format($booking->room->price_per_night * $booking->check_in->diffInDays($booking->check_out)) }}</strong></span>
            </div>
        </div>

        @if($booking->special_requests)
        <div class="info-box">
            <h3 style="margin-top: 0; color: #f0730b;">📝 Your Special Requests</h3>
            <p style="margin: 0;">{{ $booking->special_requests }}</p>
        </div>
        @endif

        <div class="info-box">
            <h3 style="margin-top: 0; color: #f0730b;">📍 Hotel Information</h3>
            <p style="margin: 5px 0;"><strong>Address:</strong> Battisputali, Gaushala, Kathmandu, Nepal</p>
            <p style="margin: 5px 0;"><strong>Phone:</strong> +977-1-4599977, +977-1-4597977</p>
            <p style="margin: 5px 0;"><strong>Email:</strong> info@hotelbardanboutique.com</p>
        </div>

        <div style="background: #e3f2fd; padding: 15px; border-radius: 8px; margin: 20px 0;">
            <h4 style="margin-top: 0; color: #1976d2;">✅ What's Next?</h4>
            <ul style="margin: 10px 0; padding-left: 20px;">
                <li>Our team will review your booking within 24 hours</li>
                <li>You'll receive a confirmation email once approved</li>
                <li>Check-in time: 2:00 PM | Check-out time: 12:00 PM</li>
                <li>Free cancellation up to 24 hours before check-in</li>
            </ul>
        </div>

        <p>If you have any questions or need to make changes to your reservation, please don't hesitate to contact us.</p>

        <p style="margin-top: 30px;">We look forward to welcoming you!</p>
        
        <p><strong>Warm regards,</strong><br>
        The Team at Hotel Bardan Boutique<br>
        <em>More than a hotel...an experience</em></p>
    </div>

    <div class="footer">
        <p><strong>Hotel Bardan Boutique</strong></p>
        <p>Battisputali, Gaushala, Kathmandu, Nepal</p>
        <p>Phone: +977-1-4599977 | Email: info@hotelbardanboutique.com</p>
        <p style="margin-top: 15px; font-size: 12px; color: #999;">
            This is an automated email. Please do not reply directly to this message.
        </p>
    </div>
</body>
</html>

