
.level {
    white-space: pre-wrap;
    tab-size: 4;
    word-break: break-word;
    box-sizing: border-box;
}

.level-prefix {
    font-weight: bold;
}

.level-info {
    color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.level-title {
    font-weight: bold;
    color: #f0f0f0;
    background-color: #2d87d3;
    padding: 0 8px;
    border-radius: 2px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.level-info .level-prefix,
.level-notice .level-prefix,
.level-debug .level-prefix {
    color: #2d87d3;
}

.level-notice {
    background-color: rgba(163, 216, 245, 0.1); /* Light blue with 10% opacity */
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.level-debug {
    background-color: rgba(163, 216, 245, 0.05); /* Light blue with 5% opacity */
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.level-warning {
    color: #FF6625;
    background-color: rgba(255, 102, 37, 0.1); /* #FF6625 with 10% opacity */
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.level-error,
.level-critical,
.level-emergency,
.level-stacktrace {
    color: #F62451;
    background-color: rgba(246, 36, 81, 0.1); /* #F62451 with 10% opacity */
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

/* Fallback styles for any unrecognized level types */
.level-unknown {
    color: #f0f0f0;
    background-color: rgba(128, 128, 128, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

/* Robust container styles */
.log-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    box-sizing: border-box;
    min-height: 200px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Better accessibility and contrast */
.level-error,
.level-critical,
.level-emergency {
    font-weight: bold;
    border-left: 2px solid #F62451;
    padding-left: 6px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .level {
        font-size: 12px;
        padding: 1px 2px;
    }
    
    .level-title {
        padding: 0 4px;
        font-size: 12px;
    }
    
    .log-container {
        font-size: 12px;
        padding: 5px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .level-warning {
        background-color: rgba(255, 102, 37, 0.3) !important;
        color: #000 !important;
    }
    
    .level-error,
    .level-critical,
    .level-emergency,
    .level-stacktrace {
        background-color: rgba(246, 36, 81, 0.3) !important;
        color: #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .level {
        background: transparent !important;
        color: black !important;
    }
    
    .level-warning {
        background: rgba(255, 102, 37, 0.2) !important;
    }
    
    .level-error,
    .level-critical,
    .level-emergency,
    .level-stacktrace {
        background: rgba(246, 36, 81, 0.2) !important;
    }
}

.level-comment {
    color: #A4A4A4;
}

.format-black {
    color: #000;
}

.format-darkblue {
    color: #0000AA;
}

.format-darkgreen {
    color: #00AA00;
}

.format-darkaqua {
    color: #00AAAA;
}

.format-darkred {
    color: #AA0000;
}

.format-darkpurple {
    color: #AA00AA;
}

.format-gold {
    color: #FFAA00;
}

.format-gray {
    color: #AAAAAA;
}

.format-darkgray {
    color: #555555;
}

.format-blue {
    color: #5555FF;
}

.format-green {
    color: #55FF55;
}

.format-aqua {
    color: #55FFFF;
}

.format-red {
    color: #FF5555;
}

.format-lightpurple {
    color: #FF55FF;
}

.format-yellow {
    color: #FFFF55;
}

.format-white {
    color: #FFFFFF;
}

.format-reset {
    color: #FFFFFF;
    font-weight: normal;
    text-decoration: none;
    font-style: normal;
    display: inline-block;
}

.format-bold {
    font-weight: bold;
}

.format-underline {
    text-decoration: underline;
}

.format-italic {
    font-style: italic;
}

.format-strike {
    text-decoration: line-through;
}

.multiline {
    padding-left: 64px;
}

.highlight-error {
    background: #F62451;
    color: #f0f0f0;
    padding: 0px 3px;
    border-radius: 2px;
    font-weight: bold;
    display: inline-block;
}

.highlight-warning {
    background: #FF6625;
    color: #f0f0f0;
    padding: 0px 3px;
    border-radius: 2px;
    font-weight: bold;
    display: inline-block;
}

.line-number-container {
    text-align: right;
    vertical-align: top;
}

.line-number {
    padding: 0 4px 0 6px;
    margin-right: 4px;
    color: #777;
    font-weight: bold;
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    outline: none;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    word-break: keep-all;
    white-space: nowrap;
}

.line-number:hover {
    color: #2d87d3;
}

.line-active {
    background: #2d87d3;
    color: #f0f0f0;
    border-radius: 2px;
}

.line-active:hover {
    color: #f0f0f0;
    cursor: default;
}

.entry {
    overflow-wrap: anywhere;
}

@media all and (max-width: 800px) {
    .multiline {
        padding-left: 0;
    }
}