/**
 * Styles for the BTM Logs Widget
 */
.btm-logs-widget {
    margin: 0 -12px;
    padding: 10px;
    position: relative;
}

.btm-logs-header {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btm-logs-content {
    padding: 0 12px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
}

.btm-log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 12px;
    line-height: 1.4;
}

.btm-log-entry:last-child {
    border-bottom: none;
}

.btm-log-entry.debug { color: #666; }
.btm-log-entry.info { color: #0073aa; }
.btm-log-entry.warning { color: #dba617; }
.btm-log-entry.error { color: #dc3232; }

.btm-log-time {
    color: #666;
    margin-right: 10px;
}

.btm-log-level {
    font-weight: bold;
    margin-right: 10px;
}

.btm-log-level-error {
    background-color: #ffeaea;
}

.btm-log-level-error .btm-log-level {
    color: #dc3232;
}

.btm-log-level-warning {
    background-color: #fff8e5;
}

.btm-log-level-warning .btm-log-level {
    color: #dba617;
}

.btm-log-level-info {
    background-color: #e5f5fa;
}

.btm-log-level-info .btm-log-level {
    color: #00a0d2;
}

.btm-log-level-debug {
    background-color: #f7f7f7;
}

.btm-log-level-debug .btm-log-level {
    color: #666;
}

.btm-logs-loading,
.btm-no-logs,
.btm-logs-error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.btm-logs-error {
    color: #dc3232;
}

.btm-no-logs,
.btm-error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.btm-error {
    color: #dc3232;
}

.btm-logs-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.btm-test-update-container {
    display: inline-block;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .btm-logs-header {
        flex-direction: column;
    }
    
    .btm-logs-header select,
    .btm-logs-header button {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .btm-logs-header {
        border-color: #1d2327;
    }

    .btm-log-entry {
        border-color: #1d2327;
    }

    .btm-log-entry.debug { color: #bbb; }
    .btm-log-entry.info { color: #00b9eb; }
    .btm-log-entry.warning { color: #ffc733; }
    .btm-log-entry.error { color: #f55; }

    .btm-no-logs,
    .btm-logs-loading {
        color: #bbb;
    }
}
