/**
 * Jakarta Islamic School
 * Auto-separated stylesheet for: public/students/prestasi.php
 */

:root {
            --jisc-bg: #f8fafc;
            --jisc-card-bg: #ffffff;
            --jisc-emerald: #0d9488;
            --jisc-text-main: #334155;
            --jisc-text-muted: #64748b;
            --jisc-border: #e2e8f0;
        }

        * {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            -webkit-user-drag: none !important;
            -webkit-touch-callout: none !important;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            color: var(--jisc-text-main);
            min-height: 100vh;
            padding: 40px 15px;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: absolute;
            top: -10%;
            left: -10%;
            width: 50vw;
            height: 50vh;
            background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
            z-index: -1;
            filter: blur(80px);
            animation: pulseGlow 10s ease-in-out infinite alternate;
        }

        @keyframes pulseGlow {
            0% { transform: scale(1) translate(0, 0); }
            100% { transform: scale(1.1) translate(20px, 15px); }
        }

        .portal-card {
            background: var(--jisc-card-bg);
            backdrop-filter: blur(16px);
            border: 1px solid var(--jisc-border);
            border-radius: 1.75rem;
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
            overflow: hidden;
            width: 100%;
            max-width: 1350px;
            margin: 0 auto;
            animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes cardEntrance {
            from { opacity: 0; transform: translateY(25px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .portal-header {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #ffffff;
            padding: 2.5rem 2rem;
            text-align: center;
            position: relative;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .portal-header img.logo-brand {
            max-height: 65px;
            width: auto;
            margin-bottom: 1rem;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }

        .portal-header h1 {
            font-family: 'Outfit', sans-serif;
            color: #f8fafc;
            font-weight: 600;
            letter-spacing: -0.3px;
        }

        .portal-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #0d9488, #eab308, #0d9488);
            background-size: 200% auto;
            animation: gradientBorder 8s linear infinite;
        }

        @keyframes gradientBorder {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .table-container-custom {
            background: #ffffff;
            border-radius: 1.25rem;
            border: 1px solid var(--jisc-border);
            overflow: hidden;
        }

        .table-custom {
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
            margin-bottom: 0;
            color: var(--jisc-text-main);
        }

        .table-custom th {
            background-color: #f8fafc;
            color: #475569;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            padding: 1.1rem 0.8rem;
            border-bottom: 2px solid var(--jisc-border);
            vertical-align: middle;
            text-align: center;
        }

        .table-custom td {
            padding: 1.1rem 0.8rem;
            vertical-align: middle;
            font-size: 0.88rem;
            border-bottom: 1px solid #f1f5f9;
            transition: background-color 0.15s ease;
        }

        .table-custom tbody tr:nth-child(odd) td {
            background-color: #ffffff;
        }

        .table-custom tbody tr:nth-child(even) td {
            background-color: #f8fafc;
        }

        .table-custom tbody tr:hover td {
            background-color: #f0fdf4 !important;
            color: #0f172a;
        }

        /* Warna Badges Kategori */
        .badge-category {
            font-size: 0.7rem;
            padding: 0.3em 0.55em;
            border-radius: 6px;
            font-weight: 500;
            display: inline-block;
            margin: 2px;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }
        
        .badge-akademik { background-color: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
        .badge-ict { background-color: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
        .badge-olahraga { background-color: #fef3c7; color: #b45309; border-color: #fde68a; }
        .badge-keagamaan { background-color: #dcfce7; color: #15803d; border-color: #bbf7d0; }

        .status-pill {
            font-weight: 500;
            padding: 0.35rem 0.75rem;
            border-radius: 50px;
            font-size: 0.78rem;
            display: inline-flex;
            align-items: center;
        }

        .btn-custom-back {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid var(--jisc-border);
            padding: 0.65rem 1.25rem;
            border-radius: 0.85rem;
            font-weight: 500;
            font-size: 0.88rem;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-custom-back:hover {
            background: #0d9488;
            color: #ffffff;
            border-color: #0d9488;
            transform: translateX(-2px);
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
        }

        /* Styling Input Pencarian */
        .search-input-wrapper {
            position: relative;
            max-width: 320px;
        }
        .search-input-wrapper .form-control {
            border-radius: 0.75rem;
            padding-left: 2.5rem;
            border-color: var(--jisc-border);
            font-size: 0.88rem;
        }
        .search-input-wrapper .form-control:focus {
            border-color: #0d9488;
            box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
        }
        .search-input-wrapper .search-icon {
            position: absolute;
            left: 0.9rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--jisc-text-muted);
        }

        /* Styling Tombol Navigasi Pagination */
        .pagination-custom .page-link {
            border-radius: 0.5rem;
            margin: 0 3px;
            color: #0d9488;
            border-color: var(--jisc-border);
            font-weight: 500;
        }
        .pagination-custom .page-item.active .page-link {
            background-color: #0d9488;
            border-color: #0d9488;
            color: #fff;
        }
        .pagination-custom .page-link:hover {
            background-color: #f0fdf4;
            color: #0f766e;
        }

        .table-custom tbody tr {
            animation: rowFadeIn 0.5s ease forwards;
            opacity: 0;
        }

        @keyframes rowFadeIn {
            to { opacity: 1; }
        }

        .table-custom tbody tr:nth-child(1) { animation-delay: 0.05s; }
        .table-custom tbody tr:nth-child(2) { animation-delay: 0.1s; }
        .table-custom tbody tr:nth-child(3) { animation-delay: 0.15s; }
        .table-custom tbody tr:nth-child(4) { animation-delay: 0.2s; }
        .table-custom tbody tr:nth-child(5) { animation-delay: 0.25s; }
        .table-custom tbody tr:nth-child(n+6) { animation-delay: 0.3s; }