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

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Applicant Profile — View</title>

    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet" />
    <link href="https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css" rel="stylesheet" />
    <script src="https://cdn.tailwindcss.com"></script>
    <style>:root{--ink:#0f0e17;--muted:#6b6b80;--line:#e8e8f0;--accent:#5b4fcf;--accent-light:#ede9ff;--accent-mid:#8b7ee8;--surface:#fafafa;--white:#ffffff;--green:#16a34a;--green-light:#dcfce7;--amber:#d97706;--amber-light:#fef3c7;}*{box-sizing:border-box;margin:0;padding:0;}html,body{width:100%;overflow-x:hidden;}body{font-family:'DM Sans',sans-serif;background:var(--surface);color:var(--ink);min-height:100vh;-webkit-font-smoothing:antialiased;line-height:1.5;font-size:14px;}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 15px;border-radius:10px;font-size:12px;font-weight:600;cursor:pointer;transition:all .18s ease;border:none;text-decoration:none;white-space:nowrap;}.btn-ghost{background:transparent;border:1px solid var(--line);color:var(--muted);}.btn-danger{background:#fff5f5;border:1px solid #fecaca;color:#dc2626;}.page{max-width:1360px;width:100%;margin:0 auto;padding:clamp(12px,2vw,28px);}.hero{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:clamp(20px,3vw,32px);margin-bottom:20px;position:relative;overflow:hidden;}.hero::before{content:'';position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--accent) 0%,var(--accent-mid) 60%,#c4b5fd 100%);}.hero-inner{display:flex;align-items:center;gap:20px;flex-wrap:wrap;}.avatar{width:100px;height:100px;border-radius:20px;border:3px solid var(--line);background:var(--accent-light);display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-size:36px;font-weight:700;color:var(--accent);}.hero-name{font-family:'Playfair Display',serif;font-size:32px;font-weight:700;margin-bottom:4px;}.hero-designation{font-size:14px;color:var(--muted);margin-bottom:14px;}.hero-pills{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px;}.pill{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 11px;border-radius:18px;font-size:11px;font-weight:600;}.pill-accent{background:var(--accent-light);color:var(--accent);}.pill-gray{background:#f3f4f6;color:#374151;}.pill-amber{background:var(--amber-light);color:var(--amber);}.hero-meta{display:flex;flex-wrap:wrap;gap:16px;}.hero-meta-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);}.hero-actions{margin-left:auto;display:flex;flex-direction:column;gap:8px;flex-shrink:0;}.tabs-wrap{background:var(--white);border:1px solid var(--line);border-radius:16px;margin-bottom:18px;overflow:hidden;}.tabs{display:flex;overflow-x:auto;padding:5px;gap:4px;}.tab{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:10px;font-size:12px;font-weight:500;border:none;background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap;}.tab.active{background:var(--accent-light);color:var(--accent);font-weight:600;}.tab-content{display:none;}.tab-content.active{display:block;}.section-card{background:var(--white);border:1px solid var(--line);border-radius:18px;margin-bottom:18px;overflow:hidden;}.section-head{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;}.section-head-icon{width:32px;height:32px;border-radius:9px;background:var(--accent-light);display:flex;align-items:center;justify-content:center;}.section-head-title{font-family:'Playfair Display',serif;font-size:15px;font-weight:600;}.section-body{padding:20px;}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px 24px;}.field-group{min-width:0;}.field-label{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:4px;}.field-value{font-size:14px;font-weight:500;color:var(--ink);line-height:1.5;}.field-value.empty{color:#c7c9d1;font-style:italic;}.doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;}.doc-card{border:1px solid var(--line);border-radius:14px;padding:15px 12px;background:#fafafa;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;cursor:pointer;}.doc-card-icon{width:42px;height:42px;border-radius:11px;background:var(--accent-light);display:flex;align-items:center;justify-content:center;}.doc-card-icon i{font-size:20px;color:var(--accent);}</style>
</head>

<body>

    <div class="max-w-[1800px] mx-auto mt-6 mb-5 flex items-center justify-between gap-3">
        <h1 class="text-[18px] sm:text-2xl font-bold text-black leading-tight">
            View Applicant Details
        </h1>
    </div>

    <div class="page">

        <!-- HERO -->
        <div class="hero">

            <div class="hero-inner">

                <div class="avatar">AP</div>

                <div class="hero-info">

                    <div class="hero-name">AYUSHI PATEL</div>

                    <div class="hero-designation">
                        Intern Candidate
                    </div>

                    <div class="hero-pills">
                        <span class="pill pill-accent">
                            <i class="ri-briefcase-line"></i> Intern
                        </span>

                        <span class="pill pill-gray">
                            <i class="ri-code-line"></i> Backend
                        </span>
                    </div>

                    <div class="hero-meta">

                        <div class="hero-meta-item">
                            <i class="ri-mail-line"></i>
                            ayushi.developer.work@gmail.com
                        </div>

                        <div class="hero-meta-item">
                            <i class="ri-phone-line"></i>
                            8799008546
                        </div>

                        <div class="hero-meta-item">
                            <i class="ri-graduation-cap-line"></i>
                            BE
                        </div>

                    </div>
                </div>

                <div class="hero-actions">

                    <a href="manage_applicants.php">
                        <button class="btn btn-ghost">
                            <i class="ri-arrow-left-line"></i>
                            Back
                        </button>
                    </a>

                    <button class="btn btn-ghost">
                        <i class="ri-download-line"></i>
                        Export
                    </button>

                    <button class="btn btn-danger">
                        <i class="ri-delete-bin-line"></i>
                        Delete
                    </button>

                </div>

            </div>
        </div>

        <!-- TABS -->

        <div class="tabs-wrap">
            <div class="tabs">

                <button class="tab active" onclick="switchTab('personal',this)">
                    <i class="ri-user-3-line"></i>
                    Personal Details
                </button>

                <button class="tab" onclick="switchTab('professional',this)">
                    <i class="ri-information-line"></i>
                    Professional Details
                </button>

                <button class="tab" onclick="switchTab('employment',this)">
                    <i class="ri-briefcase-line"></i>
                    Employment Details
                </button>

                <button class="tab" onclick="switchTab('application',this)">
                    <i class="ri-file-list-3-line"></i>
                    Application Details
                </button>

                <button class="tab" onclick="switchTab('documents',this)">
                    <i class="ri-file-pdf-line"></i>
                    Documents
                </button>

            </div>
        </div>

        <!-- PERSONAL -->

        <div id="tab-personal" class="tab-content active">

            <div class="section-card">

                <div class="section-head">
                    <div class="section-head-icon">
                        <i class="ri-user-3-line"></i>
                    </div>

                    <div class="section-head-title">
                        Personal Details
                    </div>
                </div>

                <div class="section-body">

                    <div class="field-grid">

                        <div class="field-group">
                            <div class="field-label">Full Name</div>
                            <div class="field-value">AYUSHI PATEL</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Email</div>
                            <div class="field-value">ayushi.developer.work@gmail.com</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Mobile</div>
                            <div class="field-value">8799008546</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Qualification</div>
                            <div class="field-value">BE</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Years of Experience</div>
                            <div class="field-value empty">—</div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <!-- PROFESSIONAL -->

        <div id="tab-professional" class="tab-content">

            <div class="section-card">

                <div class="section-head">
                    <div class="section-head-icon">
                        <i class="ri-information-line"></i>
                    </div>

                    <div class="section-head-title">
                        Professional Details
                    </div>
                </div>

                <div class="section-body">

                    <div class="field-grid">

                        <div class="field-group">
                            <div class="field-label">Applying For</div>
                            <div class="field-value">intern</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Preferred Tech</div>
                            <div class="field-value">Backend</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Last Company</div>
                            <div class="field-value empty">—</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Last CTC</div>
                            <div class="field-value">₹</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Expected Salary</div>
                            <div class="field-value">₹</div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <!-- EMPLOYMENT -->

        <div id="tab-employment" class="tab-content">

            <div class="section-card">

                <div class="section-head">
                    <div class="section-head-icon">
                        <i class="ri-briefcase-line"></i>
                    </div>

                    <div class="section-head-title">
                        Employment Details
                    </div>
                </div>

                <div class="section-body">

                    <div class="field-grid">

                        <div class="field-group">
                            <div class="field-label">Last Company</div>
                            <div class="field-value empty">—</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Years of Experience</div>
                            <div class="field-value">Years</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Last CTC</div>
                            <div class="field-value">₹</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Expected Salary</div>
                            <div class="field-value">₹</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Preferred Role</div>
                            <div class="field-value">Backend</div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <!-- APPLICATION -->

        <div id="tab-application" class="tab-content">

            <div class="section-card">

                <div class="section-head">
                    <div class="section-head-icon">
                        <i class="ri-file-list-3-line"></i>
                    </div>

                    <div class="section-head-title">
                        Application Details
                    </div>
                </div>

                <div class="section-body">

                    <div class="field-grid">

                        <div class="field-group">
                            <div class="field-label">Applied For</div>
                            <div class="field-value">intern</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Applied Form</div>
                            <div class="field-value">Website</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Apply Date</div>
                            <div class="field-value">2026-05-12</div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Status</div>
                            <div class="field-value">
                                <span class="pill pill-amber">lost</span>
                            </div>
                        </div>

                        <div class="field-group">
                            <div class="field-label">Remark</div>
                            <div class="field-value">XC</div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <!-- DOCUMENTS -->

        <div id="tab-documents" class="tab-content">

            <div class="section-card">

                <div class="section-head">

                    <div class="section-head-icon">
                        <i class="ri-file-pdf-line"></i>
                    </div>

                    <div class="section-head-title">
                        Documents
                    </div>

                </div>

                <div class="section-body">

                    <div class="doc-grid">

                        <div class="doc-card uploaded">

                            <div class="doc-card-icon">
                                <i class="ri-file-pdf-line"></i>
                            </div>



                            <div class="doc-card-status">
                                <i class="ri-download-line"></i>
                                Download CV
                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>

    <script>
        function switchTab(name, el) {

            document.querySelectorAll('.tab-content').forEach(t => {
                t.classList.remove('active');
            });

            document.querySelectorAll('.tab').forEach(t => {
                t.classList.remove('active');
            });

            document.getElementById('tab-' + name).classList.add('active');

            el.classList.add('active');

        }
    </script>

</body>

</html>

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