/* Minimal dashboard styling - white background, black text, black borders */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: #fff;
    color: #000;
    font-size: 13px;
    line-height: 1.4;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr 1fr 1fr auto;
    gap: 1px;
    background: #000;
    border: 1px solid #000;
    height: 100%;
    min-height: 100vh;
}

.panel {
    background: #fff;
    padding: 10px;
    overflow: hidden;
}

.panel-header {
    font-weight: bold;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Browser panel - spans left column */
.browser-panel {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* URL list */
.url-list {
    flex: 1;
    overflow-y: auto;
    font-size: 12px;
    min-height: 0;
}

.url-entry {
    padding: 8px 5px;
    border-bottom: 1px dotted #ccc;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.url-entry:hover {
    background: #f5f5f5;
}

.url-time {
    color: #666;
    font-size: 10px;
    flex-shrink: 0;
    min-width: 50px;
}

.url-link {
    color: #333;
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}

.url-link:hover {
    text-decoration: underline;
    color: #000;
}

/* Emotions and Needs */
.state-panel {
    display: flex;
    gap: 20px;
}

.state-section {
    flex: 1;
}

.state-section h4 {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.bar-container {
    margin-bottom: 4px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 2px;
}

.bar {
    height: 8px;
    background: #eee;
    border: 1px solid #000;
}

.bar-fill {
    height: 100%;
    background: #000;
    transition: width 0.3s ease;
}

.bar-fill.critical {
    background: #900;
}

/* Activity log */
.activity-panel {
    grid-column: 1;
}

.log-entries {
    max-height: 150px;
    overflow-y: auto;
    font-size: 11px;
}

.log-entry {
    padding: 2px 0;
    border-bottom: 1px dotted #ccc;
}

.log-time {
    color: #666;
    margin-right: 5px;
}

/* Goals */
.goals-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.goals-list {
    flex: 1;
    overflow-y: auto;
    font-size: 12px;
}

.goal-entry {
    padding: 4px 5px;
    border-bottom: 1px dotted #ccc;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.goal-type {
    font-size: 9px;
    text-transform: uppercase;
    color: #666;
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.goal-type.short {
    background: #e8f4e8;
    color: #2a5a2a;
}

.goal-type.long {
    background: #e8e8f4;
    color: #2a2a5a;
}

.goal-text {
    flex: 1;
}

/* Memory stream */
.memory-panel .memory-entries {
    max-height: 120px;
    overflow-y: auto;
    font-size: 11px;
}

.memory-entry {
    padding: 3px 0;
    border-bottom: 1px dotted #ccc;
}

.memory-icon {
    margin-right: 5px;
}

.memory-type {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
}

/* Decision trace */
.decision-panel {
    display: flex;
    flex-direction: column;
}

.decision-panel .decision-content {
    font-size: 12px;
    font-style: italic;
    padding: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    flex: 1;
    overflow-y: auto;
    max-height: 150px;
}

/* Brain log (ttyd) panel */
.brain-panel {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

.brain-panel iframe {
    flex: 1;
    width: 100%;
    border: 1px solid #000;
    background: #1e1e1e;
}

.brain-panel .panel-header {
    flex-shrink: 0;
}

/* Status bar */
.status-bar {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #f5f5f5;
    border-top: 1px solid #000;
    font-size: 11px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0a0;
}

.status-dot.sleeping {
    background: #666;
}

/* Radar chart for emotions */
.radar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* No data state */
.no-data {
    color: #999;
    font-style: italic;
    font-size: 11px;
}

/* Title bar */
.title-bar {
    grid-column: span 2;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
}
