/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

header {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.anycoder-link {
    color: #ffdd40;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.anycoder-link:hover {
    text-decoration: underline;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.controls {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-selector, .device-toggle {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4f46e5;
}

select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-section {
    margin-top: 1.5rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
    margin-bottom: 1rem;
    font-family: inherit;
}

button {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

button:active {
    transform: translateY(0);
}

.output-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.output-section h3 {
    color: #4f46e5;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.output-container {
    min-height: 200px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    overflow-wrap: break-word;
}

.placeholder {
    color: #9ca3af;
    font-style: italic;
}

.loading {
    color: #4f46e5;
    font-weight: 600;
    text-align: center;
    padding: 2rem 0;
}

.error {
    color: #ef4444;
    font-weight: 600;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 4px solid #ef4444;
}

.output-container h4 {
    color: #4f46e5;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.output-container ul {
    list-style: none;
    padding-left: 0;
}

.output-container li {
    background: #f3f4f6;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #4f46e5;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .container {
        gap: 1rem;
    }
    
    .controls, .output-section {
        padding: 1rem;
    }
}