@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    min-height:100vh;

    background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.8)),
    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=1600&auto=format&fit=crop');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;

    color:white;

    padding:30px;

    overflow-x:hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar{

    width:100%;

    padding:22px 35px;

    border-radius:22px;

    background:rgba(15,23,42,0.85);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,0.08);

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

    box-shadow:
    0 8px 32px rgba(0,0,0,0.35);
}

/* LOGO */

.logo{

    font-size:34px;

    font-weight:700;

    color:#ffffff;

    letter-spacing:1px;

    text-shadow:
    0 2px 10px rgba(0,0,0,0.4);
}

.logo span{
    color:#00d4ff;
}

/* BUTTON */

.logout-btn{

    text-decoration:none;

    padding:12px 22px;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #ff416c,
        #ff4b2b
    );

    color:white;

    font-weight:600;

    transition:0.4s;
}

.logout-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 8px 20px rgba(255,75,43,0.4);
}

/* =========================
   GRID
========================= */

.grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:25px;

    margin-bottom:30px;
}

/* =========================
   CARD
========================= */

.card{

    position:relative;

    padding:28px;

    border-radius:25px;

    background:rgba(15,23,42,0.88);

    border:1px solid rgba(255,255,255,0.08);

    overflow:hidden;

    transition:0.4s ease;

    box-shadow:
    0 8px 25px rgba(0,0,0,0.35);
}

/* GLOW EFFECT */

.card::before{

    content:'';

    position:absolute;

    width:180px;

    height:180px;

    background:rgba(0,212,255,0.12);

    border-radius:50%;

    top:-50px;

    right:-50px;

    filter:blur(35px);
}

.card:hover{

    transform:
    translateY(-8px)
    scale(1.02);

    border:1px solid rgba(0,212,255,0.4);

    box-shadow:
    0 10px 35px rgba(0,212,255,0.25);
}

/* ICON */

.icon{

    font-size:40px;

    margin-bottom:15px;
}

/* =========================
   TEXT
========================= */

.card h2{

    font-size:30px;

    margin-bottom:12px;

    color:#ffffff;

    font-weight:700;

    text-shadow:
    0 2px 10px rgba(0,0,0,0.4);
}

.card p{

    font-size:16px;

    color:#d1d5db;

    line-height:1.7;
}

/* COLORS */

.buku .icon{
    color:#00d4ff;
}

.anggota .icon{
    color:#b15cff;
}

.pinjam .icon{
    color:#ffb347;
}

.admin .icon{
    color:#4dff88;
}

/* =========================
   FORM
========================= */

.form-group{

    display:flex;

    gap:12px;

    margin-bottom:12px;
}

input,
select{

    width:100%;

    padding:13px 15px;

    border:none;

    border-radius:12px;

    background:#f3f4f6;

    color:#111827;

    font-size:15px;

    font-weight:500;

    outline:none;

    transition:0.3s;
}

/* PLACEHOLDER */

input::placeholder{
    color:#6b7280;
}

/* FOCUS */

input:focus,
select:focus{

    border:2px solid #00d4ff;

    background:white;

    box-shadow:
    0 0 10px rgba(0,212,255,0.4);
}

/* BUTTON */

button{

    padding:13px 18px;

    border:none;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #00bcd4,
        #0097a7
    );

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

button:hover{

    transform:translateY(-2px);

    box-shadow:
    0 10px 20px rgba(0,188,212,0.35);
}

/* =========================
   TABLE CONTAINER
========================= */

.table-container{

    margin-top:35px;

    padding:30px;

    border-radius:25px;

    background:#111827;

    border:1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 10px 30px rgba(0,0,0,0.35);
}

/* TABLE TITLE */

.table-title{

    font-size:30px;

    font-weight:700;

    margin-bottom:20px;

    color:#ffffff;

    text-shadow:
    0 2px 10px rgba(0,0,0,0.3);
}

/* =========================
   TABLE
========================= */

table{

    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:20px;
}

/* HEADER */

table thead{

    background:#00bcd4;
}

table th{

    padding:18px;

    text-align:left;

    color:white;

    font-size:16px;

    font-weight:600;

    letter-spacing:0.5px;
}

/* BODY */

table tbody{

    background:#1f2937;
}

/* ROW */

table tbody tr{

    transition:0.3s;
}

/* HOVER */

table tbody tr:hover{

    background:#273548;
}

/* CELL */

table td{

    padding:18px;

    color:#f3f4f6;

    font-size:15px;

    border-bottom:
    1px solid rgba(255,255,255,0.06);
}

/* NUMBER */

table td:first-child{

    color:#00d4ff;

    font-weight:600;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    body{
        padding:15px;
    }

    .navbar{

        flex-direction:column;

        gap:15px;

        text-align:center;
    }

    .logo{
        font-size:28px;
    }

    .card h2{
        font-size:24px;
    }

    .form-group{
        flex-direction:column;
    }

    table{
        font-size:14px;
    }

    table th,
    table td{
        padding:12px;
    }
}