﻿

.offline-toast {
    position: fixed;
    bottom: 50px;
    right: 10px;
    z-index: 9999;
    max-width: 500px;
    width: calc(100% - 40px);
}

@media (max-width: 768px) {
    .offline-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

.alert-danger {
    background: #ffe6e6;
    color: black;
    border-color: transparent;
}

.dark-mode .alert-danger {
    background: #2b1212;
    color: white;
    border-color: transparent;
}

.dark-mode .close {
    color: white;
}

.offline-toast .alert {
    border-left: 5px solid #FF6464;
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.offline-toast .close {
    position: absolute;
    bottom: 75%;
    right: 10px;
    top: 0;
}

.offline-text-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offline-see-more {
    font-size: 12px;
    font-weight: bold;
    color: #842029;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #dc3545;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    white-space: nowrap;
}

    .offline-see-more:hover {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
        text-decoration: none;
    }


.offline-toast .close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    opacity: 0.5;
}

.dark-mode .offline-see-more {
    color: white;
}