/* assets/css/style.css */

/* 1. FONTS & VARIABLES */
@font-face {
    font-family: 'Inter-Local';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: normal;
}

:root {
    --primary: #09D6BA;
    --primary-dark: #1d4ed8;
    --bg-body: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-stack: 'Inter-Local', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 2. BASE STYLES */
body { 
    font-family: var(--font-stack); 
    background-color: var(--bg-body); 
    margin: 0; 
    padding: 20px; 
    color: var(--text-main);
    line-height: 1.6;
}

.container { 
    max-width: 1000px; 
    margin: 40px auto; 
    background: #ffffff; 
    padding: 32px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 3. CTA MARQUEE */
.cta-banner {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 8px;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.marquee-item span {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 11px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cta-banner:hover .marquee-content {
    animation-play-state: paused;
}

/* 4. TABLES (INDEX PAGE) */
.header-area { 
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; gap: 15px; flex-wrap: wrap;
}

.header-area h2 { margin: 0; font-size: 24px; font-weight: 700; color: #0f172a; }

.btn-daftar { 
    display: inline-flex; align-items: center; padding: 12px 24px; 
    background: var(--primary); color: white; text-decoration: none; 
    border-radius: 10px; font-weight: 600; font-size: 14px;
    transition: all 0.2s ease; box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-daftar:hover { background: var(--primary-dark); transform: translateY(-1px); }

#searchInput { 
    width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; 
    border-radius: 12px; outline: none; transition: 0.2s;
    font-size: 15px; background: #f1f5f9; margin-bottom: 25px;
}

#searchInput:focus { background: #ffffff; border-color: var(--primary); }

.table-wrapper { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; }

table { width: 100%; border-collapse: collapse; background: white; }

th { 
    background: #f8fafc; color: var(--text-muted); font-weight: 600; 
    text-transform: uppercase; font-size: 11px; padding: 15px; 
    text-align: left; border-bottom: 2px solid #e2e8f0; cursor: pointer;
}

td { padding: 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
tr:hover td { background-color: #fafafa; }

/* 5. FORM STYLES (DAFTAR PAGE) */
h4 { 
    display: flex; align-items: center; color: var(--primary); 
    font-size: 15px; margin-top: 30px; margin-bottom: 15px; font-weight: 700;
}
h4::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; margin-left: 15px; }

.grid-row { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; margin-bottom: 15px; 
}

.form-group { display: flex; flex-direction: column; margin-bottom: 10px; }
.form-group label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #475569; }

input, select, textarea { 
    padding: 12px; border: 2px solid #e2e8f0; border-radius: 10px; 
    font-size: 14px; outline: none; transition: 0.2s; background: #fdfdfd;
}

input:focus, select:focus, textarea:focus { 
    border-color: var(--primary); background: #fff; 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
}

.btn-submit { 
    width: 100%; padding: 16px; background: var(--primary); color: white; 
    border: none; border-radius: 12px; font-size: 16px; font-weight: 700; 
    cursor: pointer; margin-top: 30px; transition: 0.3s;
}

/* 6. BADGES & UTILITIES */
.badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-block; }
.bg-reg { background: #dcfce7; color: #166534; }
.bg-non { background: #fef9c3; color: #854d0e; }

.school-name { text-transform: capitalize; font-weight: 500; color: #475569; }

/* 7. SMALL ADMIN PANEL (FLOATING) */
.badge-admin {
    position: fixed; bottom: 20px; right: 20px;
    display: flex; align-items: center; padding: 8px 14px;
    background: #1e293b; color: white; border-radius: 8px;
    font-size: 10px; font-weight: 700; text-decoration: none;
    letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    transition: 0.3s; z-index: 999; opacity: 0.9;
}

.badge-admin:hover { transform: translateY(-2px); background: #0f172a; opacity: 1; }

.dot { 
    width: 6px; height: 6px; background: #22c55e; border-radius: 50%; 
    margin-right: 8px; box-shadow: 0 0 6px #22c55e; animation: pulse 2s infinite; 
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* 8. RESPONSIVE MOBILE */
@media screen and (max-width: 768px) {
    .container { padding: 20px; margin: 10px; }
    .header-area { flex-direction: column; text-align: center; }
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { display: none; }
    tr { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 15px; padding: 10px; background: #fff; }
    td { border: none; border-bottom: 1px solid #f1f5f9; position: relative; padding-left: 45% !important; text-align: right !important; }
    td:last-child { border-bottom: 0; }
    td:before { 
        content: attr(data-label); position: absolute; left: 15px; 
        font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 10px; 
    }
}
/* --- paginasinya -*/

/* assets/css/style.css */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.page-link:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    cursor: default;
}

.page-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* --- daftar.php punya -*/


        :root {
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --bg-body: #f8fafc;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --font-stack: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body { 
            font-family: var(--font-stack); 
            background: var(--bg-body); 
            padding: 20px; 
            color: var(--text-main); 
            margin: 0;
        }

        .form-container { 
            max-width: 900px; 
            margin: 40px auto; 
            background: white; 
            padding: 40px; 
            border-radius: 20px; 
            box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
        }

        .form-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .form-header h2 { 
            color: #0f172a; 
            margin: 0; 
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -0.5px;
        }
        
        .form-header p {
            color: var(--text-muted);
            margin-top: 10px;
            font-size: 14px;
        }

        h4 { 
            display: flex;
            align-items: center;
            color: var(--primary); 
            font-size: 16px;
            margin-top: 35px; 
            margin-bottom: 20px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        h4::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e2e8f0;
            margin-left: 15px;
        }

        .grid-row { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
            gap: 20px; 
            margin-bottom: 20px; 
        }

        .form-group { display: flex; flex-direction: column; }

        label { 
            font-size: 13px; 
            font-weight: 600; 
            margin-bottom: 8px; 
            color: #475569; 
        }

        input, select, textarea { 
            padding: 12px 16px; 
            border: 2px solid #e2e8f0; 
            border-radius: 10px; 
            font-size: 14px; 
            outline: none; 
            transition: all 0.2s ease;
            background: #fdfdfd;
            font-family: inherit;
        }

        input:focus, select:focus, textarea:focus { 
            border-color: var(--primary); 
            background: #fff;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
        }

        input::placeholder { color: #cbd5e1; }

        .btn-submit { 
            width: 100%; 
            padding: 16px; 
            background: var(--primary); 
            color: white; 
            border: none; 
            border-radius: 12px; 
            font-size: 16px; 
            font-weight: 700; 
            cursor: pointer; 
            margin-top: 40px; 
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }

        .btn-submit:hover { 
            background: var(--primary-dark); 
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
        }

        .footer-actions {
            margin-top: 20px;
            text-align: center;
        }

        .btn-back {
            display: inline-block;
            text-decoration: none;
            color: var(--text-muted);
            font-size: 14px;
            font-weight: 600;
            padding: 10px 20px;
            transition: 0.2s;
        }

        .btn-back:hover {
            color: var(--primary);
        }

        /* Responsive Mobile */
        @media (max-width: 640px) {
            .form-container { padding: 25px; margin: 10px; }
            .grid-row { grid-template-columns: 1fr; }
        }
    
/* --- FOOTER STYLES --- */
.main-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.footer-content {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer-content b {
    color: var(--text-main);
}

/* WHATSAPP BUTTON STYLE */
.wa-link {
    display: inline-flex;
    align-items: center;
    background: #25d366; /* Warna Hijau WhatsApp */
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    text-decoration: none !important;
    font-weight: 700;
    transition: 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.wa-link:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.wa-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: white;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}