/* Software System Architecture Design Component Styles */

.software-system-architecture-interface {
    /* Container styles */
}

.software-system-architecture-interface .form-section {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.software-system-architecture-interface .section-header {
    border-bottom: 2px solid #3F51B5;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.software-system-architecture-interface .section-header h2 {
    color: #3F51B5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.software-system-architecture-interface .section-header h2::before {
    content: "developer_board";
    font-family: "Material Icons";
    font-size: 1.5rem;
}

/* Architecture Type Selection */
.software-system-architecture-interface .field-group[data-field="architectureType"] {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 2px solid #3F51B5;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.software-system-architecture-interface .field-group[data-field="architectureType"] label {
    color: #3F51B5;
    font-weight: 600;
}

/* System Scale and Business Domain */
.software-system-architecture-interface .field-group[data-field="systemScale"],
.software-system-architecture-interface .field-group[data-field="businessDomain"] {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
}

/* Non-functional Requirements Checkboxes */
.software-system-architecture-interface .field-group[data-field="nonFunctionalRequirements"] .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.software-system-architecture-interface .field-group[data-field="nonFunctionalRequirements"] .checkbox-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.software-system-architecture-interface .field-group[data-field="nonFunctionalRequirements"] .checkbox-item:hover {
    border-color: #3F51B5;
    background: #f8f9ff;
}

.software-system-architecture-interface .field-group[data-field="nonFunctionalRequirements"] .checkbox-item input:checked + label {
    color: #3F51B5;
    font-weight: 500;
}

/* Architectural Components */
.software-system-architecture-interface .field-group[data-field="architecturalComponents"] .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.software-system-architecture-interface .field-group[data-field="architecturalComponents"] .checkbox-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.software-system-architecture-interface .field-group[data-field="architecturalComponents"] .checkbox-item:hover {
    border-color: #3F51B5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
}

.software-system-architecture-interface .field-group[data-field="architecturalComponents"] .checkbox-item input:checked + label {
    color: #3F51B5;
    font-weight: 600;
}

.software-system-architecture-interface .field-group[data-field="architecturalComponents"] .checkbox-item input:checked {
    background: #3F51B5;
}

/* Technology Stack Selection */
.software-system-architecture-interface .field-group[data-field="technologyStack"] {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 1rem;
}

.software-system-architecture-interface .field-group[data-field="technologyStack"] label {
    color: #ff9800;
    font-weight: 600;
}

/* Security Level */
.software-system-architecture-interface .field-group[data-field="securityLevel"] {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffe6 100%);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 1rem;
}

.software-system-architecture-interface .field-group[data-field="securityLevel"] label {
    color: #4caf50;
    font-weight: 600;
}

/* Functional Requirements Textarea */
.software-system-architecture-interface .field-group[data-field="functionalRequirements"] {
    background: #fff;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
}

.software-system-architecture-interface .field-group[data-field="functionalRequirements"] label {
    color: #2196f3;
    font-weight: 600;
}

.software-system-architecture-interface .field-group[data-field="functionalRequirements"] textarea {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.software-system-architecture-interface .field-group[data-field="functionalRequirements"] textarea:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Design Patterns */
.software-system-architecture-interface .field-group[data-field="designPatterns"] .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.software-system-architecture-interface .field-group[data-field="designPatterns"] .checkbox-item {
    background: #fff;
    border: 1px solid #9c27b0;
    border-radius: 4px;
    padding: 0.6rem;
    transition: all 0.2s ease;
}

.software-system-architecture-interface .field-group[data-field="designPatterns"] .checkbox-item:hover {
    border-color: #9c27b0;
    background: #faf0ff;
}

.software-system-architecture-interface .field-group[data-field="designPatterns"] .checkbox-item input:checked + label {
    color: #9c27b0;
    font-weight: 500;
}

/* Features/Special Requirements */
.software-system-architecture-interface .field-group[data-field="features"] .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.software-system-architecture-interface .field-group[data-field="features"] .checkbox-item {
    background: #fff;
    border: 1px solid #607d8b;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.software-system-architecture-interface .field-group[data-field="features"] .checkbox-item:hover {
    border-color: #607d8b;
    background: #f0f4f8;
}

.software-system-architecture-interface .field-group[data-field="features"] .checkbox-item input:checked + label {
    color: #607d8b;
    font-weight: 500;
}

/* Result Section Enhancements */
.software-system-architecture-interface .result-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.software-system-architecture-interface .result-content h1,
.software-system-architecture-interface .result-content h2,
.software-system-architecture-interface .result-content h3 {
    color: #3F51B5;
    border-bottom: 2px solid #3F51B5;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.software-system-architecture-interface .result-content h1:first-child,
.software-system-architecture-interface .result-content h2:first-child {
    margin-top: 0;
}

/* Architecture Diagram Styling */
.software-system-architecture-interface .result-content .mermaid {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Code blocks for architecture examples */
.software-system-architecture-interface .result-content pre {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.software-system-architecture-interface .result-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Tables for architectural components */
.software-system-architecture-interface .result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.software-system-architecture-interface .result-content table th {
    background: #3F51B5;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.software-system-architecture-interface .result-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.software-system-architecture-interface .result-content table tr:hover {
    background: #f8f9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .software-system-architecture-interface .field-group[data-field="nonFunctionalRequirements"] .checkbox-group,
    .software-system-architecture-interface .field-group[data-field="architecturalComponents"] .checkbox-group,
    .software-system-architecture-interface .field-group[data-field="designPatterns"] .checkbox-group,
    .software-system-architecture-interface .field-group[data-field="features"] .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .software-system-architecture-interface .form-section {
        padding: 1rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .software-system-architecture-interface .field-group[data-field="architectureType"] {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .software-system-architecture-interface .field-group[data-field="systemScale"],
    .software-system-architecture-interface .field-group[data-field="businessDomain"] {
        background: #2a2a2a;
    }
    
    .software-system-architecture-interface .result-content table {
        background: #2a2a2a;
    }
    
    .software-system-architecture-interface .result-content table td {
        border-bottom: 1px solid #444;
    }
    
    .software-system-architecture-interface .result-content pre {
        background: #2a2a2a;
        border: 1px solid #444;
    }
    
    .software-system-architecture-interface .result-content code {
        background: #363636;
    }
} 