ui/src/app/applications/components/pod-logs-viewer/pod-logs-viewer.scss
@import 'node_modules/argo-ui/src/styles/config';
@import 'node_modules/argo-ui/src/styles/theme';

$pod-background-light: $argo-color-teal-3;
$pod-background-dark: $dark-theme-background-2;
:root {
    --pod-background-light: #{$pod-background-light};
    --pod-background-dark: #{$pod-background-dark};
}

.pod-logs-viewer {
    height: 90%;
    font-size: 14px;
    font-family: monospace;
    background-color: white;
    padding: 0;
    color: black;

    &--inverted {
        background-color: black;
        color: white;
        scrollbar-color: $argo-color-gray-5 $dark-theme-background-2;
    }

    &__settings {
        display: flex;

        .argo-checkbox,
        .argo-checkbox input,
        .argo-checkbox input:focus {
            appearance: none;
            outline: none !important;
            border: none !important;
            width: 12px;
            margin-right: 8px;
            input:checked + span,
            input + span {
                border: none;
                width: 12px !important;
                background-color: transparent;
            }
            .fa {
                display: none;
            }
        }

        .argo-field {
            @include themify($themes){
                background-color: themed('background-2');
            }
        }

        margin-bottom: 1em;

        > * {
            display: flex;
            align-items: center;
        }

        .argo-button {
            margin-right: 5px;
            border: 1px solid transparent;

            .fa {
                width: 12px;
            }
        }
    }

    &__filter {
        display: flex;
        margin-left: auto;
        width: 320px;

        .argo-button {
            display: flex;
            align-items: center;
        }
    }

    &__menu {
        display: flex;
        margin-bottom: 1em;
        padding-left: 10px;
        .page-info {
            margin-left: auto;
            margin-right: auto;
            padding: 3px 8px;
            text-overflow: clip;
            white-space: nowrap;
        }
        .nav-container {
            display: flex;
            align-self: flex-start;
            padding: 3px 8px;
            cursor: pointer;
            border-radius: 7px;
            align-items: center;
            justify-content: center;
            border: 1px solid black;
            margin: 0 2px;
            &:hover {
                background-color: black;
                color: white;
            }
            &.disabled {
                opacity: 0.5;
                cursor: not-allowed;
            }
        }
        i {
            margin-left: 5px;
        }

        &--inverted {
            i {
                border-color: white;
                &:hover {
                    background-color: white;
                    color: black;
                }
            }
        }
    }

    &__line {
        padding-left: 0.5ch;

        &--selected {
            background-color: red;
            box-shadow: -3px 0 0 0 darkred;
        }

        &__menu {
            border-radius: 6px;
            text-align: center;
            min-width: 25px;
            opacity: 0;
            flex-shrink: 0;
            box-shadow: 0 0 0 1px red inset;
            &--visible {
                opacity: 1;
            }
            &:hover {
                color: red;
            }
        }

        &__number {
            text-align: right;
            min-width: 3ch;
            margin-right: 2ch;
            opacity: 0.5;
            cursor: pointer;
            &:hover {
                opacity: 1;
            }
        }

        &__pod {
            padding-left: 5px;
            padding-right: 5px;
            span {
                display: none;
                text-overflow: ellipsis;
                overflow: hidden;
            }
            width: 3ch;
            min-width: 3ch;
        }
        &__timestamp {
            padding-left: 5px;
            padding-right: 5px;
            span {
                display: none;
                text-overflow: ellipsis;
                overflow: hidden;
            }
            width: 3ch;
            min-width: 3ch;
        }
    }

    &--pod-name-visible {
        .pod-logs-viewer__line__pod {
            span {
                display: inherit;
            }
            i {
                display: none;
            }
            width: 30ch;
            min-width: 30ch;
        }
    }
    &--pod-timestamp-visible {
        .pod-logs-viewer__line__timestamp {
            span {
                display: inherit;
            }
            i {
                display: none;
            }
            width: 30ch;
            min-width: 30ch;
        }
    }

    &__pod-name-toggle {
        cursor: pointer;
        position: fixed;
        top: 50%;
        transform: translateY(2em);
        z-index: 1;
    }

    .pod-name-link {
        cursor: pointer;
        transition: opacity 0.2s ease;
        &:hover {
            text-decoration: underline;
            opacity: 0.8;
        }
    }
}

.select-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;  // Ensure dropdown is wide enough for pod names

    &.dark-mode {
        background: #333; /* Dark background for dark mode */
        border: 1px solid #555; /* Subtle border for dark mode */
        color: #eee; /* Light text for dark mode */
    }
}

.select-options {
    max-height: 200px;
    overflow-y: auto;
    
    .select-option {
        padding: 8px 10px;
        cursor: pointer;
        white-space: nowrap;  // Prevent pod names from wrapping
        
        &:hover {
            background-color: #f5f5f5;
        }

        &.dark-mode {
            background-color: #444; /* Hover effect in dark mode */
            &:hover {
                background-color: #555;
            }
        }
        
        &.selected {
            background-color: #e6f3ff;
        }
        &.dark-mode.selected {
            background-color: #666; /* Selection highlight in dark mode */
        }
    }
}

.clear-highlight {
    padding: 8px 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    color: #1750d3;
    cursor: pointer;
    
    &:hover {
        background-color: #f0f0f0;
    }

    &.dark-mode {
        border-top: 1px solid #555;
        color: #5a9bd3;
        &:hover {
            background-color: #333;
        }
    }
}

.copySuccess {
    // ARGO_SUCCESS_COLOR
    background-color: #18be94 !important;
}
.copyFailure {
    // ARGO_FAILED_COLOR
    background-color: #e96d76 !important;
}
.copyStandard {
    background-color: #6d7f8b !important;
}

.container-item {
    font-size: 0.9em;
    color: $argo-color-teal-5;
}

code {
    background-color: inherit;
    border: none;
    padding: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
}

.ReactVirtualized__Grid__innerScrollContainer {
    overflow: initial !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.noscroll::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.noscroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
