.security-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 10px;
}
.level-critical {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}
.level-high {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ef6c00;
}
.level-medium {
    background: #fff8e1;
    color: #f9a825;
    border: 1px solid #f9a825;
}
.level-low {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}
.vulnerability-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}
.vulnerability-unsafe {
    border-left: 5px solid #f44336;
    background: #ffebee;
}
.vulnerability-safe {
    border-left: 5px solid #4CAF50;
    background: #e8f5e9;
}
.threat-model {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.threat-item {
    padding: 20px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e0e0e0;
}
.security-checklist {
    counter-reset: checklist;
    margin: 30px 0;
}
.checklist-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    padding-top: 5px;
    min-height: 40px;
}
.checklist-item:before {
    counter-increment: checklist;
    content: counter(checklist);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.security-demo {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
}
.attack-flow {
    text-align: center;
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
    margin: 30px 0;
}
.flow-step {
    display: inline-block;
    padding: 15px 25px;
    margin: 10px;
    border: 2px solid #2196f3;
    border-radius: 8px;
    background: white;
    position: relative;
}
.flow-arrow {
    display: inline-block;
    margin: 0 10px;
    font-size: 24px;
    color: #2196f3;
}
.security-tool {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}
.csp-directive {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    margin: 10px 0;
    overflow-x: auto;
}
.compliance-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
}
