/* Design Page Specific Styles */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 100px; /* Add space below navigation */
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.parameter-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.parameter-section h3 {
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.form-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.2;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.constraint-section {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    padding: 1rem;
    border-radius: 4px;
}

.constraint-section h3 {
    color: #27ae60;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.constraint-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.generate-section {
    text-align: center;
    margin: 2rem 0;
}

.generate-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.generate-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-section {
    display: none;
    margin-top: 2rem;
}

.results-summary {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-summary h2 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.category-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.category-title {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.category-count {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.configuration-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: #fafafa;
    transition: all 0.3s ease;
    min-height: 300px;
}

.configuration-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.config-info {
    flex: 0 0 200px;
    min-width: 200px;
}

.config-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.config-details {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.config-segments {
    font-family: monospace;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #2c3e50;
    word-break: break-all;
    line-height: 1.2;
}

.unity-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 100px;
    min-width: 100px;
}

.unity-value {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.unity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.unity-badge.above {
    background: #ffebee;
    color: #c62828;
}

.unity-badge.below {
    background: #e8f5e8;
    color: #2e7d32;
}

.unity-badge.exact {
    background: #fff3e0;
    color: #ef6c00;
}

.visualization-section {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    height: 250px;
}

.config-3d-container {
    width: 250px;
    height: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    position: relative;
    flex-shrink: 0;
}

.config-3d-canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.unity-plots-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.unity-plot-container {
    width: 50%;
    height: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    position: relative;
}

.unity-plot-canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #ffcdd2;
}

.no-results {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .form-grid-7 {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .form-grid-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .form-grid-7 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .form-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .constraint-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .visualization-section {
        min-width: 300px;
    }
}

@media (max-width: 900px) {
    .form-grid-7 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .constraint-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .configuration-row {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }
    
    .config-info {
        flex: none;
        min-width: auto;
    }
    
    .unity-info {
        flex: none;
        min-width: auto;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .visualization-section {
        min-width: 100%;
        flex-direction: column;
        height: auto;
    }
    
    .config-3d-container {
        width: 100%;
        height: 200px;
    }
    
    .unity-plots-container {
        flex-direction: row;
        height: 150px;
    }
    
    .unity-plot-container {
        height: 150px;
    }
}

@media (max-width: 600px) {
    .form-grid-7 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .constraint-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .unity-plots-container {
        flex-direction: column;
        height: auto;
    }
    
    .unity-plot-container {
        width: 100%;
        height: 100px;
    }
} 
