/* Connection Status Indicator */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.connection-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.connection-status.connected {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.connection-status.connected .status-indicator {
    background: #198754;
}

.connection-status.disconnected {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.connection-status.disconnected .status-indicator {
    background: #dc3545;
    animation: none;
}

.connection-status.reconnecting {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.connection-status.reconnecting .status-indicator {
    background: #ffc107;
}

.connection-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.connection-status.error .status-indicator {
    background: #dc3545;
    animation: blink 1s infinite;
}

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

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(30, 33, 40, 0.98);
    border-left: 4px solid;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(450px);
    opacity: 0;
}

.notification-commit {
    border-left-color: #0dcaf0;
}

.notification-pr {
    border-left-color: #6f42c1;
}

.notification-info {
    border-left-color: #0d6efd;
}

.notification-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.notification-commit .notification-icon {
    color: #0dcaf0;
}

.notification-pr .notification-icon {
    color: #6f42c1;
}

.notification-info .notification-icon {
    color: #0d6efd;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #fff;
}

.notification-message {
    font-size: 0.85rem;
    color: #adb5bd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #fff;
}

/* Live Metric Updates */
.live-metric {
    position: relative;
}

.live-metric.updating::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #0dcaf0;
    border-radius: 50%;
    animation: pulse 1s ease-out;
}

.metric-last-update {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification.hide {
        transform: translateY(-100px);
    }
}
