<!DOCTYPE html>
<html lang="id">
<head>
    <link rel="icon" type="image/png" href="{{ asset('img/Capture__1_-removebg-preview.png') }}">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portal Sekolah - SMKN 1 Prajekan</title>
    <meta name="description" content="Sistem Absensi Terpadu SMKN 1 Prajekan - Portal layanan digital sekolah">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f1f5f9;
            min-height: 100vh;
        }

        /* ===== HEADER ===== */
        .portal-hero {
            background-color: #0f172a;
            color: #ffffff;
            padding: 32px 20px 28px;
            text-align: center;
            position: relative;
        }

        .portal-hero::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 0;
            right: 0;
            height: 20px;
            background-color: #f1f5f9;
            border-radius: 20px 20px 0 0;
        }

        .portal-logo {
            width: 72px;
            height: 72px;
            background-color: #ffffff;
            border-radius: 50%;
            padding: 6px;
            margin: 0 auto 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .portal-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
        }

        .portal-hero h1 {
            font-weight: 800;
            font-size: 20px;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .portal-hero p {
            font-size: 13px;
            color: #94a3b8;
            font-weight: 400;
        }

        /* ===== MAIN CONTENT ===== */
        .portal-main {
            max-width: 600px;
            width: 100%;
            margin: 0 auto;
            padding: 12px 16px 32px;
        }

        .section-label {
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-bottom: 10px;
            padding-left: 4px;
        }

        /* ===== MENU CARDS ===== */
        .menu-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 24px;
        }

        .menu-item {
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            padding: 16px 18px;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .menu-item:hover {
            border-color: #cbd5e1;
            background-color: #f8fafc;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            text-decoration: none;
        }

        .menu-item:active {
            transform: translateY(0);
            box-shadow: none;
        }

        .menu-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-right: 14px;
            flex-shrink: 0;
        }

        .menu-info {
            flex: 1;
            min-width: 0;
        }

        .menu-title {
            font-weight: 600;
            font-size: 14px;
            color: #0f172a;
            margin-bottom: 2px;
            line-height: 1.3;
        }

        .menu-desc {
            font-size: 12px;
            color: #94a3b8;
            line-height: 1.4;
        }

        .menu-arrow {
            color: #cbd5e1;
            font-size: 16px;
            margin-left: 8px;
            flex-shrink: 0;
        }

        /* Icon Color Variants */
        .icon-green { background-color: #dcfce7; color: #16a34a; }
        .icon-red { background-color: #fee2e2; color: #ef4444; }
        .icon-blue { background-color: #dbeafe; color: #2563eb; }
        .icon-amber { background-color: #fef3c7; color: #d97706; }
        .icon-orange { background-color: #ffedd5; color: #ea580c; }
        .icon-slate { background-color: #e2e8f0; color: #475569; }

        /* ===== FOOTER ===== */
        .portal-footer {
            text-align: center;
            padding: 16px 20px 24px;
            color: #94a3b8;
            font-size: 11px;
        }

        .portal-footer a {
            color: #64748b;
            text-decoration: none;
        }

        /* ===== MOBILE RESPONSIVE ===== */
        @media (max-width: 576px) {
            .portal-hero {
                padding: 24px 16px 22px;
            }

            .portal-logo {
                width: 60px;
                height: 60px;
            }

            .portal-hero h1 {
                font-size: 18px;
            }

            .portal-main {
                padding: 8px 14px 28px;
            }

            .menu-item {
                padding: 14px 14px;
                border-radius: 12px;
            }

            .menu-icon {
                width: 40px;
                height: 40px;
                font-size: 18px;
                border-radius: 10px;
                margin-right: 12px;
            }

            .menu-title {
                font-size: 13.5px;
            }

            .menu-desc {
                font-size: 11.5px;
            }
        }

        /* Tablet landscape */
        @media (min-width: 768px) {
            .portal-hero {
                padding: 40px 20px 32px;
            }

            .portal-logo {
                width: 80px;
                height: 80px;
            }

            .portal-hero h1 {
                font-size: 22px;
            }

            .menu-list {
                gap: 12px;
            }

            .menu-item {
                padding: 18px 20px;
            }

            .menu-icon {
                width: 48px;
                height: 48px;
                font-size: 22px;
            }
        }
    </style>
</head>
<body>

    <!-- Hero Header -->
    <div class="portal-hero">
        <div class="portal-logo">
            <img src="{{ asset('img/Capture__1_-removebg-preview.png') }}" alt="Logo SMKN 1 Prajekan">
        </div>
        <h1>SMKN 1 PRAJEKAN</h1>
        <p>Sistem Absensi Terpadu</p>
    </div>

    <!-- Main Content -->
    <div class="portal-main">

        <!-- Absensi Section -->
        <div class="section-label">Absensi</div>
        <div class="menu-list">
            <a href="{{ route('scan.index') }}" class="menu-item" id="menu-kehadiran">
                <div class="menu-icon icon-green">
                    <i class="bi bi-person-check-fill"></i>
                </div>
                <div class="menu-info">
                    <div class="menu-title">Absensi Kehadiran</div>
                    <div class="menu-desc">Scan QR Code presensi kedatangan</div>
                </div>
                <i class="bi bi-chevron-right menu-arrow"></i>
            </a>

            <a href="{{ route('scan.pulang') }}" class="menu-item" id="menu-pulang">
                <div class="menu-icon icon-red">
                    <i class="bi bi-house-door-fill"></i>
                </div>
                <div class="menu-info">
                    <div class="menu-title">Absensi Pulang</div>
                    <div class="menu-desc">Scan QR Code presensi kepulangan</div>
                </div>
                <i class="bi bi-chevron-right menu-arrow"></i>
            </a>

            <a href="{{ route('absensi.mapel') }}" class="menu-item" id="menu-mapel">
                <div class="menu-icon icon-blue">
                    <i class="bi bi-journal-check"></i>
                </div>
                <div class="menu-info">
                    <div class="menu-title">Absensi Pelajaran</div>
                    <div class="menu-desc">Presensi per sesi mata pelajaran</div>
                </div>
                <i class="bi bi-chevron-right menu-arrow"></i>
            </a>
        </div>

        <!-- Input Data Section -->
        <div class="section-label">Input Data</div>
        <div class="menu-list">
            <a href="{{ route('input.prestasi') }}" class="menu-item" id="menu-prestasi">
                <div class="menu-icon icon-amber">
                    <i class="bi bi-trophy-fill"></i>
                </div>
                <div class="menu-info">
                    <div class="menu-title">Input Prestasi</div>
                    <div class="menu-desc">Pencatatan data siswa berprestasi</div>
                </div>
                <i class="bi bi-chevron-right menu-arrow"></i>
            </a>

            <a href="{{ route('input.pelanggaran') }}" class="menu-item" id="menu-pelanggaran">
                <div class="menu-icon icon-orange">
                    <i class="bi bi-exclamation-triangle-fill"></i>
                </div>
                <div class="menu-info">
                    <div class="menu-title">Input Pelanggaran</div>
                    <div class="menu-desc">Pencatatan kasus tata tertib siswa</div>
                </div>
                <i class="bi bi-chevron-right menu-arrow"></i>
            </a>
        </div>

        <!-- Akun Section -->
        <div class="section-label">Akun</div>
        <div class="menu-list">
            <a href="{{ route('login') }}" class="menu-item" id="menu-login">
                <div class="menu-icon icon-slate">
                    <i class="bi bi-shield-lock-fill"></i>
                </div>
                <div class="menu-info">
                    <div class="menu-title">Login Administrator</div>
                    <div class="menu-desc">Masuk untuk mengelola data dan laporan</div>
                </div>
                <i class="bi bi-chevron-right menu-arrow"></i>
            </a>
        </div>

    </div>

    <!-- Footer -->
    <div class="portal-footer">
        &copy; {{ date('Y') }} SMKN 1 Prajekan &mdash; Sistem Absensi Terpadu
    </div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
