/* Phishing Simulator Styles */
.phishing-test-area {
    max-width: 800px;
    margin: 0 auto;
}

.email-simulation {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    margin: 20px 0;
}

.email-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
}

.email-subject {
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.email-body {
    padding: 20px;
    line-height: 1.6;
    min-height: 200px;
}

.email-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-danger { background: #e74c3c; }
.btn-safe { background: #27ae60; }
.btn-warning { background: #f39c12; }

.btn-danger:hover { background: #c0392b; }
.btn-safe:hover { background: #229954; }
.btn-warning:hover { background: #d68910; }

/* Network Scanner Styles */
.scan-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* Vulnerability Scanner Styles */
.risk-levels {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.risk-item {
    flex: 1;
    padding: 15px;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-weight: bold;
}

.high-risk { background: #e74c3c; }
.medium-risk { background: #f39c12; }
.low-risk { background: #f1c40f; }

.vulnerability-list {
    margin-top: 20px;
}

.vuln-item {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid;
    background: #f8f9fa;
}

.vuln-high { border-left-color: #e74c3c; }
.vuln-medium { border-left-color: #f39c12; }
.vuln-low { border-left-color: #f1c40f; }

/* Password Strength Tester */
.strength-meter {
    margin: 20px 0;
}

.meter-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-weak { background: #e74c3c; width: 25%; }
.strength-fair { background: #f39c12; width: 50%; }
.strength-good { background: #f1c40f; width: 75%; }
.strength-strong { background: #27ae60; width: 100%; }

.strength-label {
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
}

.password-analysis {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.analysis-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.analysis-item.valid { color: #27ae60; }
.analysis-item.invalid { color: #e74c3c; }

.generator-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.generated-password {
    margin-top: 15px;
    padding: 10px;
    background: #34495e;
    color: white;
    border-radius: 5px;
    font-family: monospace;
    text-align: center;
    font-size: 1.2em;
}

/* Security Audit Styles */
.audit-checklist {
    margin: 20px 0;
}

.audit-item {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkmark {
    margin-right: 10px;
}

.audit-results {
    margin-top: 20px;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 8px;
}

.score-breakdown, .improvement-tips {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-actions {
        flex-direction: column;
    }
    
    .risk-levels {
        flex-direction: column;
    }
    
    .generator-controls {
        grid-template-columns: 1fr;
    }
}