/* Base styles */ :root { --primary-color: #3498db; --secondary-color: #2980b9; --accent-color: #f39c12; --success-color: #2ecc71; --warning-color: #f1c40f; --danger-color: #e74c3c; --info-color: #3498db; --light-color: #f8f9fa; --dark-color: #343a40; --gray-color: #6c757d; --border-color: #dee2e6; --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-family); line-height: 1.6; color: var(--dark-color); background-color: #f4f7fa; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } h1, h2, h3 { margin-bottom: 1rem; color: var(--dark-color); } /* Header styles */ header { text-align: center; margin-bottom: 2rem; padding: 1.5rem; background-color: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } header h1 { color: var(--primary-color); margin-bottom: 0.5rem; } header p { color: var(--gray-color); } /* Main content sections */ main { display: block; width: 100%; } .main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } .documents-section { grid-column: 1 / -1; /* Span all columns */ } section { background-color: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } section h2 { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } /* Upload area styles */ .upload-container { margin-bottom: 1.5rem; } .upload-area { border: 2px dashed var(--primary-color); border-radius: 8px; padding: 3rem 1.5rem; text-align: center; transition: background-color 0.3s ease; } .upload-area:hover { background-color: rgba(52, 152, 219, 0.05); } .upload-area i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; } .upload-area p { margin-bottom: 0.5rem; color: var(--gray-color); } .file-info { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; } .file-details { display: flex; align-items: center; margin-bottom: 1rem; } .file-icon { font-size: 2rem; color: var(--primary-color); margin-right: 1rem; } .file-name { font-weight: bold; margin-bottom: 0.25rem; } .file-size { color: var(--gray-color); font-size: 0.9rem; } /* Buttons */ .button { display: inline-block; padding: 0.5rem 1rem; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: background-color 0.3s ease; text-decoration: none; } .button:hover { background-color: var(--secondary-color); } .upload-button { background-color: var(--success-color); } .upload-button:hover { background-color: #27ae60; } .cancel-button { background-color: var(--gray-color); margin-left: 0.5rem; } .cancel-button:hover { background-color: #5a6268; } /* Documents list */ .documents-list { list-style: none; } .document-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid var(--border-color); border-radius: 4px; margin-bottom: 0.5rem; transition: background-color 0.3s ease; } .document-item:hover { background-color: #f8f9fa; } .document-info { display: flex; align-items: center; } .document-icon { font-size: 1.5rem; color: var(--primary-color); margin-right: 1rem; } .document-name { font-weight: bold; margin-bottom: 0.25rem; } .document-date { color: var(--gray-color); font-size: 0.9rem; } .document-actions { display: flex; gap: 0.5rem; } .action-button { font-size: 1rem; padding: 0.25rem 0.5rem; } .view-button { background-color: var(--info-color); } .view-button:hover { background-color: #2980b9; } .resubmit-button { background-color: var(--warning-color); color: var(--dark-color); } .resubmit-button:hover { background-color: #f39c12; } /* Report section */ .report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .report-container { border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; } /* Summary section in report */ .summary { background-color: #e9f7ef; padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; border-left: 4px solid var(--success-color); } .applied-standards { margin-top: 1rem; padding: 0.75rem 1rem; background-color: #f8f9fa; border-radius: 5px; border-left: 3px solid var(--info-color); } .applied-standards h4 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1rem; color: #495057; } .standards-list { margin: 0 0 0 1.5rem; padding: 0; } .standards-list li { margin-bottom: 0.25rem; } /* Issues section in report */ .issues-container { margin-top: 1.5rem; } .issue { margin-bottom: 1rem; padding: 1rem; border-radius: 8px; background-color: #f8f9fa; border-left: 4px solid var(--gray-color); } .issue.critical { background-color: #fdedec; border-left-color: var(--danger-color); } .issue.major { background-color: #fef9e7; border-left-color: var(--warning-color); } .issue.minor { background-color: #eafaf1; border-left-color: var(--success-color); } .issue.info { background-color: #ebf5fb; border-left-color: var(--info-color); } .issue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .issue-section { font-weight: bold; } .badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; color: white; } .badge.critical { background-color: var(--danger-color); } .badge.major { background-color: var(--warning-color); color: var(--dark-color); } .badge.minor { background-color: var(--success-color); } .badge.info { background-color: var(--info-color); } .issue-description { margin-bottom: 0.5rem; } .issue-recommendation { background-color: #f8f9fa; padding: 0.75rem; border-radius: 4px; font-style: italic; } /* Loading overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; } .loading-spinner { width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } .loading-overlay p { color: white; font-size: 1.2rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Stats display */ .stats-container { display: flex; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; } .stat-box { flex: 1; min-width: 100px; background-color: #f8f9fa; padding: 1rem; border-radius: 8px; text-align: center; } .stat-value { font-size: 1.5rem; font-weight: bold; margin-bottom: 0.25rem; } .stat-label { color: var(--gray-color); font-size: 0.9rem; } /* Score display */ .score-container { display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; } .score-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; font-weight: bold; color: white; background-color: var(--success-color); margin-right: 1rem; } .score-label { font-size: 1.2rem; font-weight: bold; } /* Footer */ footer { text-align: center; margin-top: 2rem; padding: 1rem; color: var(--gray-color); font-size: 0.9rem; } /* Standards section */ .standards-section { background-color: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } .standards-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .standards-header p { color: var(--gray-color); margin: 0; } .standards-upload { margin-bottom: 1.5rem; border: 1px dashed var(--border-color); border-radius: 8px; padding: 1rem; } .standards-list-container { max-height: 300px; overflow-y: auto; } .standards-list { list-style: none; } .standard-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border-color); } .standard-info { display: flex; align-items: center; } .standard-icon { font-size: 1.5rem; color: var(--primary-color); margin-right: 1rem; } .standard-name { font-weight: bold; margin-bottom: 0.25rem; } .standard-description { color: var(--gray-color); font-size: 0.9rem; } .standard-requirements { color: var(--gray-color); font-size: 0.9rem; margin-top: 0.25rem; } .standard-actions { display: flex; gap: 0.5rem; } .no-standards { color: var(--gray-color); text-align: center; padding: 2rem 0; } /* Modal styles */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1001; } .modal-content { background-color: white; border-radius: 8px; width: 80%; max-width: 800px; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); } .modal-header h2 { margin: 0; } .close-button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-color); } .modal-body { padding: 1.5rem; } .standard-detail-header { margin-bottom: 1.5rem; } .standard-detail-header h3 { margin-bottom: 0.5rem; } .standard-requirements-list { margin-top: 1.5rem; } .standard-requirements-list h4 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } .requirement-item { margin-bottom: 1rem; padding: 1rem; border-radius: 4px; background-color: #f8f9fa; } .requirement-item.critical { border-left: 4px solid var(--danger-color); } .requirement-item.major { border-left: 4px solid var(--warning-color); } .requirement-item.minor { border-left: 4px solid var(--success-color); } .requirement-item.info { border-left: 4px solid var(--info-color); } .requirement-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .requirement-id { font-weight: bold; color: var(--gray-color); } .requirement-description { margin-bottom: 0.5rem; } .requirement-details { font-size: 0.9rem; color: var(--gray-color); padding: 0.5rem; background-color: #f1f1f1; border-radius: 4px; } /* Responsive design */ @media (max-width: 992px) { .main-grid { grid-template-columns: 1fr; } .modal-content { width: 95%; max-height: 90vh; } } @media (max-width: 768px) { .document-item { flex-direction: column; align-items: flex-start; } .document-actions { margin-top: 1rem; align-self: flex-end; } .stats-container { flex-direction: column; } .stat-box { margin-bottom: 0.5rem; } .standard-item { flex-direction: column; align-items: flex-start; } .standard-actions { margin-top: 1rem; align-self: flex-end; } }