<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>New Booking Notification</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, #dc2626 0%, #ef4444 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;
        }
        .alert-box {
            background: #fff3cd;
            border: 2px solid #ffc107;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
        }
        .info-box {
            background: white;
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            border-left: 4px solid #dc2626;
        }
        .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: 180px;
            color: #666;
        }
        .info-value {
            color: #333;
        }
        .button {
            display: inline-block;
            padding: 15px 35px;
            background: #dc2626;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin: 20px 0;
            font-weight: bold;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid #eee;
            color: #666;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>🔔 New Booking Alert!</h1>
        <p style="margin: 10px 0 0 0; font-size: 16px;">Hotel Bardan Boutique - Admin Notification</p>
    </div>

    <div class="content">
        <div class="alert-box">
            <h2 style="margin: 0; color: #f0730b;">⚠️ ACTION REQUIRED</h2>
            <p style="margin: 10px 0 0 0; font-size: 18px;"><strong>A new booking request has been received!</strong></p>
        </div>

        <p>Hello Admin,</p>
        <p>A new booking has just been submitted and is awaiting your review and confirmation.</p>

        <div class="info-box">
            <h3 style="margin-top: 0; color: #dc2626;">📋 Booking Information</h3>
            
            <div class="info-row">
                <span class="info-label">Booking ID:</span>
                <span class="info-value"><strong>#{{ $booking->id }}</strong></span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Status:</span>
                <span class="info-value"><span style="background: #ffc107; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: bold;">PENDING</span></span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Booking Date:</span>
                <span class="info-value">{{ $booking->created_at->format('F j, Y H:i') }}</span>
            </div>
        </div>

        <div class="info-box">
            <h3 style="margin-top: 0; color: #dc2626;">👤 Guest Information</h3>
            
            <div class="info-row">
                <span class="info-label">Name:</span>
                <span class="info-value"><strong>{{ $booking->guest_name }}</strong></span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Email:</span>
                <span class="info-value">{{ $booking->guest_email }}</span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Phone:</span>
                <span class="info-value">{{ $booking->guest_phone }}</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>

        <div class="info-box">
            <h3 style="margin-top: 0; color: #dc2626;">🏨 Reservation Details</h3>
            
            <div class="info-row">
                <span class="info-label">Room Type:</span>
                <span class="info-value"><strong>{{ $booking->room->name }}</strong></span>
            </div>
            
            <div class="info-row">
                <span class="info-label">Check-in Date:</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 Date:</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"><strong>{{ $booking->check_in->diffInDays($booking->check_out) }} nights</strong></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 style="color: #22c55e; font-size: 18px;">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" style="border-left-color: #3b82f6;">
            <h3 style="margin-top: 0; color: #3b82f6;">📝 Special Requests from Guest</h3>
            <p style="margin: 0; padding: 10px; background: #eff6ff; border-radius: 5px;">{{ $booking->special_requests }}</p>
        </div>
        @endif

        <div style="text-align: center; margin: 30px 0;">
            <a href="http://localhost:8001/admin/bookings/{{ $booking->id }}" class="button">
                🔍 View Full Details in Admin Panel
            </a>
        </div>

        <div style="background: #f3f4f6; padding: 15px; border-radius: 8px; margin: 20px 0;">
            <h4 style="margin-top: 0; color: #374151;">⏰ Next Steps:</h4>
            <ol style="margin: 10px 0; padding-left: 20px; color: #4b5563;">
                <li>Review the booking details carefully</li>
                <li>Check room availability for the requested dates</li>
                <li>Confirm or contact the guest if needed</li>
                <li>Update the booking status in the admin panel</li>
            </ol>
        </div>

        <p style="background: #dcfce7; padding: 15px; border-radius: 8px; border-left: 4px solid #22c55e;">
            <strong>📧 Quick Contact:</strong><br>
            Email: <a href="mailto:{{ $booking->guest_email }}">{{ $booking->guest_email }}</a><br>
            Phone: <a href="tel:{{ $booking->guest_phone }}">{{ $booking->guest_phone }}</a>
        </p>

        <p style="margin-top: 30px; color: #666; font-size: 14px;">
            This booking notification was sent to: <strong>kcsuman1415@gmail.com</strong>
        </p>
    </div>

    <div class="footer">
        <p><strong>Hotel Bardan Boutique - Admin System</strong></p>
        <p>Battisputali, Gaushala, Kathmandu, Nepal</p>
        <p style="margin-top: 15px; font-size: 12px; color: #999;">
            This is an automated admin notification email.
        </p>
    </div>
</body>
</html>

