﻿
    #pageLoader {
    position: fixed;
    width: calc(100% - 224px); /* Subtracting sidebar width */
    height: calc(100% - 70px); /* Subtracting topbar height */
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    top: 70px; /* Starting after topbar */
    left: 224px; /* Starting after sidebar */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    transition: all .3s;
    }

    .spinner {
    border: 2px solid skyblue;
    border-top: 2px solid green;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    }

    @keyframes spin {
    0% {
    transform: rotate(0deg);
    }

    100% {
    transform: rotate(360deg);
    }
    }

    .login-body {
    background-color: #a9aebd;
    background-image: linear-gradient(180deg, #1248e587 10%, #acb5d140 100%);
    background-size: cover;
    }

    .login-background {
    background-image: url('../img/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    }

    .login-form {
    background-color: aliceblue
    }

    .dashboard-sidebar {
    background-color: #1f8165;
    background-image: linear-gradient(100deg, #0d4f5fcf 10%, #14dfa7 100%);
    background-size: cover;
    }

    .custom-modal-content {
    background: linear-gradient(to bottom right, #f0f2f5, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: #2c3e50;
    transition: all 0.3s ease-in-out;
    }

    .custom-modal-content .modal-header h5 {
    font-weight: 600;
    }

    .custom-modal-content .modal-body {
    font-size: 15px;
    color: #5f6b7a;
    }

    .custom-modal-content .btn {
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    }

    .custom-modal-content .btn-primary {
    background-color: #2f80ed;
    border-color: #2f80ed;
    color: #fff;
    }

    .custom-modal-content .btn-outline-secondary {
    border-color: #b0bec5;
    color: #546e7a;
    }

    .custom-modal-content .btn-outline-secondary:hover {
        background-color: #eceff1;
    }

    /* DataTables custom styling */
    div.dataTables_wrapper div.dataTables_filter {
        text-align: right !important;
        padding-right: 5px !important;
    }
    
    div.dataTables_wrapper {
        width: 100% !important;
    }

    .dataTables_filter input {
        border: 1px solid #e3e6f0 !important;
        border-radius: 4px !important;
        padding: 6px 12px !important;
        margin-left: 8px !important;
        background-color: #f8f9fc !important;
        transition: all .2s !important;
    }

    .dataTables_filter input:focus {
        background-color: #fff !important;
        border-color: #bac8f3 !important;
        outline: 0 !important;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25) !important;
    }

    /* When sidebar is toggled */
    body.sidebar-toggled #pageLoader {
        left: 104px; /* Width of collapsed sidebar */
        width: calc(100% - 104px);
    }

    /* For mobile devices */
    @media (max-width: 768px) {
        #pageLoader {
            left: 0;
            width: 100%;
        }
    }

    .alert-wrapper {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
        min-width: 300px;
        max-width: 500px;
    }

    .alert {
        margin-bottom: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .alert i {
        margin-right: 8px;
    }
/* wwwroot/areas/admin/css/admin-style.css */

.custom-float-alert {
    position: fixed; /* Makes it float relative to the viewport */
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right (will be animated) */
    z-index: 1050; /* Ensure it's above other elements like modals */
    width: 350px; /* Max width of the alert */
    max-width: calc(100% - 40px); /* Responsive max width */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Soft shadow */
    opacity: 0; /* Hidden by default, will be animated */
}

    /* Optional: Style the close button if needed */
    .custom-float-alert .close {
        padding: 0.75rem 1.25rem;
        color: inherit; /* Inherit text color from the alert */
        opacity: 0.5;
    }

        .custom-float-alert .close:hover {
            opacity: 0.75;
        }