* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #09f;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    color: white;
    padding: 20px;
}

header h1 {
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: 700;
}

header p {
    font-size: 0.95em;
    opacity: 0.9;
}

.main-content {
    display: flex;
    gap: 20px;
    padding: 0 20px 20px 20px;
    flex: 1;
    min-height: 0;
}

.test-section {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.test-header h2 {
    font-size: 1.3em;
    color: #1e293b;
}

.test-all-button {
    padding: 10px 25px;
    background: #09f;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-all-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    overflow-y: auto;
    padding-top: 10px;
}

.test-grid::-webkit-scrollbar {
    width: 8px;
}

.test-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.test-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.test-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.threat-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.threat-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.threat-name {
    font-size: 0.9em;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-indicator.pending {
    background: #f1f5f9;
    color: #64748b;
}

.status-indicator.blocked {
    background: #dcfce7;
    color: #16a34a;
}

.status-indicator.allowed {
    background: #fee2e2;
    color: #dc2626;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.status-indicator.pending .status-icon {
    background: #94a3b8;
    animation: pulse 2s infinite;
}

.status-indicator.blocked .status-icon {
    background: #16a34a;
}

.status-indicator.allowed .status-icon {
    background: #dc2626;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.test-button {
    width: 100%;
    padding: 8px;
    background: #09f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-button:hover {
    transform: scale(1.03);
}

.test-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.summary-panel {
    width: 280px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-panel h2 {
    font-size: 1.3em;
    color: #1e293b;
    text-align: center;
    margin-bottom: 10px;
}

.summary-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.summary-value {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.summary-value.blocked {
    color: #16a34a;
}

.summary-value.allowed {
    color: #dc2626;
}

.summary-value.pending {
    color: #94a3b8;
}

.summary-label {
    font-size: 0.9em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: #09f;
    transition: width 0.3s ease;
    width: 0%;
}