/* Console CSS - Textual-inspired design */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    background: #1e1e1e;
    overflow: hidden;
    height: 100vh;
}

.console-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.console-header {
    background: #252526;
    border-bottom: 1px solid #3e3e42;
    padding: 12px 16px;
    flex-shrink: 0;
}

.header-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.header-row:first-child {
    margin-bottom: 8px;
}

.console-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.console-header span {
    font-size: 12px;
    color: #cccccc;
}

.console-header #device-id,
.console-header #run-id,
.console-header #mode,
.console-header #strictness {
    color: #4ec9b0;
    font-weight: 500;
}

/* Main Content */
.console-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Sidebar */
.console-sidebar {
    width: 280px;
    background: #252526;
    border-right: 1px solid #3e3e42;
    overflow-y: auto;
    flex-shrink: 0;
    padding: 16px;
}

.sidebar-section h2 {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-item {
    margin-bottom: 8px;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
}

.phase-header:hover {
    background: #2a2d2e;
}

.phase-status {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.phase-title {
    flex: 1;
    font-size: 13px;
    color: #cccccc;
}

.phase-progress {
    font-size: 11px;
    color: #858585;
}

.test-item {
    margin-left: 28px;
    margin-top: 4px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-item:hover {
    background: #2a2d2e;
}

.test-item.active {
    background: #094771;
}

.test-status {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.test-title {
    flex: 1;
    font-size: 12px;
    color: #cccccc;
}

/* Content Area */
.console-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #1e1e1e;
}

.test-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #3e3e42;
}

.test-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.test-purpose {
    font-size: 13px;
    color: #858585;
    line-height: 1.6;
}

.step-checklist-section {
    margin-bottom: 24px;
}

.step-checklist-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-checklist {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 4px;
}

.step-item:hover {
    background: #2a2d2e;
}

.step-item.active {
    background: #094771;
}

.step-checkbox {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.step-number {
    font-size: 12px;
    color: #858585;
    min-width: 60px;
}

.step-name {
    flex: 1;
    font-size: 13px;
    color: #cccccc;
}

.step-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #3e3e42;
    color: #cccccc;
    text-transform: uppercase;
}

/* Current Step Frame */
.current-step-section {
    margin-bottom: 24px;
}

.current-step-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-step-frame {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 20px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #3e3e42;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.step-type {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    background: #094771;
    color: #4ec9b0;
    text-transform: uppercase;
}

.step-content {
    margin-bottom: 20px;
}

.step-section {
    margin-bottom: 16px;
}

.step-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #4ec9b0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-text {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
}

.step-list {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.8;
}

.step-list ul {
    list-style: none;
    padding-left: 0;
}

.step-list li {
    padding-left: 20px;
    position: relative;
}

.step-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #4ec9b0;
}

.step-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #3e3e42;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success {
    background: #0e639c;
    color: #ffffff;
}

.btn-success:hover {
    background: #1177bb;
}

.btn-danger {
    background: #a1260d;
    color: #ffffff;
}

.btn-danger:hover {
    background: #c42e11;
}

.btn-secondary {
    background: #3e3e42;
    color: #cccccc;
}

.btn-secondary:hover {
    background: #4a4a4a;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
    background: #3e3e42;
    color: #cccccc;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #858585;
}

/* Evidence Panel */
.console-evidence {
    width: 300px;
    background: #252526;
    border-left: 1px solid #3e3e42;
    overflow-y: auto;
    flex-shrink: 0;
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #3e3e42;
}

.evidence-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evidence-list {
    padding: 16px;
}

.evidence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
}

.evidence-item:hover {
    background: #2a2d2e;
}

.evidence-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.evidence-name {
    flex: 1;
    font-size: 12px;
    color: #cccccc;
}

.evidence-action {
    font-size: 11px;
    color: #4ec9b0;
    text-decoration: none;
}

.evidence-action:hover {
    text-decoration: underline;
}

/* Footer - Live Feed */
.console-footer {
    height: 200px;
    background: #252526;
    border-top: 1px solid #3e3e42;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #3e3e42;
}

.footer-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-feed {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
}

.feed-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.feed-line.INFO {
    color: #cccccc;
}

.feed-line.WAIT {
    color: #ffa500;
}

.feed-line.WARN {
    color: #ffaa00;
}

.feed-line.ERROR {
    color: #f48771;
}

.feed-line.EVID {
    color: #4ec9b0;
}

.feed-timestamp {
    color: #858585;
    margin-right: 8px;
}

/* Status Icons */
.status-pending { color: #858585; }
.status-running { color: #ffa500; }
.status-pass { color: #4ec9b0; }
.status-warn { color: #ffaa00; }
.status-fail { color: #f48771; }
.status-skip { color: #858585; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

