@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;500&display=swap');

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #0f1115;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #02040a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

.app-container {
    min-height: 100vh;
    background: #0f1115;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    background: #1a1d23;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .content-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .app-container {
        align-items: flex-start;
    }
}

.input-section,
.status-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    height: 300px;
    background: #242933;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #fff;
    padding: 16px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.upload-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #242933;
    border: 2px dashed #334155;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.upload-trigger .text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.start-btn {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
}

.terminal-view {
    height: 300px;
    background: #0b0d11;
    border-radius: 12px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    overflow-y: auto;
    color: #94a3b8;
    box-sizing: border-box;
}

.log-line {
    margin-bottom: 6px;
    border-left: 2px solid #334155;
    padding-left: 8px;
}

.log-line.log-error {
    border-left-color: #ef4444;
    color: #fca5a5;
}

.api-key-group {
    display: flex;
    gap: 10px;
}

.api-key-input {
    flex-grow: 1;
    background: #242933;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #fff;
    padding: 14px 16px;
    outline: none;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.save-key-btn {
    padding: 0 20px;
    background: #4f46e5;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.api-key-status {
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 8px;
}

.download-btn {
    display: block;
    margin-top: 15px;
    text-align: center;
    padding: 14px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
}

.pulse-loader {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.project-info {
    background: #1a1d23;
    padding: 20px 30px;
    border-radius: 24px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

.project-info h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-info p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

.project-info .warning-note {
    color: #ffcc00;
    font-weight: bold;
    font-size: 0.95rem;
}
