#streamWindow {
    width: 1000px;
}

.stream-window-body {
    padding: 8px;
    background-color: #c0c0c0;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.stream-content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 8px;
    background-color: #c0c0c0;
    border: 2px solid #c0c0c0;
}

.stream-left-panel {
    width: 280px;
    background: #c0c0c0;
    border: 2px inset #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stream-right-panel {
    flex: 1;
    background: #fff;
    border: 2px inset #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#streamRequestsContainer {
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    padding: 8px 8px 8px 8px;
    box-sizing: border-box;
    position: relative;
    background: #c0c0c0;
}


.stream-request-item {
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    color: #000;
    margin-bottom: 2px;
    padding: 2px 4px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: none;
}

.stream-request-item:hover {
    background-color: #e0e0e0;
}

.stream-request-item.selected {
    background-color: #e0e0e0;
    border-top: 2px inset #808080;
    border-left: 1px inset #808080;
    border-bottom: 2px inset #fff;
    border-right: 2px inset #fff;
}

.stream-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 2px 4px;
}

.stream-request-header .hex {

    width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.stream-request-header > span:last-child {
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stream-details-header {
    background-color: #E95FC8;
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 13px;
}

.stream-details-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    font-size: 13px;
}

.stream-no-selection {
    text-align: center;
    color: #808080;
    margin-top: 20px;
    font-style: italic;
    font-size: 13px;
}

.stream-status-bar {
    background-color: #c0c0c0;
    border-top: 2px solid #808080;
    padding: 3px 5px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
}

.stream-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px;
    font-style: italic;
    width: 80%;
    z-index: 10;
}

#streamRequestsContainer:not(:empty) .stream-loading {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


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

.stream-connected {
    background-color: #00aa00;
}

.stream-disconnected {
    background-color: #aa0000;
}

.stream-connecting {
    background-color: #aaaa00;
}

.stream-data-field {
    margin-bottom: 6px;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dotted #a0a0a0;
}

.stream-field-name {
    width: 150px;
    min-width: 150px;
    color: #000080;
    padding-right: 10px;
    padding-right: 4px;
    font-size: 13px;
    border-right: 1px solid #c0c0c0;
}

.stream-field-value {
    flex: 1;
    padding-left: 10px;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.stream-field-value.url {
    color: #0000ff;
    text-decoration: underline;
    cursor: pointer;
}

.stream-field-value.hex {
    color: #008000;
    font-size: 12px;
}

.stream-field-value.date {
    color: #800080;
}

.stream-field-value.status {
    font-weight: bold;
    border-radius: 3px;
}

.stream-status-requested {
    background: none;
    color: inherit;
}

.stream-status-fulfilled {
    background-color: #FF11C5;
    color: #fff;
}

.stream-status-assigned {
    background-color: #A8E800;
    color: #000;
}

.stream-status-completed {
    background-color: #002C64;
    color: #fff;
}

.stream-status-failed {
    background-color: #88B400;
    color: #fff;
}

.stream-field-value.number {
    color: #ff6600;
}

.stream-field-value.boolean {
    color: #0000ff;
    font-weight: bold;
}

.stream-array-item {
    margin-left: 0px;
    padding: 1px 0;
}

.stream-object-field {
    margin-left: 16px;
    border-left: 2px solid #c0c0c0;
    padding-left: 8px;
}

.stream-buffer-container {
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px solid #c0c0c0;
}

.stream-buffer-type {
    color: #000080;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 12px;
}

.stream-buffer-data {
    font-size: 12px;
    color: #008000;
    background-color: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    white-space: normal; 
    word-break: break-all;
}

.stream-more-items {
    color: #666;
    font-style: italic;
}

.stream-copy-btn {
    background: none;
    border: none;
    color: #000080;
    cursor: pointer;
    margin-left: 5px;
    padding: 0 3px;
    font-size: 12px;
}

.stream-copy-btn:hover {
    background-color: #e0e0e0;
}