/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}


body{

    background:#0f172a;
    color:#f8fafc;
}


a{

    text-decoration:none;
    color:inherit;

}


/* ===========================
   NAVBAR
=========================== */


header{

    background:#111827;
    border-bottom:1px solid rgba(255,255,255,.08);

}


.navbar{

    width:90%;
    max-width:1200px;
    margin:auto;
    padding:18px 0;

    display:flex;
    justify-content:space-between;
    align-items:center;

}


.logo{

    color:#38bdf8;
    font-size:1.8rem;

}


.nav-links{

    display:flex;
    gap:30px;
    list-style:none;

}


.nav-links a{

    transition:.3s;

}


.nav-links a:hover{

    color:#38bdf8;

}



/* ===========================
   LIBRARY HEADER
=========================== */


.library-header{

    width:90%;
    max-width:900px;
    margin:70px auto 40px;
    text-align:center;

}


.library-header h1{

    font-size:3rem;
    margin-bottom:15px;

}


.library-header p{

    color:#cbd5e1;

}



/* ===========================
   CONTROLS
=========================== */


.controls{

    width:90%;
    max-width:1100px;
    margin:40px auto;

    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;

}


.controls input,
.controls select{

    padding:14px 18px;

    background:#1e293b;

    color:#fff;

    border:1px solid rgba(255,255,255,.1);

    border-radius:10px;

    outline:none;

}


.controls input{

    width:320px;

}


.controls select{

    width:180px;

}


.controls input:focus,
.controls select:focus{

    border-color:#38bdf8;

}



/* ===========================
   QUIZ CONTAINER
=========================== */


.quiz-container{

    width:90%;
    max-width:1200px;
    margin:50px auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}



/* ===========================
   QUIZ CARD
=========================== */


.quiz-card{

    background:#1e293b;

    padding:30px;

    border-radius:18px;

    border:1px solid rgba(255,255,255,.08);

    transition:.3s;

}


.quiz-card:hover{

    transform:translateY(-8px);

    border-color:#38bdf8;

}



.quiz-card h2{

    color:#38bdf8;

    margin-bottom:15px;

}



.quiz-card p{

    color:#cbd5e1;

    margin-bottom:20px;

}



/* ===========================
   QUIZ INFORMATION
=========================== */


.quiz-info{

    display:flex;

    flex-direction:column;

    gap:8px;

    color:#94a3b8;

    font-size:.9rem;

    margin-bottom:25px;

}



/* ===========================
   BUTTONS
=========================== */


.card-buttons{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}


.card-buttons button{

    border:none;

    padding:10px 16px;

    border-radius:8px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}



.play-btn{

    background:#2563eb;

    color:white;

}


.play-btn:hover{

    background:#1d4ed8;

}



.edit-btn{

    background:#38bdf8;

    color:#0f172a;

}


.edit-btn:hover{

    background:#0ea5e9;

}



.delete-btn{

    background:#ef4444;

    color:white;

}


.delete-btn:hover{

    background:#dc2626;

}



/* ===========================
   FOOTER
=========================== */


footer{

    margin-top:80px;

    padding:40px 20px;

    text-align:center;

    background:#111827;

    border-top:1px solid rgba(255,255,255,.08);

}


footer h3{

    color:#38bdf8;

    margin-bottom:10px;

}


footer p{

    color:#94a3b8;

}



/* ===========================
   RESPONSIVE
=========================== */


@media(max-width:800px){


    .navbar{

        flex-direction:column;

        gap:20px;

    }


    .nav-links{

        gap:15px;

        flex-wrap:wrap;

        justify-content:center;

    }


    .library-header h1{

        font-size:2.2rem;

    }


}



@media(max-width:500px){


    .controls input,
    .controls select{

        width:100%;

    }


    .card-buttons button{

        flex:1;

    }


}
.toast{
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .3s;
    z-index: 1000;
}

.toast.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast button{
    background: transparent;
    border: none;
    color: #4da3ff;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}