#loading-overlay {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#loading-overlay.hide {
    opacity: 0;
}

#loading-overlay.show {
    opacity: 1;
}

body.night #loading-overlay {
    background: rgba(0, 0, 0, 0.96);
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    transition: 
        border-top-color 0.3s ease,
        border-color 0.3s ease;
}

body.night .loader {
    border: 4px solid #131313;
    border-top: 4px solid #3498db;
}

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

.loading-text {
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
}

body.night .loading-text {
    color: #f3f3f3;
}

.dm-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: fit-content;
    height: fit-content;
    margin: 16px;
    z-index: 1000;
}

.dm-tooltip {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 4px;
}

.dm-tooltip button {
    margin-top: 8px;
    padding: 8px 16px;
    cursor: pointer;
}