/* Engine Editor Styles */

.editor-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.editor-section h2 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.target-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8fafc;
}

.target-card h3 {
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 15px;
}

.asset-card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    margin-left: 20px;
    background: white;
}

.asset-card h4 {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 10px;
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-remove:hover {
    background: #dc2626;
}

.empty-message {
    color: #64748b;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.upload-area {
    margin-top: 15px;
    padding: 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.save-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.save-confirmation.hidden {
    display: none;
}

.save-confirmation-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.save-confirmation-content h3 {
    color: #10b981;
    margin-bottom: 15px;
}

.save-confirmation-content p {
    color: #64748b;
    margin-bottom: 25px;
}

.save-confirmation-content .btn {
    margin: 0 5px;
}

.module-panel {
    border-left: 4px solid var(--orange);
}

/* Pentest Module Styles */
.finding-card {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #64748b;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.finding-card.severity-critical { border-left-color: #dc2626; background: #fef2f2; }
.finding-card.severity-high { border-left-color: #ea580c; background: #fff7ed; }
.finding-card.severity-medium { border-left-color: #f59e0b; background: #fffbeb; }
.finding-card.severity-low { border-left-color: #10b981; background: #f0fdf4; }

.finding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.critical { background: #dc2626; color: white; }
.severity-badge.high { background: #ea580c; color: white; }
.severity-badge.medium { background: #f59e0b; color: white; }
.severity-badge.low { background: #10b981; color: white; }

/* Wizard Styles */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wizard-step {
    min-height: 400px;
}

.wizard-step.hidden {
    display: none;
}

.wizard-step h2 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 10px;
}

.step-description {
    color: #64748b;
    margin-bottom: 30px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.type-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.type-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.type-card.selected {
    border-color: var(--orange);
    background: #fff7ed;
}

.type-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.type-card h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 10px;
}

.type-card p {
    font-size: 14px;
    color: #64748b;
}

.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--orange);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.module-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.module-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.module-card input[type="checkbox"] {
    display: none;
}

.module-card label {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    gap: 20px;
}

.module-card input:checked + label {
    background: #fff7ed;
    border-color: var(--orange);
}

.module-card:has(input:checked) {
    border-color: var(--orange);
}

.module-icon {
    font-size: 36px;
}

.module-info h3 {
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 5px;
}

.module-info p {
    font-size: 14px;
    color: #64748b;
}

.summary-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.summary-box h4 {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-box p {
    margin-bottom: 8px;
    color: #64748b;
}

.summary-box strong {
    color: var(--navy);
}

.wizard-actions {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Context Section (Batch 2) */
.context-section {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.section-help {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}
