﻿/* МОДАЛЬНОЕ ОКНО */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    .custom-modal.show {
        display: flex;
    }

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #292929;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    min-width: 300px;
    animation: modalSlideDown 0.3s ease;
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content svg {
    margin-bottom: 15px;
}

.modal-content p {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.modal-content button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

    .modal-content button:hover {
        background-color: #0056b3;
    }

/* TOAST УВЕДОМЛЕНИЯ */
.toast-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: right 0.3s ease;
    color: #ffffff;
    min-width: 300px;
    max-width: 400px;
}

    .toast-notification.show {
        right: 20px;
    }

    .toast-notification svg {
        flex-shrink: 0;
    }

.toast-error {
    background-color: #dc3545;
}

.toast-success {
    background-color: #28a745;
}

.toast-warning {
    background-color: #ffc107;
    color: #000;
}

    .toast-warning svg {
        stroke: #000;
    }

.toast-info {
    background-color: #17a2b8;
}

/* SNACKBAR (снизу) */
.snackbar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 9999;
    transition: bottom 0.3s ease;
    color: #ffffff;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .snackbar.show {
        bottom: 30px;
    }

.snackbar-error {
    background-color: #dc3545;
}

.snackbar-success {
    background-color: #28a745;
}

.snackbar-warning {
    background-color: #ffc107;
    color: #000;
}

.snackbar-info {
    background-color: #17a2b8;
}

/* БАННЕР (сверху на всю ширину) */
.banner {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    z-index: 9999;
    transition: top 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .banner.show {
        top: 0;
    }

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
}

    .banner-content svg {
        flex-shrink: 0;
    }

    .banner-content span {
        flex: 1;
    }

.banner-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

    .banner-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.banner-error {
    background-color: #dc3545;
}

.banner-success {
    background-color: #28a745;
}

.banner-warning {
    background-color: #ffc107;
    color: #000;
}

    .banner-warning .banner-close {
        color: #000;
    }

    .banner-warning svg {
        stroke: #000;
    }

.banner-info {
    background-color: #17a2b8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .toast-notification {
        min-width: auto;
        max-width: calc(100% - 40px);
        right: -100%;
    }

        .toast-notification.show {
            right: 20px;
        }

    .snackbar {
        min-width: auto;
        max-width: calc(100% - 40px);
    }
}
