/* ================================================
   GT Addon — Minimalist Debug Panel
   ================================================ */

.gt-debug-wrap {
    background: #fff;
    color: #222222;
    border: 1px solid #E9E9E9;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    margin-top: 15px;
    max-width: 1000px;
}

/* ---- Header ---- */
.gt-debug-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.gt-debug-title h2 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #3A4750;
}

/* ---- Status badge ---- */
.gt-debug-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: #E9E9E9;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #dcdcdc;
}

.gt-debug-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8c8f94;
    transition: background 0.3s;
}

.gt-debug-dot.active {
    background: #2F67CA;
    box-shadow: 0 0 0 2px rgba(47, 103, 202, 0.2);
}

.gt-debug-status-text {
    color: #3A4750;
    font-weight: 500;
}

.gt-debug-status-text.active {
    color: #2F67CA;
}

/* ---- Controls row ---- */
.gt-debug-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.gt-debug-controls .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.gt-debug-controls .button-primary {
    background: #DD5656;
    border-color: #DD5656;
    color: #fff;
}

.gt-debug-controls .button-primary:hover,
.gt-debug-controls .button-primary:focus {
    background: #2F67CA;
    border-color: #2F67CA;
    color: #fff;
}

.gt-debug-controls .button-secondary {
    color: #DD5656;
    border-color: #DD5656;
    background: transparent;
}

.gt-debug-controls .button-secondary:hover,
.gt-debug-controls .button-secondary:focus {
    color: #2F67CA;
    border-color: #2F67CA;
    background: #fdfdfd;
}

.gt-debug-autorefresh {
    color: #50575e;
    font-size: 13px;
}

/* ---- Terminal window ---- */
.gt-debug-terminal {
    background: #E9E9E9;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.gt-debug-terminal-bar {
    background: #3A4750;
    padding: 8px 12px;
    border-bottom: 1px solid #dcdcde;
    font-size: 12px;
    color: #E9E9E9;
}

.gt-debug-log {
    background: #E9E9E9;
    color: #222222;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 15px;
    margin: 0;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.gt-debug-log::-webkit-scrollbar {
    width: 8px;
}

.gt-debug-log::-webkit-scrollbar-track {
    background: #fff;
}

.gt-debug-log::-webkit-scrollbar-thumb {
    background: #DD5656;
    border-radius: 4px;
}

.gt-debug-log::-webkit-scrollbar-thumb:hover {
    background: #2F67CA;
}

/* Log level colors */
.gt-log-info {
    color: #2F67CA;
}

.gt-log-warn {
    color: #DD5656;
    font-weight: bold;
}

.gt-log-error {
    color: #DD5656;
    font-weight: bold;
    text-decoration: underline;
}

.gt-log-success {
    color: #2F67CA;
    font-weight: bold;
}

.gt-log-debug {
    color: #3A4750;
}

.gt-log-ts {
    color: #8c8f94;
}

/* ---- Empty state ---- */
.gt-debug-empty {
    color: #8c8f94;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}