
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    display: flex;
    height: 100vh;
}

@keyframes bgAnimation {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.sidebar {
    width: 300px;
    background: #222;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.sidebar h2 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
    padding: 10px;
    background: #444;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar li:hover {
    background: #666;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.stream-container {
    border: 2px solid #444;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fff;
    transition: opacity 0.5s, transform 0.5s;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s;
    height: 216px;
    width: 320px;
}

.stream-container.show {
    opacity: 1;
}
.stream-container:active {
    cursor: grabbing;
}

.stream-name {
    padding: 10px;
    background: #333;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.stream-container video {
    width: 100%;
    cursor: pointer;
    max-width: 320px;
    max-height: 242px;
}

.stream-container button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.notification {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    margin-top: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s;
}

.notification.show {
    opacity: 1;
}

#notification-container {
    flex-grow: 1;
    transition: flex-grow 100ms linear;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    display: flex;
    flex-direction: column-reverse;
}