.calculator {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calc-display {
    font-size: 24px;
    font-weight: 300;
    padding: 16px;
    text-align: right;
    background: #1e1e1e;
    color: #d4d4d4;
    border-bottom: 1px solid #3c3c42;
}

.calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 4px;
    background: #3c3c42;
}

.calc-key {
    background: #2d2d30;
    border: none;
    color: #d4d4d4;
    font-size: 18px;
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.calc-key:hover {
    background: #3c3c42;
}

.calc-key.operator {
    color: #d4d4d4;
    font-weight: bold;
}

.calc-key.equals {
    background: #007acc;
    color: white;
}

.calc-key.equals:hover {
    background: #0088ff;
}

.editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#editor-textarea {
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    resize: none;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

#editor-textarea:focus {
    outline: none;
}

.image-viewer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-toolbar {
    display: flex;
    align-items: center;
    padding: 8px;
    background: var(--mint-panel);
    border-bottom: 1px solid var(--mint-border);
    gap: 8px;
}

#image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.software-manager {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.software-header {
    padding: 8px;
    background: var(--mint-panel);
    border-bottom: 1px solid var(--mint-border);
}

#software-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--mint-border);
    border-radius: 4px;
    font-size: 13px;
}

.software-categories {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    gap: 16px;
}

.software-item {
    background: var(--mint-panel);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 200px;
}

.software-item:hover {
    background: var(--mint-hover);
}

.software-item img {
    width: 40px;
    height: 40px;
}

#term-output {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
}

#term-output pre {
    margin: 0;
    white-space: pre-wrap;
}

.browser-content pre {
    margin: 0;
    white-space: pre-wrap;
}