@import url('https://cdn.jsdelivr.net/npm/xterm@5.1.0/css/xterm.css');

/* Global styles */
:root {
    --primary-color: #00ff9d;
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --error-color: #ff4444;
    --success-color: #00cc66;
    --warning-color: #ffbb33;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Login container */
#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* App container */
#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Status bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.status {
    font-size: 14px;
}

.status.connected {
    color: var(--success-color);
}

.status.disconnected {
    color: var(--error-color);
}

/* Terminal container */
.terminal-container {
    flex: 1;
    background-color: #000;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex child to shrink */
}

#terminal {
    flex: 1;
    min-height: 0; /* Important for flex child to shrink */
}

.xterm {
    height: 100%;
}

/* Controls */
.controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Button styles */
.btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Terminal customization */
.xterm-viewport::-webkit-scrollbar {
    width: 10px;
}

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

.xterm-viewport::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

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