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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    height: 100vh;
}

/* Login */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1rem;
}

.login-container h1 {
    font-size: 2.5rem;
    color: #ff4444;
}

.subtitle {
    color: #666;
    margin-bottom: 1rem;
}

.error {
    color: #ff4444;
    background: #1a0000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ff4444;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 300px;
}

.login-container input {
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
}

.login-container button {
    padding: 0.75rem;
    background: #ff4444;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.login-container button:hover {
    background: #cc3333;
}

/* App layout */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
}

header h1 {
    font-size: 1.5rem;
    color: #ff4444;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.model-name {
    color: #666;
    font-size: 0.85rem;
    font-family: monospace;
}

.btn-small {
    padding: 0.3rem 0.7rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-small:hover {
    background: #333;
    color: #e0e0e0;
}

/* Pod controls */
.pod-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #222;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

.status-stopped .status-dot { background: #666; }
.status-starting .status-dot,
.status-waiting\ for\ ssh .status-dot,
.status-establishing\ tunnel .status-dot {
    background: #ffaa00;
    animation: pulse 1.5s infinite;
}
.status-ready .status-dot { background: #44ff44; }
.status-auto-stopping .status-dot { background: #ff4444; }

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

.pod-id {
    color: #555;
    font-family: monospace;
    font-size: 0.8rem;
}

.idle-info {
    color: #555;
    font-size: 0.8rem;
}

.pod-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-start {
    background: #1a3a1a;
    color: #44ff44;
    border: 1px solid #2a5a2a;
}

.btn-start:hover { background: #2a4a2a; }

.btn-stop {
    background: #3a1a1a;
    color: #ff4444;
    border: 1px solid #5a2a2a;
}

.btn-stop:hover { background: #4a2a2a; }

.btn-send {
    background: #ff4444;
    color: white;
    padding: 0.75rem 1.5rem;
    align-self: flex-end;
}

.btn-send:hover { background: #cc3333; }
.btn-send:disabled { background: #333; color: #666; cursor: not-allowed; }

/* Messages */
.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
}

.message-user {
    background: #1a1a2e;
    align-self: flex-end;
    border: 1px solid #2a2a4e;
}

.message-assistant {
    background: #1a1a1a;
    align-self: flex-start;
    border: 1px solid #2a2a2a;
}

.message-role {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Input area */
.input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #222;
}

.input-area textarea {
    flex: 1;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.input-area textarea:focus {
    outline: none;
    border-color: #ff4444;
}
