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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #F99620;
    height: 100vh;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.header {
    color: #F99620;
    margin-bottom: 10px;
    font-size: 14px;
}

.console {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #333;
    background: #000;
    font-size: 13px;
    line-height: 1.4;
}

/* Display mode styles */
.console.display-console {
    /* Default console styling - no changes needed */
}

.console.display-content {
    padding: 0;
    background: #111;
}

.console.display-data {
    padding: 5px;
    background: #0a0a0a;
}

/* Content display styling */
.content-display-header {
    background: #222;
    border-bottom: 1px solid #444;
    padding: 10px;
    font-size: 12px;
}

.content-inscription-id {
    color: #F99620;
    font-weight: bold;
    margin-bottom: 5px;
}

.content-type {
    color: #888;
    margin-bottom: 5px;
}

.content-actions {
    margin-top: 8px;
}

.content-actions button {
    background: #333;
    color: #F99620;
    border: 1px solid #555;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    cursor: pointer;
}

.content-actions button:hover {
    background: #444;
}

.content-display-body {
    padding: 15px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.content-text {
    color: #ddd;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.content-json {
    color: #9cf;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive adjustments for content display */
@media (max-width: 768px) {
    .content-display-header {
        font-size: 11px;
        padding: 8px;
    }
    
    .content-display-body {
        padding: 10px;
    }
    
    .content-text, .content-json {
        font-size: 11px;
    }
}

.input-container {
    display: flex;
    margin-top: 10px;
    border: 1px solid #333;
    flex-wrap: wrap;
}

.prompt {
    color: #F99620;
    padding: 8px;
    background: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
    min-width: fit-content;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt.focused {
    background: #222;
    box-shadow: 0 0 3px rgba(249, 150, 32, 0.3);
}

.prompt.focused:hover {
    background: #333;
    box-shadow: 0 0 5px rgba(249, 150, 32, 0.5);
}

#commandInput {
    flex: 1;
    background: #000;
    color: #F99620;
    border: none;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    outline: none;
}

.entry {
    margin: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.entry.input { color: #fff; }
.entry.error { color: #ff4444; }
.entry.success { color: #66cc66; }
.entry.system { color: #ffcc66; }
.entry.json { color: #66ccff; }
.entry.default { color: #F99620; }

.processing {
    color: #ffcc66;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Responsive prompt for different screen sizes */
@media (max-width: 768px) {
    .prompt {
        max-width: 35%;
        font-size: 11px;
        padding: 6px;
    }
    
    #commandInput {
        font-size: 12px;
        padding: 6px;
    }
    
    .console {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .prompt {
        max-width: 30%;
        font-size: 10px;
        padding: 4px;
        line-height: 1.2;
    }
    
    /* For very long addresses, show abbreviated version */
    .prompt.long-address {
        font-size: 9px;
        max-width: 25%;
    }
    
    #commandInput {
        font-size: 11px;
        padding: 4px;
    }
    
    .console {
        font-size: 11px;
        padding: 5px;
    }
    
    .container {
        padding: 5px;
    }
}

/* Special handling for very small screens */
@media (max-width: 320px) {
    .prompt {
        max-width: 20%;
        font-size: 8px;
    }
    
    .prompt.long-address {
        font-size: 7px;
        max-width: 15%;
    }
}

/* Hidden file input */
#fileInput {
    display: none;
}