/* ============================================
   Toast
============================================ */

/* ============================================
                TOAST
============================================ */

.toast{

    position:fixed;

    top:25px;

    right:25px;

    min-width:280px;

    max-width:350px;

    padding:16px 22px;

    border-radius:12px;

    color:#fff;

    font-size:15px;

    font-weight:500;

    box-shadow:0 8px 20px rgba(0,0,0,.2);

    opacity:0;

    transform:translateY(-20px);

    transition:all .3s ease;

    z-index:9999;
}

/* ============================================
            SHOW
============================================ */

.toast.show{

    opacity:1;

    transform:translateY(0);
}

/* ============================================
            SUCCESS
============================================ */

.toast.success{

    background:#16a34a;
}

/* ============================================
            ERROR
============================================ */

.toast.error{

    background:#dc2626;
}

/* ============================================
            WARNING
============================================ */

.toast.warning{

    background:#f59e0b;
}

/* ============================================
            INFO
============================================ */

.toast.info{

    background:#2563eb;
}

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

@media(max-width:768px){

    .toast{

        left:20px;

        right:20px;

        min-width:auto;

        width:auto;

        top:20px;
    }

}

/* =============================================
   Responsive
============================================= */

/* =============================================
   Responsive
============================================= */

@media (max-width: 768px) {

    .navbar{

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

    }

    .navbar-right{

        display: flex;

        flex-direction: column;

        gap: 10px;

    }

    .navbar-right button{

        width: 100%;

    }

    .welcome{

        text-align: center;

    }

    .statistics{

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .search-section{

        display: flex;

        flex-direction: column;

        gap: 12px;

    }

    .search-section input,

    .search-section select{

        width: 100%;

    }

    .task-header{

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

    .task-badges{

        flex-wrap: wrap;

        gap: 8px;

    }

    .task-actions{

        display: flex;

        flex-direction: column;

        gap: 10px;

    }

    .task-actions button{

        width: 100%;

    }

    .pagination{

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 10px;

    }

    .pagination button{

        width: 100%;

    }

}


/* =============================================
   Tablet
============================================= */

@media (max-width: 992px) {

    .dashboard-container{

        width: 95%;

        margin: auto;

    }

    .statistics{

        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;

    }

    .search-section{

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }

    .search-section input{

        grid-column:
            1 / -1;

    }

    .navbar{

        padding: 15px 20px;

    }

}


/* =============================================
   Small Mobile
============================================= */

/* =============================================
   Mobile
============================================= */

@media (max-width: 768px) {

    .navbar{

        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 15px;

    }

    .navbar h1{

        margin: 0;

    }

    .navbar-right{

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 10px;

    }

    .navbar-right button{

        width: 100%;

    }

    .welcome{

        text-align: center;

    }

    .welcome h2{

        font-size: 24px;

    }

    .welcome p{

        font-size: 14px;

    }

    .statistics{

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .stat-card{

        padding: 15px;

    }

    .stat-card h3{

        font-size: 16px;

    }

    .stat-card span{

        font-size: 24px;

    }

    .search-section{

        display: flex;

        flex-direction: column;

        gap: 12px;

    }

    .search-section input,

    .search-section select{

        width: 100%;

    }

    .task-card{

        padding: 15px;

    }

    .task-header{

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

    }

    .task-header h3{

        font-size: 18px;

    }

    .task-date{

        margin-top: 5px;

    }

    .task-details{

        font-size: 14px;

    }

    .task-badges{

        display: flex;

        flex-wrap: wrap;

        gap: 8px;

    }

    .task-actions{

        display: flex;

        flex-direction: column;

        gap: 10px;

    }

    .task-actions button{

        width: 100%;

    }

    .pagination{

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 10px;

    }

    .pagination button{

        width: 100%;

        font-size: 14px;

    }

}

/* =============================================
   Loading Spinner
============================================= */

.loading-overlay{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.spinner{

    width:60px;

    height:60px;

    border:6px solid #e5e7eb;

    border-top:6px solid #2563eb;

    border-radius:50%;

    animation:spin .8s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}


/* ==========================================
   Error Pages
========================================== */

.error-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px;

    background:var(--background-color);

}

.error-card{

    width:100%;

    max-width:550px;

    padding:45px;

    border-radius:20px;

    background:var(--card-background);

    box-shadow:var(--card-shadow);

    text-align:center;

}

.error-icon{

    font-size:72px;

    margin-bottom:20px;

}

.error-card h1{

    font-size:64px;

    color:var(--primary);

    margin-bottom:10px;

}

.error-card h2{

    margin-bottom:20px;

    color:var(--text-color);

}

.error-card p{

    color:var(--text-secondary);

    line-height:1.7;

    margin-bottom:30px;

}

.primary-btn{

    display:inline-block;

    padding:14px 24px;

    background:var(--primary);

    color:white;

    text-decoration:none;

    border-radius:12px;

    transition:.3s;

}

.primary-btn:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}