body {
    background-color: #fff;
    color: #111;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem; /* повысили базовый размер текста */
    line-height: 1.2; /* увеличили интерлиньяж для комфорта */
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #666;
    text-decoration: underline;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 0;
}

footer {
    font-size: 0.875rem;
    color: #777;
    border-top: 1px dashed #ddd;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Стили для обновления ленты через WebSocket */
.news-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px;
    margin-bottom: 1.5rem;
}

.news-item:hover {
    border-left-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.news-item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.news-item.fade-out {
    animation: fadeOutDown 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

#connection-indicator {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

#connection-indicator .toast {
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#connection-indicator .toast:not(.show) {
    opacity: 0;
    pointer-events: none;
}

.connection-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.connection-status.connected {
    background-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.connection-status.disconnected {
    background-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.connection-status.connecting {
    background-color: #ffc107;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
