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

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

body {
    background: #0a0a12;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    padding: 20px;
}

.container {
    background: #14141f;
    border-radius: 16px;
    border: 1px solid #2a2a3e;
    padding: 30px;
    width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

pre {
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
    white-space: pre;
    text-align: center;
    width: 100%;
    overflow: hidden;
    max-height: 80vh;
    animation: rainbow 10s linear infinite;
    margin-bottom: 15px;
}

@keyframes rainbow {
    0% { color: #ff6b6b; }
    16% { color: #ffd93d; }
    33% { color: #6bcb77; }
    50% { color: #4d96ff; }
    66% { color: #9b59b6; }
    83% { color: #ff6b6b; }
    100% { color: #ff6b6b; }
}

.status {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a2a3e;
    color: #5a5f7a;
    font-size: 0.8rem;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 10px auto 0;
    display: none;
}

.progress-container.visible {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #1a1c2e;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px auto 0;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6d7bb5, #a8b8e0);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #8a9edb;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 4px;
}

.progress-details {
    color: #6a7a9a;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 2px;
    font-family: 'Courier New', monospace;
}

.cancel-btn {
    margin-top: 8px;
    background: #3a1a1a;
    border: 1px solid #5a2a2a;
    padding: 4px 16px;
    border-radius: 30px;
    color: #ff7a7a;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
    display: none;
}

.cancel-btn:hover {
    background: #4a2a2a;
    border-color: #7a3a3a;
    color: #ff9a9a;
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

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

.error {
    color: #ff6b6b;
}

.success {
    color: #69db7c;
}
