/* Console Wrapper */
.console-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #1e1e1e;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Console Header */
.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-bottom: 1px solid #3e3e3e;
}

.console-title {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.console-toolbar {
    display: flex;
    gap: 6px;
}

/* Console Output Area */
.console-output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px;
    background: #1e1e1e;
    font-size: 13px;
    line-height: 1.6;
}

/* Log Line */
.log-line {
    display: flex;
    align-items: baseline;
    padding: 0px 0;
    margin-bottom: 0px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Timestamp */
.log-timestamp {
    color: #858585;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
    font-weight: 500;
}

/* Source */
.log-source {
    color: #6c757d;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
    background: rgba(108, 117, 125, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Level Badge */
.log-level-badge {
    margin-right: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Message */
.log-message {
    color: #d4d4d4;
    flex: 1;
}

/* Info Level - Blue */
.log-info .log-level-badge {
    filter: hue-rotate(200deg);
}
.log-info .log-message {
    color: #4fc3f7;
}

/* Success Level - Green */
.log-success .log-level-badge {
    filter: hue-rotate(120deg);
}
.log-success .log-message {
    color: #66bb6a;
    font-weight: 500;
}

/* Warning Level - Orange */
.log-warning .log-level-badge {
    filter: hue-rotate(40deg);
}
.log-warning .log-message {
    color: #ffb74d;
    font-weight: 500;
}

/* Error Level - Red */
.log-error .log-level-badge {
    filter: hue-rotate(0deg);
}
.log-error .log-message {
    color: #ef5350;
    font-weight: 600;
}

/* Debug Level - Purple */
.log-debug .log-level-badge {
    filter: hue-rotate(270deg);
}
.log-debug .log-message {
    color: #9575cd;
    font-style: italic;
}

/* Scrollbar Styling */
.console-output::-webkit-scrollbar {
    width: 8px;
}

.console-output::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.console-output::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-line {
    animation: fadeIn 0.2s ease-out;
}
