﻿
.displaynone {
    display: none !important;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 280px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}


/* ==========================================
   Global Spinner Overlay Styles
   ========================================== */


/* ==========================================
   Global Toast Notification Styles
   ========================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: 100%;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.toast-icon {
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.toast-body {
    word-break: break-word;
}

.toast-success {
    background-color: #10b981; /* Green */
    border-left: 5px solid #047857;
}

.toast-error {
    background-color: #ef4444; /* Red */
    border-left: 5px solid #b91c1c;
}

.toast-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.toast-close:hover {
    opacity: 1;
}
