/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #f5f6fa;
    color: #333;
}

/* BUTTONS */
button {
    padding: 10px;
    border: none;
    background: #2f80ed;
    color: white;
    cursor: pointer;
    border-radius: 6px;
}

button:hover {
    background: #1c60b3;
}

/* INPUTS */
input:not([type="color"]) {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    display: flex;
    justify-content: center;
    align-items: center;
}

::-webkit-scrollbar {

    width: 10px;
}

::-webkit-scrollbar-thumb {

    background:
        rgba(148,163,184,0.35);

    border-radius: 999px;
}

body.dark-mode ::-webkit-scrollbar-thumb {

    background:
        rgba(148,163,184,0.24);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {

    background:
        rgba(148,163,184,0.40);
}

/* HIDDEN */
.hidden {
    display: none;
}

/* =========================================
   DARK MODE
========================================= */

body.dark-mode{

    background:
        radial-gradient(
            circle at top left,
            rgba(59,130,246,0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(14,165,233,0.08),
            transparent 28%
        ),
        #0f1115;

    color:#f8fafc;
}

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

body.dark-mode button{

    background:
        linear-gradient(
            135deg,
            rgba(229, 229, 229, 0.8),
            #ffffff
        );

    color:rgb(0, 0, 0);

    box-shadow:
        0 12px 28px rgba(37,99,235,0.28);
}

body.dark-mode button:hover{

    box-shadow:
        0 18px 36px rgba(37,99,235,0.36);
}

/* =========================================
   DARK INPUTS
========================================= */

body.dark-mode input:not([type="color"]){

    background:
        rgba(15,23,42,0.82);

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

    color:#f8fafc;
}

body.dark-mode input:not([type="color"]):focus{

    border-color:
        #60a5fa;

    box-shadow:
        0 0 0 4px rgba(96,165,250,0.16);
}

/* =========================================
   DARK CARD
========================================= */

body.dark-mode .card{

    background:
        rgba(15,23,42,0.84);

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

    box-shadow:
        0 25px 60px rgba(0,0,0,0.38);
}

body.dark-mode .card p{

    color:#94a3b8;
}

/* =========================================
   DARK MODAL
========================================= */

body.dark-mode .modal{

    background:
        rgba(0,0,0,0.65);
}

body.dark-mode .modal-content{

    background:
        rgba(15,23,42,0.88);

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

    color:#f8fafc;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);
}

/* =========================================
   CUSTOM ALERT / CONFIRM MODAL
========================================= */

.custom-modal-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        rgba(0,0,0,0.45);

    backdrop-filter: blur(8px);

    z-index: 99999;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .25s ease;
}

.custom-modal-overlay.active {

    opacity: 1;

    pointer-events: auto;
}

/* =========================================
   MODAL BOX
========================================= */

.custom-modal {

    width: min(420px, 92vw);

    padding: 28px;

    border-radius: 28px;

    background:
        rgba(255,255,255,0.88);

    backdrop-filter: blur(22px);

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

    box-shadow:
        0 30px 80px rgba(15,23,42,0.25);

    transition:
        transform .25s ease;

    animation:
        modalPop .25s ease;
}

/* =========================================
   DARK MODE
========================================= */

body.dark-mode .custom-modal {

    background:
        rgba(15,23,42,0.88);

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

    color:
        #f8fafc;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);
}

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

.custom-modal-header {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 18px;
}

.custom-modal-icon {

    width: 52px;
    height: 52px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 18px;

    font-size: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,0.18),
            rgba(96,165,250,0.10)
        );

    color:
        #2563eb;
}

body.dark-mode .custom-modal-icon {

    background:
        rgba(59,130,246,0.14);

    color:
        #93c5fd;
}

.custom-modal-title {

    font-size: 24px;

    font-weight: 800;

    letter-spacing: -.5px;
}

/* =========================================
   MESSAGE
========================================= */

.custom-modal-message {

    line-height: 1.65;

    font-size: 15px;

    color:
        #475569;

    margin-bottom: 28px;
}

body.dark-mode .custom-modal-message {

    color:
        #cbd5e1;
}

/* =========================================
   ACTIONS
========================================= */

.custom-modal-actions {

    display: flex;

    justify-content: flex-end;

    gap: 12px;
}

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

.custom-modal-btn {

    border: none;

    padding:
        12px 18px;

    border-radius: 16px;

    cursor: pointer;

    font-weight: 700;

    font-size: 14px;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

/* CANCEL */

.custom-modal-btn.cancel {

    background:
        rgba(148,163,184,0.12);

    color:
        #334155;
}

.custom-modal-btn.cancel:hover {

    background:
        rgba(148,163,184,0.20);
}

body.dark-mode .custom-modal-btn.cancel {

    background:
        rgba(255,255,255,0.06);

    color:
        #f8fafc;
}

/* CONFIRM */

.custom-modal-btn.confirm {

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #2563eb
        );

    color: white;

    box-shadow:
        0 12px 24px rgba(59,130,246,0.24);
}

.custom-modal-btn.confirm:hover {

    box-shadow:
        0 18px 34px rgba(59,130,246,0.34);
}

/* DANGER */

.custom-modal-btn.danger {

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color: white;

    box-shadow:
        0 12px 24px rgba(239,68,68,0.24);
}

.custom-modal-btn.danger:hover {

    box-shadow:
        0 18px 34px rgba(239,68,68,0.34);
}

/* =========================================
   ANIMATION
========================================= */

@keyframes modalPop {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }
}

/* =========================================
   PARENT
========================================= */

.content-container{

    position: relative;

    min-height: 400px;

    border-radius: 28px;

    overflow: hidden;
}

/* =========================================
   LOADING OVERLAY
========================================= */

.loading-overlay{

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        rgba(255,255,255,0.92);

    backdrop-filter: blur(12px);

    z-index: 999;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}

/* =========================================
   DARK MODE
========================================= */

body.dark-mode .loading-overlay{

    background:
        rgba(2,6,23,0.92);
}

/* =========================================
   HIDE
========================================= */

.loading-overlay.hidden{

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}

/* =========================================
   LOADING BOX
========================================= */

.loading-box{

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 22px;
}

/* =========================================
   SPINNER
========================================= */

.loading-spinner{

    width: 78px;
    height: 78px;

    border-radius: 50%;

    border:
        5px solid rgba(148,163,184,0.18);

    border-top:
        5px solid #3b82f6;

    animation:
        spin 1s linear infinite;
}

/* =========================================
   TEXT
========================================= */

.loading-box h2{

    font-size: 28px;

    font-weight: 800;

    color:
        #0f172a;
}

body.dark-mode .loading-box h2{

    color:
        #f8fafc;
}

/* =========================================
   DOTS
========================================= */

.loading-dots{

    display: flex;

    gap: 10px;
}

.loading-dots span{

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        #3b82f6;

    animation:
        bounce 1s infinite ease-in-out;
}

.loading-dots span:nth-child(2){

    animation-delay: .15s;
}

.loading-dots span:nth-child(3){

    animation-delay: .3s;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes spin{

    from{

        transform:
            rotate(0deg);
    }

    to{

        transform:
            rotate(360deg);
    }
}

@keyframes bounce{

    0%, 80%, 100%{

        transform:
            scale(.6);

        opacity: .45;
    }

    40%{

        transform:
            scale(1);

        opacity: 1;
    }
}
/* =========================================
   MOBILE
========================================= */
