* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #000000;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 5px;
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    text-align: center;
    margin-bottom: 10px;
    color: #8B5CF6;
    font-size: 1.2em;
}

h2 {
    margin-bottom: 10px;
    color: #444;
}

h3 {
    margin-bottom: 15px;
    color: #333;
}

.editor-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    height: 500px;
}

.input-section, .output-section {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.info-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.info-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 8px 0;
    font-size: 1.1em;
}

.canister-info {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.canister-info code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.deployment-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.deployment-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.deployment-info a {
    color: #b3d9ff;
    text-decoration: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.deployment-info a:hover {
    color: white;
    text-decoration: underline;
}

.deployment-info p {
    margin-bottom: 10px;
}

.deployment-info em {
    font-style: italic;
    opacity: 0.9;
}

textarea {
    flex: 1;
    width: 100%;
    padding: 15px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.status-link {
    display: inline-block;
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
    text-decoration: none;
    color: white;
}

select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #667eea;
}

#output {
    flex: 1;
    background-color: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre-wrap;
    overflow-y: auto;
    min-height: 300px;
}

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

.status-container {
    margin-top: 15px;
}

#status {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-running {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.error {
    color: #dc3545;
    font-weight: 600;
}

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

.logo {
    width: 180px;
    height: 150px;
    flex-shrink: 0;
}

.header-text {
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .input-section, .output-section {
        height: 400px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    button, select {
        width: 100%;
    }
}
