﻿body {
}

/* General Button Styles */
.custom2-btn, .custom-btn, a.custom-btn, a.custom2-btn {
    position: relative;
    display: inline-block;
    padding: 6px 12px; /* Smaller padding */
    font-size: 12px; /* Smaller text */
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* Crystal Effect (Deep Blue) */
.custom2-btn, a.custom2-btn {
    background: linear-gradient(135deg, #332a76, #4c38e6);
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.2), 2px 2px 5px rgba(0,0,0,0.2);
}

/* Crystal Effect (Green) */
.custom-btn, a.custom-btn {
    background: linear-gradient(135deg, #449d57, #3bca59);
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.2), 2px 2px 5px rgba(0,0,0,0.2);
}

/* Hover Effect */
.custom2-btn:hover, .custom2-btn:focus, .custom2-btn:active {
    background: linear-gradient(135deg, #4c38e6, #6654f7);
/*    box-shadow: 3px 3px 8px rgba(76, 56, 230, 0.4), -3px -3px 8px rgba(102, 84, 247, 0.4);
*/    transform: scale(1.02);
}

.custom-btn:hover, .custom-btn:focus, .custom-btn:active {
    background: linear-gradient(135deg, #3bca59, #61e97b);
/*    box-shadow: 3px 3px 8px rgba(59, 202, 89, 0.4), -3px -3px 8px rgba(97, 233, 123, 0.4);
*/    transform: scale(1.02);
}

/* Shiny Overlay Effect */
.custom2-btn::before, .custom-btn::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(25deg);
    transition: all 0.5s ease-in-out;
    opacity: 0;
}

.custom2-btn:hover::before, .custom-btn:hover::before {
    top: 0;
    left: 0;
    opacity: 1;
}



    /* Remove Bootstrap Active/Focus Outline */
    .custom-btn:focus,
    .custom-btn:active {
        outline: none !important;
        box-shadow: none !important;
    }

    /* Red Button */
    .custom-btn.red {
        background: linear-gradient(135deg, #c0392b, #e74c3c);
    }

        .custom-btn.red:hover,
        .custom-btn.red:focus,
        .custom-btn.red:active {
            background: linear-gradient(135deg, #e74c3c, #ff6b5e);
            box-shadow: 3px 3px 8px rgba(231, 76, 60, 0.4), -3px -3px 8px rgba(255, 107, 94, 0.4);
        }

    /* Orange Button */
    .custom-btn.orange {
        background: linear-gradient(135deg, #e67e22, #f39c12);
    }

        .custom-btn.orange:hover,
        .custom-btn.orange:focus,
        .custom-btn.orange:active {
            background: linear-gradient(135deg, #f39c12, #ffae42);
            box-shadow: 3px 3px 8px rgba(243, 156, 18, 0.4), -3px -3px 8px rgba(255, 174, 66, 0.4);
        }

    /* Light Blue (For Info) */
    .custom-btn.lightblue {
        background: linear-gradient(135deg, #3498db, #5dade2);
    }

        .custom-btn.lightblue:hover,
        .custom-btn.lightblue:focus,
        .custom-btn.lightblue:active {
            background: linear-gradient(135deg, #5dade2, #85c1e9);
            box-shadow: 3px 3px 8px rgba(93, 173, 226, 0.4), -3px -3px 8px rgba(133, 193, 233, 0.4);
        }

/* Silver Gray (For Cancel/Secondary) */
.cancle-btn.silvergray, a.cancle-btn.silvergray {
    background: linear-gradient(135deg, #bdc3c7, #d5dbdb);
    position: relative;
    overflow: hidden;
}

    /* Add the same Shiny Overlay Effect */
    .cancle-btn.silvergray::before {
        content: "";
        position: absolute;
        top: -100%;
        left: -100%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, rgba(255, 255, 255, 0) 60%);
        box-shadow: none;
        transform: rotate(25deg);
        transition: all 0.5s ease-in-out;
        opacity: 0;
    }

    .cancle-btn.silvergray:hover::before {
        top: 0;
        left: 0;
        opacity: 1;
        box-shadow: none;
    }


    /* Add the same Shiny Overlay Effect */
    .detail-btn.crystalwhite::before {
        content: "";
        position: absolute;
        top: -100%;
        left: -100%;
        width: 200%;
        height: 200%;
       /* background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, rgba(255, 255, 255, 0) 60%);
        box-shadow: none;
        transform: rotate(25deg);
        transition: all 0.5s ease-in-out;*/
        opacity: 0;
    }

.detail-btn.crystalwhite:hover::before {
    top: 0;
    left: 0;
    opacity: 1;
    box-shadow: none;
}
/* Default size for larger screens */
.logo-img {
    width:120Px;
/*    margin-left:41px;
*/    max-width: 100%; /* Ensure logo doesn't exceed its container */
    height: auto; /* Keep aspect ratio */
    transition: width 0.3s ease; /* Smooth transition when resizing */
    border-radius:10px;
}

/* Smaller screen sizes (when navbar shrinks) */
@media (max-width: 768px) {
    .logo-img {
        margin-left:3px;
        width: 450px; /* Logo width for smaller screens */
    }
}

@media (max-width: 480px) {
    .logo-img {
        margin-left: 2px;
        width: 100px; /* Logo width for very small screens */
    }
}





.toast-custom {
    animation: bounceIn 0.6s ease-out, fadeOut 3s 2.5s forwards;
    border-radius: 8px;
    padding: 2px 8px; 
    width: 300px;
    font-size: 12px !important; 
    line-height: 0.2; 
    top: 20px;  
    left: 50%; 
  
    max-width: 100%; 
    padding: 0 10px;
}

/* Bounce animation */
@keyframes bounceIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    60% {
        transform: translateY(30px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
    }
}

/* Fade out animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Style the close button to make it white */
.btn-white-custom {
    color: white !important;
    border: none;
    opacity: 1;
}

/* Optional: Add a slight shadow to the toast for more visibility */
.toast {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px; /* Adjust font size globally for toast text */
}

/* Optional: Adjust padding inside the toast header */
.toast-header {
    padding: 8px 12px;
}





@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.loader {
    width: 80px;
    height: 80px;
    background-color: #332a76;
    border-radius: 50%;
    position: fixed;
    box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.5) inset, 0 5px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: block;
    z-index: 9999;
    top: 40%;
    left: 50%;
}

    .loader:before,
    .loader:after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 45%;
        top: -40%;
        background-color: #fff;
        animation: wave 5s linear infinite;
    }

    .loader:before {
        border-radius: 30%;
        background: rgba(255, 255, 255, 0.4);
        animation: wave 5s linear infinite;
    }

@keyframes wave {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}




#customContextMenu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 999;
    display: flex;
    flex-direction: column;
}


    #customContextMenu a.btn {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        text-align: left;
    }