body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e8f9fa;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}


/* ========== TOAST УВЕДОМЛЕНИЯ ДЛЯ ФАЙЛОВ ========== */
.file-size-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 280px;
    max-width: 380px;
    background: #1e1e2f;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.file-size-toast.show {
    transform: translateX(0);
}

.file-size-toast.toast-error {
    border-left: 4px solid #ff4757;
}

.file-size-toast.toast-success {
    border-left: 4px solid #2ed573;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    background: #2d2d3f;
}

.toast-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 500;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Прогресс-бар */
.toast-progress {
    height: 3px;
    background: #ff4757;
    width: 100%;
    animation: progressShrink 4s linear forwards;
}

.toast-success .toast-progress {
    background: #2ed573;
}

@keyframes progressShrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
    .file-size-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: auto;
        max-width: none;
    }

    .toast-content {
        padding: 12px 14px;
    }

    .toast-message {
        font-size: 13px;
    }

    .toast-icon {
        font-size: 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .toast-content {
        padding: 10px 12px;
    }

    .toast-message {
        font-size: 12px;
    }
}