<?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);
    }

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

    .staff-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

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

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

    .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;
    }

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

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

    .staff-photo {
        width: 130px;
        height: 130px;
        object-fit: cover;
        border-radius: 14px;
        border: 3px solid #fff;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    }

    @media(max-width: 768px) {

        .detail-grid {
            grid-template-columns: 1fr;
        }

        .staff-card {
            padding: 16px;
        }

        .staff-photo {
            width: 100%;
            height: auto;
        }
    }
</style>

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

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

        <h5 class="page-title">View Staff</h5>

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

    </div>

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

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

            <div class="staff-heading">
                Rajesh Patel
            </div>

            <div class="staff-subtitle">
                Staff Member Details
            </div>

        </div>

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

            <div class="detail-item">
                <div class="detail-label">Salary</div>
                <div class="detail-value">₹ 15,000</div>
            </div>

            <div class="detail-item">
                <div class="detail-label">Department</div>
                <div class="detail-value">Security</div>
            </div>

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

            <div class="detail-item">
                <div class="detail-label">Joining Date</div>
                <div class="detail-value">25-02-2026</div>
            </div>

            <div class="detail-item" style="grid-column: span 2;">
                <div class="detail-label">Address</div>
                <div class="detail-value">
                    Flat No. 12, Creston Society, Near Dairy, Surat
                </div>
            </div>

        </div>

        <!-- Staff Photos -->
        <div class="photo-box">

            <div class="photo-title">
                Staff Photos
            </div>

            <div class="d-flex flex-wrap gap-3">

                <img src="https://img.magnific.com/free-photo/cheerful-indian-businessman-smiling-closeup-portrait-jobs-career-campaign_53876-129416.jpg?semt=ais_hybrid&w=740&q=80"
                    class="staff-photo">

            </div>

        </div>

    </div>

</div>

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