<?php include 'header.php'; ?>

<style>
    body {
        background: #f5f7fb;
    }

    .page-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .page-title {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

    .back-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #2563eb;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        text-decoration: none;
    }

    .back-btn:hover {
        background: #1d4ed8;
        color: #fff;
        transform: translateY(-1px);
    }

    .gate-card {
        background: #fff;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        border: 1px solid #edf2f7;
    }

    .gate-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

    .gate-heading {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 4px;
    }

    .gate-subtitle {
        font-size: 13px;
        color: #64748b;
    }

    .status-badge {
        background: #fee2e2;
        color: #dc2626;
        font-size: 12px;
        font-weight: 600;
        padding: 7px 14px;
        border-radius: 30px;
    }

    .detail-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .detail-item {
        background: #f8fbff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
    }

    .detail-label {
        font-size: 12px;
        color: #64748b;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .detail-value {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        word-break: break-word;
    }

    .info-box {
        margin-top: 16px;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-radius: 14px;
        padding: 14px;
    }

    .info-title {
        font-size: 14px;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 6px;
    }

    .info-text {
        font-size: 13px;
        color: #475569;
        line-height: 1.6;
    }

    @media(max-width: 768px) {
        .detail-grid {
            grid-template-columns: 1fr;
        }

        .gate-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
    }
</style>

<div class="dashboard-main-body">

    <!-- Top -->
    <div class="page-top">

        <h5 class="page-title">View Security Gate Management</h5>

        <a href="security_gate_management.php" class="back-btn">
            <iconify-icon icon="ic:baseline-arrow-back"></iconify-icon>
        </a>

    </div>

    <!-- Card -->
    <div class="gate-card">

        <!-- Header -->
        <div class="gate-header">

            <div>
                <div class="gate-heading">Rajesh Patel</div>
                <div class="gate-subtitle">Visitor Entry Record</div>
            </div>

            <div class="status-badge">
                Left
            </div>

        </div>

        <!-- Details -->
        <div class="detail-grid">

            <div class="detail-item">
                <div class="detail-label">Person Type</div>
                <div class="detail-value">Visitor</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Mobile Number</div>
                <div class="detail-value">9876543210</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Flat</div>
                <div class="detail-value">A-101</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Resident</div>
                <div class="detail-value">Rahul</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Vehicle No</div>
                <div class="detail-value">MH12AB1234</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Purpose</div>
                <div class="detail-value">Delivery</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">In Time</div>
                <div class="detail-value">12-01-2026 10:00</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Out Time</div>
                <div class="detail-value">12-01-2026 12:00</div>
            </div>

        </div>

        <!-- Info -->
        <div class="info-box">

            <div class="info-title">
                Entry Information
            </div>

            <div class="info-text">
                Visitor completed entry and exit process successfully through security gate management.
            </div>

        </div>

    </div>

</div>

<?php include 'footer.php'; ?>