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

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #4a5568;
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #718096;
}

/* Form Overlay */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

.form-wrapper {
    height: 450px;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.form-overlay.hidden {
    display: none;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: #718096;
    font-size: 0.875rem;
}

.button-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-controls {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.primary-button {
    display: block;
    flex: 1;
    padding: 0.75rem;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-button:hover {
    background-color: #3182ce;
}

.primary-button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.secondary-button {
    padding: 0.5rem 1rem;
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-button:hover {
    background-color: #cbd5e0;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
}

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e0;  /* idle color */
}

.status-light.active {
    background-color: #68d391;  /* active color */
    box-shadow: 0 0 8px #68d391;
    animation: pulse 1.5s infinite;
}

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

/* Sections */
.setup-section, .config-section, .results-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-container {
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #4299e1;
    border-radius: 10px;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 20px;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Evolution Display */
.evolution-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.evolution-item {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evolution-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.evolution-label {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Error Handling */
.error-container {
    background-color: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .evolution-container {
        gap: 0.5rem;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .status-indicator {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .form-wrapper {
        height: 500px;
    }
} 