/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 100vh;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.max-w-5xl {
    max-width: 64rem;
    margin: 0 auto;
}

/* Header */
header {
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to bottom right, #3b82f6, #9333ea);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-ghost {
    color: #4b5563;
    background: transparent;
}

.btn-ghost:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.btn-danger {
    color: #dc2626;
    background: transparent;
}

.btn-danger:hover {
    color: #991b1b;
    background: #fef2f2;
}

.btn-danger-outline {
    color: #dc2626;
    background: white;
    border: 2px solid #dc2626;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.btn-danger-outline:hover {
    color: white;
    background: #dc2626;
    transform: scale(1.02);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #9ca3af;
}

.user-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.user-badge.show {
    display: flex;
}

/* Cards */
.card {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.results-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Radio cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-card:hover {
    border-color: #d1d5db;
}

.radio-card.active-blue {
    border-color: #3b82f6;
    background: #eff6ff;
}

.radio-card.active-purple {
    border-color: #9333ea;
    background: #faf5ff;
}

.radio-card.active-green {
    border-color: #10b981;
    background: #ecfdf5;
}

.radio-card.active-orange {
    border-color: #f97316;
    background: #fff7ed;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    flex: 1;
}

.radio-card-title {
    font-weight: 600;
    color: #1f2937;
}

.radio-card-desc {
    font-size: 0.75rem;
    color: #4b5563;
}

.radio-check {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.radio-check.text-blue {
    color: #3b82f6;
}

.radio-check.text-purple {
    color: #9333ea;
}

.radio-check.text-green {
    color: #10b981;
}

.radio-check.text-orange {
    color: #f97316;
}

/* Auth fields */
.auth-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-header h3 {
    font-weight: 600;
    color: #374151;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

details summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: #9333ea;
    font-weight: 500;
    margin-top: 0.75rem;
}

details summary:hover {
    color: #7c3aed;
}

.details-content {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid #e9d5ff;
}

/* Warning box */
.warning-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.warning-icon {
    color: #f59e0b;
    font-size: 1.25rem;
}

.warning-content {
    flex: 1;
    font-size: 0.875rem;
    color: #92400e;
}

.warning-content p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.warning-content ul {
    list-style: none;
    font-size: 0.75rem;
}

.warning-content li {
    margin-bottom: 0.25rem;
}

/* Progress section */
.progress-section {
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #bfdbfe;
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-banner {
    background: linear-gradient(to right, #eff6ff, #e0e7ff);
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.status-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.status-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

/* Activity Section Styles */
.activity-section {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #075985;
    margin-bottom: 1rem;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: white;
    border: 1px solid #e0f2fe;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0369a1;
}

.current-activity {
    background: white;
    border: 1px solid #e0f2fe;
    border-radius: 0.5rem;
    padding: 1rem;
}

.activity-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.activity-url {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #0369a1;
    word-break: break-all;
    padding: 0.5rem;
    background: #f0f9ff;
    border-radius: 0.25rem;
}

.activity-url-waiting {
    color: #94a3b8;
    font-style: italic;
}

.activity-url-scanning {
    animation: pulse 2s ease-in-out infinite;
}

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

.scan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-card {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-header span:first-child {
    font-size: 1.5rem;
}

.detail-header span:last-child {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    font-size: 0.875rem;
    color: #4b5563;
    font-family: monospace;
}

.info-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-box .info-icon {
    font-size: 1.5rem;
}

.info-content {
    flex: 1;
}

.info-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.info-list {
    list-style: none;
    font-size: 0.875rem;
    color: #b45309;
}

.info-list li {
    margin-bottom: 0.25rem;
}

.patience-msg {
    text-align: center;
    padding: 1rem;
    color: #4b5563;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.patience-msg .font-semibold {
    font-weight: 600;
}

/* URL Log Panel */
.url-log-panel {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.url-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, #f0f9ff, #e0f2fe);
    cursor: pointer;
    font-weight: 600;
    color: #0369a1;
    -webkit-user-select: none;
    user-select: none;
    gap: 1rem;
}

.url-log-header:hover {
    background: linear-gradient(to right, #e0f2fe, #bae6fd);
}

.url-log-header > span:first-of-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.btn-export {
    padding: 0.5rem 1rem;
    background: white;
    color: #0369a1;
    border: 2px solid #0369a1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #0369a1;
    color: white;
    transform: scale(1.05);
}

.url-log-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.url-log-actions {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.url-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-log-empty {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 2rem;
}

.url-log-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.url-log-item:hover {
    border-color: #bae6fd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.url-log-item-status {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.url-log-item-content {
    flex: 1;
    min-width: 0;
}

.url-log-item-url {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1e40af;
    word-break: break-all;
    margin-bottom: 0.25rem;
}

.url-log-item-time {
    font-size: 0.75rem;
    color: #64748b;
}

.url-log-item.status-discovered {
    border-left: 4px solid #94a3b8;
}

.url-log-item.status-scanning {
    border-left: 4px solid #3b82f6;
    animation: pulse 2s ease-in-out infinite;
}

.url-log-item.status-completed {
    border-left: 4px solid #10b981;
}

.url-log-item.status-alerts {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

/* Activity Log */
.activity-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-log-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.activity-log-item:hover {
    border-color: #bae6fd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.activity-time {
    font-family: 'Courier New', monospace;
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
}

.activity-type {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.activity-type-spider {
    background: #dbeafe;
    color: #1e40af;
}

.activity-type-active {
    background: #fef3c7;
    color: #92400e;
}

.activity-type-passive_scan {
    background: #e0e7ff;
    color: #3730a3;
}

.activity-type-scan {
    background: #d1fae5;
    color: #065f46;
}

.activity-action {
    color: #1e293b;
    font-weight: 500;
}

.activity-url-small {
    font-family: 'Courier New', monospace;
    color: #64748b;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Results */
.result-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-url-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.result-url-value {
    font-weight: 600;
    color: #1f2937;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-type-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.result-type-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.auth-badge {
    font-size: 0.75rem;
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Summary cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid;
    transition: opacity 0.2s, transform 0.1s;
}

.summary-card[data-severity-filter] {
    user-select: none;
}

.summary-card[data-severity-filter]:hover {
    transform: scale(1.05);
}

.summary-card-inactive {
    opacity: 0.3;
    filter: grayscale(0.8);
}

.summary-card.high {
    background: linear-gradient(to bottom right, #fef2f2, #fee2e2);
    border-color: #fecaca;
}

.summary-card.medium {
    background: linear-gradient(to bottom right, #fff7ed, #ffedd5);
    border-color: #fed7aa;
}

.summary-card.low {
    background: linear-gradient(to bottom right, #fefce8, #fef3c7);
    border-color: #fde68a;
}

.summary-card.info {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}

.summary-count {
    font-size: 1.875rem;
    font-weight: 700;
}

.summary-count.high {
    color: #dc2626;
}

.summary-count.medium {
    color: #ea580c;
}

.summary-count.low {
    color: #ca8a04;
}

.summary-count.info {
    color: #2563eb;
}

.summary-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.summary-label.high {
    color: #991b1b;
}

.summary-label.medium {
    color: #9a3412;
}

.summary-label.low {
    color: #854d0e;
}

.summary-label.info {
    color: #1e40af;
}

/* Vulnerabilities */
.vuln-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vuln-card {
    border: 1px solid;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.2s;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.vuln-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vuln-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.vuln-title-section {
    flex: 1;
}

.vuln-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.vuln-title {
    font-weight: 600;
    color: #1f2937;
}

.vuln-private {
    font-size: 0.75rem;
    background: #f3e8ff;
    color: #7c3aed;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.vuln-url {
    font-size: 0.75rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.vuln-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
}

.vuln-desc {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.vuln-solution {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.5);
    border-radius: 0.25rem;
    border-left: 2px solid;
    font-size: 0.875rem;
}

.vuln-solution .font-medium {
    font-weight: 500;
}

/* Vulnerability card risk-level styling */
.vuln-card[data-risk="high"] {
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.vuln-card[data-risk="medium"] {
    border-color: #fdba74;
    background-color: #fff7ed;
}

.vuln-card[data-risk="low"] {
    border-color: #fde68a;
    background-color: #fefce8;
}

.vuln-card[data-risk="informational"] {
    border-color: #bfdbfe;
    background-color: #eff6ff;
}

/* Retire.js vulnerability card severity styling */
.vuln-card.vuln-severity-critical {
    border-left: 4px solid #dc2626;
}

.vuln-card.vuln-severity-high {
    border-left: 4px solid #ea580c;
}

.vuln-card.vuln-severity-medium {
    border-left: 4px solid #f59e0b;
}

.vuln-card.vuln-severity-low {
    border-left: 4px solid #3b82f6;
}

.vuln-card .version-text {
    color: #64748b;
    font-weight: normal;
}

/* Vulnerability badge colors */
.vuln-badge-high {
    background-color: #fecaca;
    color: #991b1b;
}

.vuln-badge-medium {
    background-color: #fed7aa;
    color: #9a3412;
}

.vuln-badge-low {
    background-color: #fde68a;
    color: #854d0e;
}

.vuln-badge-informational {
    background-color: #bfdbfe;
    color: #1e40af;
}

/* Vulnerability solution border colors */
.vuln-solution-high {
    border-left-color: #dc2626;
}

.vuln-solution-medium {
    border-left-color: #ea580c;
}

.vuln-solution-low {
    border-left-color: #ca8a04;
}

.vuln-solution-informational {
    border-left-color: #3b82f6;
}

/* Progress bar styling for native element */
progress.progress-bar {
    width: 100%;
    height: 0.5rem;
    border-radius: 9999px;
    background: #e5e7eb;
    border: none;
    overflow: hidden;
}

progress.progress-bar::-webkit-progress-bar {
    background: #e5e7eb;
    border-radius: 9999px;
}

progress.progress-bar::-webkit-progress-value {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    border-radius: 9999px;
    animation: pulse 2s ease-in-out infinite;
}

progress.progress-bar::-moz-progress-bar {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    border-radius: 9999px;
    animation: pulse 2s ease-in-out infinite;
}

/* Error message */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
}

.error-box.show {
    display: flex;
}

.error-icon {
    font-size: 1.25rem;
}

.error-content {
    flex: 1;
}

.error-title {
    font-weight: 600;
}

.error-message {
    font-size: 0.875rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    background: white;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

footer p:last-child {
    margin-top: 0.25rem;
}

/* SSL/TLS Results Section (testssl.sh) */
.testssl-section {
    margin-bottom: 2rem;
}

.testssl-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.testssl-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testssl-summary {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.font-semibold {
    font-weight: 600;
}

/* Progress Section Styles */
.progress-content {
    padding: 2rem;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.progress-details {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Findings Section Title */
.findings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-left: 4px solid #3b82f6;
    border-radius: 0.375rem;
}

/* Meta Item */
.meta-item {
    display: inline-block;
    margin-right: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ======================== */
/* SSL Progress Section     */
/* ======================== */

.progress-container {
    padding: 1.5rem;
}

/* Progress Bar */
.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar-track {
    flex: 1;
    height: 28px;
    background: linear-gradient(to right, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: var(--progress-width, 0%);
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border-radius: 14px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-percentage {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 3.5rem;
    text-align: right;
}

/* Progress Details */
.progress-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.progress-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

#sslProgressText {
    font-size: 0.9375rem;
    color: #1e40af;
    font-weight: 500;
    font-style: italic;
}

.progress-stats {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 640px) {
    .progress-bar-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .progress-percentage {
        text-align: center;
        min-width: auto;
    }

    .progress-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Fade-in animation for findings */
.finding-fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ======================== */
/* Filter Toggle Cards      */
/* ======================== */

.filter-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-toggle:active {
    transform: translateY(0);
}

.filter-toggle.filter-disabled {
    opacity: 0.4;
    filter: grayscale(60%);
}

.filter-toggle.filter-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #6b7280;
    transform: translateY(-50%);
}

/* Filtered Out Findings */
.vuln-card.filtered-out {
    display: none;
}

/* ======================== */
/* Tabs Navigation          */
/* ======================== */

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 0;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

.tab-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.tab-panel {
    display: none;
    padding: 1.5rem;
    background: white;
}

.tab-panel.active {
    display: block;
}

/* ======================== */
/* Toggle Checkboxes        */
/* ======================== */

.radio-card {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.radio-card.active-blue {
    border: 2px solid transparent;
}

.radio-card.active-green {
    border: 2px solid transparent;
}

.radio-card input[type="checkbox"]:checked + .radio-card-content ~ .radio-check {
    opacity: 1;
}

.radio-card input[type="checkbox"]:not(:checked) + .radio-card-content ~ .radio-check {
    opacity: 0;
}

.radio-card input[type="checkbox"]:checked ~ * {
    opacity: 1;
}

.radio-card input[type="checkbox"]:not(:checked) {
    display: none;
}

.radio-card input[type="checkbox"]:not(:checked) ~ .radio-card-content {
    opacity: 0.5;
}

.radio-card input[type="checkbox"]:not(:checked) ~ .radio-check {
    display: none;
}

.radio-card:has(input[type="checkbox"]:not(:checked)) {
    background: #f9fafb;
}

.radio-card:has(input[type="checkbox"]:checked).active-blue {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.radio-card:has(input[type="checkbox"]:checked).active-green {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.text-green {
    color: #10b981;
}

/* Proxy orange theme */
.radio-card.active-orange {
    border-color: #f97316;
    background: transparent;
}

.radio-card:has(input[type="checkbox"]:checked).active-orange {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.text-orange {
    color: #f97316;
}

/* ZAP purple theme */
.radio-card.active-purple {
    border-color: #9333ea;
    background: transparent;
}

.radio-card:has(input[type="checkbox"]:checked).active-purple {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.05);
}

.text-purple {
    color: #9333ea;
}

/* Collapsible sections for ZAP URLs */
.collapsible-section {
    margin-bottom: 1.5rem;
}

.collapsible-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(147, 51, 234, 0.05);
    border: 1px solid #9333ea;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.collapsible-header:hover {
    background: rgba(147, 51, 234, 0.1);
}

.collapsible-icon {
    font-size: 0.875rem;
    color: #9333ea;
    transition: transform 0.2s;
}

.collapsible-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #9333ea;
}

.collapsible-content {
    margin-top: 1rem;
    padding-left: 1rem;
}

/* ZAP Alert sections */
.zap-alert-section {
    margin-bottom: 2rem;
}

.section-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
}

.section-header.high {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border-left: 4px solid #dc2626;
}

.section-header.medium {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.section-header.low {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border-left: 4px solid #eab308;
}

.section-header.informational {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

/* Filter buttons for ZAP alerts */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

.filter-btn-high.active {
    background: #dc2626;
    border-color: #dc2626;
}

.filter-btn-medium.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

.filter-btn-low.active {
    background: #eab308;
    border-color: #eab308;
}

.filter-btn-informational.active {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* Pagination */
.pagination {
    margin-top: 1rem;
}

.pagination-container {
    margin-top: 1rem;
}

.pagination-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ZAP Alerts */
.risk-section {
    margin-bottom: 2rem;
}

.risk-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
}

.risk-header.high {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border-left: 4px solid #dc2626;
}

.risk-header.medium {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.risk-header.low {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border-left: 4px solid #eab308;
}

.risk-header.informational {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.badge-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-confidence {
    background: #6b7280;
    color: white;
}

.vuln-description,
.vuln-solution,
.vuln-evidence {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.02);
}

.vuln-description {
    border-left: 3px solid #3b82f6;
}

.vuln-solution {
    border-left: 3px solid #10b981;
}

.vuln-evidence {
    border-left: 3px solid #f59e0b;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.vuln-evidence code {
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Utility class for muted text */
.text-muted {
    color: #64748b;
    margin-top: 8px;
}

/* Card header with actions */
.card-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ZAP Stop Button */
.zap-stop-btn {
    margin: 0;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* ============================================
   Session Logs Modal
   ============================================ */

.modal-overlay {
    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;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-title-section {
    flex: 1;
    min-width: 200px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-overlay .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

#logsModal .modal-body {
    background: #1e1e1e;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Error Modal Styles */
#errorModal .modal-content {
    background: #fff !important;
    border: 2px solid #dc3545;
}

#errorModal .modal-header {
    background: #dc3545;
    border-bottom: none;
}

#errorModal .modal-header h3 {
    color: #fff;
}

#errorModal .modal-body {
    padding: 2rem;
    background: #fff;
}

#errorModal .modal-body p {
    font-size: 1.05rem;
    color: #1f2937;
    line-height: 1.6;
    word-break: break-word;
}

#errorModal .modal-footer {
    background: #f9fafb;
    justify-content: center;
}

.logs-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Logs List Styles */
.logs-list {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 0.5rem 0;
    min-height: 300px;
    max-height: 60vh;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    padding: 0.25rem 1rem;
    border-bottom: 1px solid #2d2d2d;
}

.log-entry:hover {
    background: #2a2a2a;
}

.log-timestamp {
    color: #6b7280;
    width: 70px;
    flex-shrink: 0;
}

.log-scanner {
    width: 80px;
    flex-shrink: 0;
    font-weight: 600;
    text-transform: uppercase;
}

.log-content {
    flex: 1;
    color: #d4d4d4;
    word-break: break-word;
}

/* Scanner colors */
.log-scanner-ssl { color: #60a5fa; }
.log-scanner-headers { color: #a78bfa; }
.log-scanner-proxy { color: #f472b6; }
.log-scanner-spider { color: #34d399; }
.log-scanner-zap { color: #fbbf24; }
.log-scanner-nuclei { color: #fb923c; }
.log-scanner-retirejs { color: #f87171; }
.log-scanner-wappalyzer { color: #2dd4bf; }

/* Log type colors */
.log-type-scan_start { color: #60a5fa; }
.log-type-scan_complete { color: #34d399; }
.log-type-error { color: #f87171; }
.log-type-progress { color: #a78bfa; }
.log-type-http_request { color: #d4d4d4; }

/* HTTP Request log entries */
.log-request {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.log-method {
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.75rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.1);
}

.log-url {
    flex: 1;
    word-break: break-all;
    color: #93c5fd;
}

.log-status {
    margin-left: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 3px;
}

.log-status.status-success { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.log-status.status-redirect { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.log-status.status-error { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* Legacy HTTP Status code colors */
.log-status-2xx { color: #34d399; }
.log-status-3xx { color: #fbbf24; }
.log-status-4xx { color: #fb923c; }
.log-status-5xx { color: #f87171; }

/* HTTP Method colors */
.log-method {
    font-weight: 600;
    margin-right: 0.5rem;
}

.log-method-GET { color: #60a5fa; }
.log-method-POST { color: #34d399; }
.log-method-PUT { color: #fbbf24; }
.log-method-DELETE { color: #f87171; }
.log-method-HEAD { color: #a78bfa; }
.log-method-OPTIONS { color: #6b7280; }

.log-url {
    color: #93c5fd;
    word-break: break-all;
}

.log-status {
    margin-left: 0.5rem;
    font-weight: 600;
}

.log-size {
    margin-left: 0.5rem;
    color: #6b7280;
}

.log-content-type {
    margin-left: 0.5rem;
    color: #9ca3af;
}

/* Empty state */
.logs-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6b7280;
    font-family: inherit;
}

/* Button small variant */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    width: auto;
}

/* =============================================================================
   Spider Activity Styles
   ============================================================================= */

/* Scan controls container */
.scan-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Stats par phase grid */
.phase-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.phase-stat-card {
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 3px solid var(--primary, #3b82f6);
}

.phase-stat-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.phase-stat-card .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

.phase-stat-card .stat-row span:last-child {
    font-weight: 600;
    color: #1e293b;
}

/* Current URL section */
.current-url-section {
    margin: 1rem 0;
}

.current-url-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.current-action-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.current-action-display .current-url {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475569;
}

/* Phase badges */
.phase-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.phase-badge.spider { background: #ede9fe; color: #7c3aed; }
.phase-badge.ajax_spider { background: #e0f2fe; color: #0284c7; }
.phase-badge.passive_scan { background: #dcfce7; color: #16a34a; }
.phase-badge.active_scan { background: #fee2e2; color: #dc2626; }
.phase-badge.completed { background: #dcfce7; color: #16a34a; }
.phase-badge.idle { background: #f1f5f9; color: #64748b; }

/* Recent actions section */
.recent-actions-section {
    margin: 1rem 0;
}

.recent-actions-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.actions-list {
    max-height: 250px;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
}

.action-item {
    display: grid;
    grid-template-columns: 65px 25px 45px 40px 1fr 50px;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.action-item:last-child {
    border-bottom: none;
}

.action-item-placeholder {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: 0.8rem;
}

.action-time {
    color: var(--text-muted, #64748b);
}

.action-phase {
    text-align: center;
}

.action-method {
    font-weight: 600;
    color: #60a5fa;
}

.action-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475569;
}

.action-size {
    text-align: right;
    color: #64748b;
}

/* Action status badges */
.action-status {
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
}

.status-2xx { background: #dcfce7; color: #16a34a; }
.status-3xx { background: #dbeafe; color: #2563eb; }
.status-4xx { background: #fef3c7; color: #d97706; }
.status-5xx { background: #fee2e2; color: #dc2626; }
.status-unknown { background: #f1f5f9; color: #64748b; }

/* Warning button variant */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    border: 1px solid transparent;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================================================
   Search / Filter
   ============================================================================= */

.search-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-input {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.filter-count {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

/* =============================================================================
   Spider Grid - Excel-like grid with own scroll
   ============================================================================= */

.spider-grid-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spider-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    table-layout: fixed;
}

.spider-grid thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
}

.spider-grid th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #4338ca;
    white-space: nowrap;
}

.spider-grid tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.spider-grid tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.spider-grid tbody tr:hover {
    background-color: #eef2ff;
}

.spider-grid td {
    padding: 5px 10px;
    vertical-align: middle;
    line-height: 1.3;
    border-right: 1px solid #f0f0f0;
}

.spider-grid td:last-child {
    border-right: none;
}

/* Column widths */
.spider-grid .col-url {
    width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spider-grid .col-url a {
    color: #4f46e5;
    text-decoration: none;
}

.spider-grid .col-url a:hover {
    text-decoration: underline;
}

.spider-grid .col-method {
    width: 8%;
    text-align: center;
}

.spider-grid .col-status {
    width: 8%;
    text-align: center;
}

.spider-grid .col-type {
    width: 22%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.75rem;
}

.spider-grid .col-size {
    width: 12%;
    text-align: right;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

/* =============================================================================
   URLs Table - Compact Excel-like table with responsive design
   ============================================================================= */

.urls-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.urls-table thead {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
}

.urls-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #4338ca;
}

.urls-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.urls-table tbody tr:hover {
    background-color: #f9fafb;
}

.urls-table tbody tr:last-child {
    border-bottom: none;
}

.urls-table td {
    padding: 8px 12px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Column-specific styles */
.url-col {
    width: 45%;
    min-width: 250px;
}

.method-col {
    width: 10%;
    min-width: 80px;
}

.status-col {
    width: 10%;
    min-width: 70px;
}

.type-col {
    width: 20%;
    min-width: 120px;
}

.size-col {
    width: 15%;
    min-width: 90px;
    text-align: right;
}

.url-cell a {
    color: #4f46e5;
    text-decoration: none;
    word-break: break-all;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-cell a:hover {
    color: #6366f1;
    text-decoration: underline;
}

.method-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
}

.method-get {
    background: #dbeafe;
    color: #1e40af;
}

.method-post {
    background: #dcfce7;
    color: #166534;
}

.method-put {
    background: #fef3c7;
    color: #92400e;
}

.method-delete {
    background: #fee2e2;
    color: #991b1b;
}

.method-patch {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-redirect {
    background: #fef3c7;
    color: #92400e;
}

.status-client-error {
    background: #fee2e2;
    color: #991b1b;
}

.status-server-error {
    background: #fecaca;
    color: #7f1d1d;
}

.size-cell {
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}

/* Responsive: Switch to card layout on small screens */
@media (max-width: 768px) {
    .urls-table {
        display: block;
        box-shadow: none;
    }

    .urls-table thead {
        display: none;
    }

    .urls-table tbody {
        display: block;
    }

    .urls-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        padding: 12px;
    }

    .urls-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        text-align: left !important;
    }

    .urls-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        flex-shrink: 0;
        min-width: 90px;
    }

    .url-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .url-cell::before {
        margin-bottom: 4px;
    }

    .url-cell a {
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
    }

    .method-cell,
    .status-cell,
    .type-cell,
    .size-cell {
        align-items: center;
    }
}

/* Compact mode for very small screens */
@media (max-width: 480px) {
    .urls-table {
        font-size: 0.8125rem;
    }

    .urls-table tr {
        padding: 10px;
    }

    .urls-table td {
        padding: 6px 0;
    }

    .urls-table td::before {
        font-size: 0.75rem;
        min-width: 70px;
    }

    .method-badge,
    .status-badge {
        font-size: 0.6875rem;
        padding: 2px 6px;
        min-width: 45px;
    }
}

/* ============================================================================
   V2 Interface Layout - Two Column Design
   ============================================================================ */

/* Form Grid (2 columns) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.column-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="url"],
.form-group input[type="text"] {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.option-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    transition: all 0.2s;
}

.option-card:hover {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-header input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.option-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
}

.option-icon {
    font-size: 1.25rem;
}

.option-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.option-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    margin-left: 2.625rem;
    line-height: 1.4;
}

/* Config Recap */
.config-recap {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(to right, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
}

.recap-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.recap-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.recap-item {
    font-size: 0.875rem;
    color: #374151;
}

.recap-item strong {
    color: #1f2937;
}

.recap-item code {
    background: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Card styles */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Progress Card */
.progress-card {
    border-left: 4px solid #3b82f6;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-weight: 600;
    color: #1f2937;
}

.progress-phase {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.progress-bar-container {
    width: 100%;
    height: 1.5rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    transition: width 0.3s ease;
}

.progress-bar-ssl {
    background: linear-gradient(to right, #10b981, #059669);
}

.progress-bar-nuclei {
    background: linear-gradient(to right, #f97316, #dc2626);
}

.progress-bar-retirejs {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
}

.progress-bar-wappalyzer {
    background: linear-gradient(to right, #14b8a6, #3b82f6);
}

.nuclei-url-display {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.progress-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.current-url {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #4b5563;
    word-break: break-all;
}

/* Results Card */
.results-card {
    border-left: 4px solid #10b981;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #1f2937;
    background: #f9fafb;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Result Display */
.result-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.result-info {
    font-size: 0.875rem;
}

.result-info strong {
    color: #6b7280;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.result-summary .summary-card {
    flex: 1 1 0;
    min-width: 100px;
    text-align: center;
}

.findings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
    background: white;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* ============================================================================
   Scanners Grid - Two Column Layout (Left: Scanner List, Right: Options)
   ============================================================================ */

.scanners-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

/* Left Column: Scanner List */
.scanners-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.scanners-list-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scanner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.scanner-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.scanner-item input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    flex-shrink: 0;
}

.scanner-item input[type="checkbox"]:checked {
    accent-color: #3b82f6;
}

.scanner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.scanner-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
    flex: 1;
}

/* Right Column: Scanner Options/Description */
.scanners-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scanners-options-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-panel {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 3px solid #3b82f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.option-panel[data-scanner="headers"] {
    border-left-color: #10b981;
}

.option-panel[data-scanner="proxy"] {
    border-left-color: #f59e0b;
}

.option-panel[data-scanner="spider"] {
    border-left-color: #8b5cf6;
}

.option-panel h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-panel h4 span {
    font-size: 1rem;
}

.option-panel p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scanners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recap-content {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    .button-group .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

/* ============================================================================
   Scanners Config Grid - Two Column Layout (New Interface v2)
   ============================================================================ */

.scanners-config-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

/* Left Column: Scanner Selection */
.scanner-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.scanner-checkbox,
.scanner-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.scanner-checkbox:hover,
.scanner-radio:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.scanner-checkbox input[type="checkbox"],
.scanner-radio input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #3b82f6;
}

.scanner-checkbox .scanner-icon,
.scanner-radio .scanner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.scanner-checkbox .scanner-label,
.scanner-radio .scanner-label {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

/* Spider Selection Group */
.spider-selection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.spider-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Right Column: Scanner Options */
.scanner-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.options-panel {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 3px solid #3b82f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: opacity 0.2s;
}

.options-panel#sslOptions {
    border-left-color: #10b981;
}

.options-panel#headersOptions {
    border-left-color: #6366f1;
}

.options-panel#proxyOptions {
    border-left-color: #f59e0b;
}

.options-panel#nucleiOptions {
    border-left-color: #ef4444;
}

.options-panel#spiderOptions {
    border-left-color: #8b5cf6;
}

.options-panel.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.options-panel h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.options-panel h4 span {
    font-size: 1rem;
}

.options-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.options-note {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

/* Spider Options Form */
.option-row {
    display: grid;
    grid-template-columns: 140px 80px 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.option-row:last-child {
    margin-bottom: 0;
}

.option-row label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.option-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
}

.option-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-hint {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================================================
   Scan Summary Panel (Above Start Button)
   ============================================================================ */

.scan-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
}

.summary-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 1rem 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.summary-section h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.375rem 0;
}

.summary-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    word-break: break-all;
}

/* Responsive for Summary */
@media (max-width: 900px) {
    .scanners-config-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .option-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Progress bar initial state (CSP-compliant - no inline styles) */
.progress-bar.progress-0 {
    width: 0%;
}

/* ============================================================================
   CVE Enrichment - Severity Badges & Expandable Lists
   ============================================================================ */

/* Summary cards for CVE severity overview */
.summary-card-critical {
    border-left: 4px solid #dc2626 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%) !important;
}

.summary-card-high {
    border-left: 4px solid #f97316 !important;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%) !important;
}

.summary-card-medium {
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%) !important;
}

.summary-card-low {
    border-left: 4px solid #6b7280 !important;
    background: linear-gradient(135deg, #f9fafb 0%, #fff 100%) !important;
}

/* Badge container (per technology) */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

/* CVE severity badges */
.badge-critical {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge-high {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.badge-medium {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-green {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

/* CVE toggle button */
.cve-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.625rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s;
}

.cve-toggle:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* CVE list (expandable) */
.cve-list {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cve-list.hidden {
    display: none;
}

/* Individual CVE item */
.cve-item {
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* CVE ID link */
.cve-id {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.cve-id:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* CVSS score */
.cve-score {
    display: inline-flex;
    align-items: center;
    padding: 0.0625rem 0.375rem;
    background: #1f2937;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Source tag (NVD, OSV, GitHub) */
.cve-source {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* Fixed version indicator */
.cve-fix {
    display: inline-flex;
    align-items: center;
    padding: 0.0625rem 0.375rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-left: 0.375rem;
}

/* CVE description text */
.cve-desc {
    margin: 0.375rem 0 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================================================
   Onboarding Styles
   ============================================================================= */

.onboarding-intro {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.onboarding-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.onboarding-tab {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-tab:hover {
    color: #1f2937;
    background: #f9fafb;
}

.onboarding-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.onboarding-panel {
    padding: 1rem 0;
}

.panel-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pending-content,
.inactive-content {
    text-align: center;
    padding: 2rem 1rem;
}

.pending-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pending-content p,
.inactive-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pending-org {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.pending-org strong {
    color: #374151;
}

.pending-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* =============================================================================
   Profile & Organization Styles
   ============================================================================= */

.profile-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.profile-tab {
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.profile-tab:hover {
    color: #1f2937;
}

.profile-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.profile-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
    min-width: 100px;
    font-size: 0.875rem;
}

.info-value {
    color: #1f2937;
    font-size: 0.875rem;
}

.org-id {
    font-family: monospace;
    font-size: 0.8rem;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    user-select: all;
}

.inline-edit {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-input-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    width: auto;
}

.role-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.role-badge-sm {
    padding: 0.0625rem 0.375rem;
    font-size: 0.7rem;
}

.role-staff {
    background: #fef3c7;
    color: #92400e;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background: #ef4444;
    color: white;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Members list */
.member-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.member-row:last-child {
    border-bottom: none;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-email {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.member-name {
    font-size: 0.8rem;
    color: #6b7280;
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.member-actions {
    display: flex;
    gap: 0.25rem;
}

.status-active {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-inactive {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Domains list */
.domain-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.domain-row:last-child {
    border-bottom: none;
}

.domain-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.domain-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.domain-type {
    font-size: 0.75rem;
    color: #6b7280;
}

.domain-note {
    flex: 1;
    font-size: 0.8rem;
    color: #9ca3af;
}

.domain-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
    cursor: pointer;
}

.domain-confirm input[type="checkbox"] {
    margin-top: 0.2rem;
}

.add-domain-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.add-domain-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.roles-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* Join requests */
.request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.request-row:last-child {
    border-bottom: none;
}

.request-info {
    flex: 1;
}

.request-email {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.request-name {
    font-size: 0.8rem;
    color: #6b7280;
}

.request-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-accept {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-accept:hover {
    background: #d1fae5;
}

.btn-reject {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-reject:hover {
    background: #fee2e2;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    width: auto;
}

/* =============================================================================
   Staff Backoffice Styles
   ============================================================================= */

.staff-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 0.7fr 0.7fr 0.8fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.8rem;
    color: #6b7280;
}

.staff-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 0.7fr 0.7fr 0.8fr;
    gap: 0.5rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

.staff-table-row:hover {
    background: #f9fafb;
}

.staff-table-cell {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-user-email {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.85rem;
}

.staff-user-name {
    font-size: 0.75rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-scan-row {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
}

.staff-scan-url {
    flex: 1;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-scan-status {
    color: #6b7280;
    min-width: 80px;
}

.staff-scan-date {
    color: #9ca3af;
    min-width: 80px;
    text-align: right;
}
