* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --border: #e5e7eb;
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-box { padding: 60px 50px; }

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.login-header h1 { font-size: 28px; margin-bottom: 10px; color: var(--dark); }
.login-header p { color: var(--gray); font-size: 14px; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error { background: #fee; color: var(--danger); border: 1px solid #fcc; }
.alert-success { background: #d1fae5; color: var(--success); border: 1px solid #a7f3d0; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}
.form-group label i { margin-right: 8px; color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }
.required { color: var(--danger); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; cursor: pointer; }

.forgot-password { color: var(--primary); text-decoration: none; font-weight: 500; }
.forgot-password:hover { text-decoration: underline; }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); }
.btn-secondary { background: var(--light); color: var(--dark); }
.btn-secondary:hover { background: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.login-footer { text-align: center; margin-top: 30px; font-size: 14px; color: var(--gray); }
.login-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

.login-info {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-info h2 { font-size: 32px; margin-bottom: 16px; }
.login-info p { font-size: 16px; opacity: 0.9; margin-bottom: 40px; }

.features { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.feature-item i {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Layout */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.sidebar-header .logo i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
}

.sidebar-nav { flex: 1; padding: 20px 0; overflow-y: auto; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-item:hover { background: var(--light); color: var(--primary); }
.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.nav-item i { font-size: 18px; width: 20px; }
.sidebar-footer { padding: 20px 0; border-top: 1px solid var(--border); }

.main-content { margin-left: var(--sidebar-width); min-height: 100vh; }

.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.search-box { flex: 1; max-width: 400px; position: relative; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.search-box input {
    width: 100%;
    padding: 10px 16px 10px 45px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--primary); }

.topbar-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    border-radius: 10px;
    cursor: pointer;
    color: var(--dark);
    font-size: 18px;
    transition: all 0.3s;
}

.icon-btn:hover { background: var(--border); }
.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s;
}

.user-menu:hover { background: var(--light); }
.user-menu img { width: 40px; height: 40px; border-radius: 10px; }
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.user-role { font-size: 12px; color: var(--gray); }

.content { padding: 30px; }
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 28px; margin-bottom: 8px; }
.page-header p { color: var(--gray); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.stat-content { flex: 1; }
.stat-content h3 { font-size: 24px; margin-bottom: 4px; }
.stat-content p { color: var(--gray); font-size: 14px; }

.stat-trend { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.stat-trend.up { background: #d1fae5; color: var(--success); }
.stat-trend.down { background: #fee2e2; color: var(--danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 { font-size: 18px; }
.view-all { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.view-all:hover { text-decoration: underline; }

.select-period {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.card-body { padding: 24px; }

.chart-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 8px;
    color: var(--gray);
}

.chart-placeholder i { font-size: 48px; margin-bottom: 12px; }

.activity-list { display: flex; flex-direction: column; gap: 16px; }
.activity-item { display: flex; gap: 12px; }
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.blue { background: var(--info); }
.activity-icon.green { background: var(--success); }
.activity-icon.orange { background: var(--warning); }

.activity-content p { font-size: 14px; margin-bottom: 4px; }
.activity-content span { font-size: 12px; color: var(--gray); }

.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table thead { background: var(--light); }
.table th { padding: 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--gray); }
.table td { padding: 12px; border-top: 1px solid var(--border); font-size: 14px; }

.badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d1fae5; color: var(--success); }
.badge-warning { background: #fef3c7; color: var(--warning); }
.badge-info { background: #dbeafe; color: var(--info); }

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light);
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
    transition: all 0.3s;
    margin-right: 4px;
}

.btn-icon:hover { background: var(--primary); color: white; }
.btn-icon.btn-danger:hover { background: var(--danger); color: white; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex !important;
}

/* Fallback for browsers that don't support flexbox */
.modal.show .modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 { font-size: 20px; margin: 0; }

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray);
    font-size: 18px;
    transition: all 0.3s;
}

.modal-close:hover { background: var(--danger); color: white; }
.modal-content form { padding: 24px; }

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.notification.show { transform: translateX(0); }
.notification-success { border-left: 4px solid var(--success); }
.notification-success i { color: var(--success); font-size: 20px; }
.notification-error { border-left: 4px solid var(--danger); }
.notification-error i { color: var(--danger); font-size: 20px; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

.link-url {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-url:hover { text-decoration: underline; }

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .login-container { grid-template-columns: 1fr; }
    .login-info { display: none; }
    .login-box { padding: 40px 30px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .search-box { display: none; }
    .user-info { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .content { padding: 20px; }
    .topbar { padding: 0 20px; }
    .modal-content { width: 95%; max-height: 95vh; }
    .modal-header, .modal-content form { padding: 20px; }
    .modal-footer { flex-direction: column; }
    .modal-footer .btn { width: 100%; }
    .link-url { max-width: 120px; }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 22px; }
    .stat-card { padding: 16px; }
    .stat-icon { width: 50px; height: 50px; font-size: 20px; }
    .card-header, .card-body { padding: 16px; }
}


/* Protection Page Styles */
.action-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.scan-status {
    margin-left: auto;
    color: var(--primary);
    font-weight: 500;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.response-time {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
}

.infected-row {
    background: #fef2f2 !important;
}

.infected-row:hover {
    background: #fee2e2 !important;
}

.keyword-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: var(--danger);
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
}

.keyword-more {
    display: inline-block;
    padding: 2px 8px;
    background: var(--light);
    color: var(--gray);
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
}

.keyword-tag-lg {
    display: inline-block;
    padding: 4px 12px;
    background: #fee2e2;
    color: var(--danger);
    border-radius: 6px;
    font-size: 13px;
    margin: 4px;
}

.modal-lg {
    max-width: 800px;
}

.modal-body {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.detail-item label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.detail-item p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.detail-item a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.detail-item a:hover {
    text-decoration: underline;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert p {
    margin: 0;
    font-size: 14px;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.detected-keywords-section {
    margin-top: 20px;
}

.detected-keywords-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scan-status {
        margin-left: 0;
        text-align: center;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}


/* Google Scan Styles */
.scan-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scan-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray);
}

.scan-tab:hover {
    background: var(--light);
    color: var(--primary);
}

.scan-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-google {
    background: #4285f4 !important;
    color: white !important;
}

.btn-google:hover {
    background: #3367d6 !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Badge variations */
.badge-danger {
    background: #fee2e2;
    color: var(--danger);
}

.badge-secondary {
    background: var(--light);
    color: var(--gray);
}

.badge-orange {
    background: #ffedd5;
    color: #c2410c;
}

.badge-critical {
    background: #7f1d1d;
    color: white;
}

.badge-lg {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
}

/* Google Scan Modal */
.modal-xl {
    max-width: 1000px;
}

.google-scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.scan-domain {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scan-domain i {
    font-size: 32px;
    color: var(--primary);
}

.scan-domain h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.scan-domain a {
    color: var(--gray);
    font-size: 13px;
    text-decoration: none;
}

.scan-domain a:hover {
    color: var(--primary);
}

.scan-level {
    text-align: center;
    font-weight: 600;
}

.scan-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.summary-item i {
    font-size: 24px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-item h4 {
    margin: 0;
    font-size: 18px;
}

.summary-item p {
    margin: 0;
    font-size: 12px;
    color: var(--gray);
}

.quick-links {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--light);
    border-radius: 10px;
}

.quick-links h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.link-buttons .btn {
    font-size: 12px;
    padding: 8px 14px;
}

/* Detection Cards */
.detections-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.detection-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.detection-card.high {
    border-left: 4px solid var(--danger);
}

.detection-card.medium {
    border-left: 4px solid var(--warning);
}

.detection-card.low {
    border-left: 4px solid var(--info);
}

.detection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--light);
}

.detection-keyword {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.detection-body {
    padding: 12px 16px;
}

.detection-body p {
    margin: 0 0 8px 0;
    font-size: 13px;
}

.detection-body .btn {
    margin-top: 8px;
}

.detection-samples {
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid var(--border);
}

.detection-samples strong {
    font-size: 12px;
    color: var(--gray);
    display: block;
    margin-bottom: 8px;
}

.detection-samples ul {
    margin: 0;
    padding-left: 20px;
}

.detection-samples li {
    margin-bottom: 8px;
    font-size: 13px;
}

.detection-samples li a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.detection-samples li a:hover {
    text-decoration: underline;
}

.detection-samples .snippet {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.keyword-tag.danger {
    background: #fee2e2;
    color: var(--danger);
}

.keyword-tag.warning {
    background: #fef3c7;
    color: #92400e;
}

.keyword-tag.info {
    background: #dbeafe;
    color: var(--info);
}

.text-success {
    color: var(--success);
    font-size: 12px;
}

.scan-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Responsive for Google Scan */
@media (max-width: 768px) {
    .scan-tabs {
        flex-direction: column;
    }
    
    .google-scan-header {
        flex-direction: column;
        text-align: center;
    }
    
    .scan-domain {
        flex-direction: column;
    }
    
    .scan-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .link-buttons {
        justify-content: center;
    }
    
    .modal-xl {
        max-width: 95%;
    }
}


/* Google Check List Styles */
.google-check-list {
    margin-top: 20px;
}

.google-check-list h4 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    flex-wrap: wrap;
    gap: 10px;
    transition: all 0.3s;
}

.google-check-item:hover {
    border-color: var(--primary);
}

.google-check-item.infected {
    background: #fef2f2;
    border-color: var(--danger);
}

.google-check-item.clean {
    background: #f0fdf4;
    border-color: var(--success);
}

.check-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.check-keyword {
    font-weight: 600;
    color: var(--dark);
}

.check-category {
    font-size: 12px;
    color: var(--gray);
}

.check-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.check-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.check-actions .btn.checked {
    background: var(--gray);
    opacity: 0.7;
}

.check-status {
    min-width: 120px;
    text-align: right;
}

.status-pending {
    color: var(--gray);
    font-size: 13px;
}

.status-infected {
    color: var(--danger);
    font-weight: 600;
    font-size: 13px;
}

.status-clean {
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
}

.scan-progress {
    background: var(--light);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

.scan-summary {
    margin-top: 20px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    text-align: center;
}

.scan-summary h4 {
    margin-bottom: 16px;
}

.result-badge {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.text-info {
    color: var(--info);
    font-size: 12px;
}

@media (max-width: 768px) {
    .google-check-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .check-status {
        text-align: left;
        width: 100%;
    }
    
    .check-actions {
        width: 100%;
    }
    
    .check-actions .btn {
        flex: 1;
    }
}


/* Google Button Styles */
.btn-icon.btn-google {
    background: #4285f4 !important;
    color: white !important;
    border: none;
}

.btn-icon.btn-google:hover {
    background: #3367d6 !important;
    color: white !important;
    transform: scale(1.1);
}

.btn-icon.btn-google i {
    color: white !important;
}

/* Ensure action buttons are clickable */
.action-cell {
    white-space: nowrap;
}

.action-cell .btn-icon {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Fix table button visibility */
.table td .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Analysis Result Styles - Like syntax.co.id */
.analysis-header {
    margin-bottom: 24px;
}

.url-display label {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.url-box {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    word-break: break-all;
}

.analysis-result {
    margin-bottom: 24px;
}

.analysis-result h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.status-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 20px;
}

.status-box i {
    font-size: 20px;
}

.status-box.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-box.status-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-box.status-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-box.status-critical {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid #991b1b;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--light);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.stat-value.text-danger {
    color: var(--danger);
}

.stat-value.text-success {
    color: var(--success);
}

/* Detection Items - Like syntax.co.id */
.detections-section {
    margin-top: 24px;
}

.detections-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.detection-category {
    margin-bottom: 20px;
}

.detection-category h5 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.detection-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.detection-item.high {
    background: #fef2f2;
    border-left-color: var(--danger);
}

.detection-item.medium {
    background: #fffbeb;
    border-left-color: var(--warning);
}

.detection-item.low {
    background: #eff6ff;
    border-left-color: var(--info);
}

.detection-info {
    flex: 1;
}

.detection-info p {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.detection-info p:last-child {
    margin-bottom: 0;
}

.detection-info strong {
    color: var(--dark);
}

.detection-context {
    font-size: 12px !important;
    color: var(--gray);
    background: rgba(0,0,0,0.05);
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px !important;
    word-break: break-word;
}

.detection-item .badge {
    flex-shrink: 0;
    margin-left: 16px;
}

/* Google Links Section */
.google-links-section {
    margin-top: 24px;
}

.google-links-section h4 {
    margin-bottom: 16px;
}

.google-links-list {
    max-height: 400px;
    overflow-y: auto;
}

.google-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.google-link-item:hover {
    background: var(--border);
}

.link-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.link-keyword {
    font-weight: 600;
    color: var(--dark);
}

.link-category {
    font-size: 12px;
    color: var(--gray);
}

/* Badge Critical */
.badge-critical {
    background: #7f1d1d;
    color: #fecaca;
}

/* Keyword tag colors */
.keyword-tag.danger {
    background: #fee2e2;
    color: #991b1b;
}

.keyword-tag.warning {
    background: #fef3c7;
    color: #92400e;
}

.keyword-tag.info {
    background: #dbeafe;
    color: #1e40af;
}

/* Alert with icon */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert h4 {
    margin: 0 0 8px 0;
}

.alert p {
    margin: 0;
}

/* Code tag */
code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
}

@media (max-width: 768px) {
    .detection-item {
        flex-direction: column;
    }
    
    .detection-item .badge {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .google-link-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Protection Page Styles */
.scan-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.scan-tab {
    padding: 12px 24px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-tab:hover {
    background: var(--light);
}

.scan-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.scan-status {
    margin-left: auto;
    color: var(--primary);
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 5px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--light);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.keyword-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 2px;
    color: white;
}

.keyword-tag.danger {
    background: var(--danger);
}

.keyword-tag.warning {
    background: var(--warning);
}

.keyword-tag.info {
    background: var(--info);
}

.keyword-more {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--gray);
}

.infected-row {
    background-color: #fef2f2 !important;
}

.infected-row:hover {
    background-color: #fee2e2 !important;
}

.response-time {
    display: block;
    font-size: 10px;
    color: var(--gray);
    margin-top: 2px;
}

.btn-google {
    color: #4285f4 !important;
}

.btn-google:hover {
    background: #4285f4 !important;
    color: white !important;
}

/* Badge Critical */
.badge-critical {
    background: #7f1d1d;
    color: white;
}

/* Modal Styles for Protection */
.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1000px;
}

.analysis-header {
    margin-bottom: 20px;
}

.url-display label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
    display: block;
}

.url-box {
    background: var(--light);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
}

.analysis-result h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.status-box {
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.status-box i {
    font-size: 24px;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-critical {
    background: #7f1d1d;
    color: white;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.detections-section h3 {
    margin-bottom: 15px;
}

.detection-category {
    margin-bottom: 20px;
}

.detection-category h5 {
    background: var(--light);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.detection-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
}

.detection-item.high,
.detection-item.critical {
    border-left: 4px solid var(--danger);
}

.detection-item.medium {
    border-left: 4px solid var(--warning);
}

.detection-item.low {
    border-left: 4px solid var(--info);
}

.detection-info p {
    margin-bottom: 4px;
    font-size: 13px;
}

.detection-context {
    font-size: 11px !important;
    color: var(--gray);
    background: var(--light);
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    word-break: break-all;
}

/* Google Scan Modal */
.google-scan-header {
    margin-bottom: 20px;
}

.scan-domain {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scan-domain i {
    font-size: 32px;
    color: var(--primary);
}

.scan-domain h3 {
    margin: 0;
}

.scan-domain a {
    font-size: 13px;
    color: var(--gray);
}

.quick-links {
    margin-bottom: 20px;
}

.quick-links h4 {
    margin-bottom: 10px;
}

.link-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    color: var(--dark);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.google-links-section h4 {
    margin-bottom: 15px;
}

.google-links-list {
    max-height: 400px;
    overflow-y: auto;
}

.google-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
}

.link-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-keyword {
    font-weight: 500;
}

.link-category {
    font-size: 12px;
    color: var(--gray);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert h4 {
    margin-bottom: 5px;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* AI Vulnerability Scanner Styles */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.analysis-section {
    margin-bottom: 25px;
}

.analysis-section h4 {
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-analysis-header {
    margin-bottom: 30px;
}

.threat-indicator {
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
    position: relative;
}

.threat-indicator i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.threat-indicator span {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.threat-score {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: 700;
}

.status-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.status-box.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.status-box.danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.malware-types {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.file-list,
.issues-list,
.recommendations-list {
    background: #f7fafc;
    border-radius: 8px;
    padding: 15px;
}

.file-item,
.issue-item,
.rec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.file-item:last-child,
.issue-item:last-child,
.rec-item:last-child {
    border-bottom: none;
}

.file-item i {
    color: #e53e3e;
}

.issue-item i {
    color: #dd6b20;
}

.rec-item i {
    color: #38a169;
}

.risk-summary {
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
    font-style: italic;
    line-height: 1.6;
}

.scan-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
}

.threat-critical {
    background-color: #fed7d7 !important;
}

.threat-high {
    background-color: #feebc8 !important;
}

.threat-medium {
    background-color: #fefcbf !important;
}

.threat-low {
    background-color: #c6f6d5 !important;
}

.threat-safe {
    background-color: #b2f5ea !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .threat-score {
        position: static;
        margin-top: 10px;
    }
}

/* 
Enhanced AI Analysis Styles */
.analysis-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f7fafc;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #edf2f7;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.security-item.success {
    background: #d1fae5;
    color: #065f46;
}

.security-item.danger {
    background: #fee2e2;
    color: #991b1b;
}

.vuln-list {
    margin-top: 15px;
}

.vuln-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #fed7d7;
    color: #c53030;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px;
}

.gambling-alert {
    background: #c53030;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.detected-keywords {
    margin-top: 15px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.keyword-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.keyword-tag.danger {
    background: #fed7d7;
    color: #c53030;
}

.malware-types-list {
    margin-top: 15px;
}

.malware-type {
    display: inline-block;
    padding: 4px 10px;
    background: #fbd38d;
    color: #744210;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px;
}

.typo-summary {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.typo-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.typo-table th,
.typo-table td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.typo-table th {
    background: #f7fafc;
    font-weight: 600;
}

.grammar-issues {
    margin-top: 15px;
}

.grammar-issues ul {
    margin: 10px 0 0 20px;
}

.grammar-issues li {
    margin: 5px 0;
    color: #744210;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.perf-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.perf-label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 5px;
}

.perf-value {
    font-size: 18px;
    font-weight: 700;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-label {
    font-weight: 500;
}

.status-value {
    font-weight: 700;
    font-size: 16px;
}

.status-box.warning {
    background: #fefcbf;
    color: #744210;
    border-left: 4px solid #d69e2e;
}

/* Analysis Result Styles - Enhanced */
.analysis-header {
    margin-bottom: 24px;
}

.url-display label {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.url-box {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.url-box a {
    color: #89b4fa;
    text-decoration: none;
}

.url-box a:hover {
    text-decoration: underline;
}

.scan-mode-badge {
    background: #45475a;
    color: #a6e3a1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.analysis-result {
    margin-bottom: 24px;
}

.analysis-result h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-box {
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    margin-bottom: 20px;
}

.status-box i {
    font-size: 24px;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-critical {
    background: #7f1d1d;
    color: white;
    border: 1px solid #991b1b;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--light);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.stat-value.text-danger {
    color: var(--danger);
}

.stat-value.text-success {
    color: var(--success);
}

/* Detection Section Styles */
.detections-section {
    margin-top: 24px;
}

.detections-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detections-section > p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.detection-category {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.detection-category h5 {
    background: var(--light);
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.detection-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: white;
}

.detection-item:last-child {
    border-bottom: none;
}

.detection-item.critical {
    background: #fef2f2;
    border-left: 4px solid #7f1d1d;
}

.detection-item.high {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
}

.detection-item.medium {
    background: #fffbeb;
    border-left: 4px solid var(--warning);
}

.detection-item.low {
    background: #f0f9ff;
    border-left: 4px solid var(--info);
}

.detection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.detection-type {
    font-weight: 600;
    color: var(--dark);
}

.detection-location {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.detection-info p {
    margin: 6px 0;
    font-size: 13px;
}

.detection-info p strong {
    color: var(--gray);
}

.detection-context {
    margin-top: 8px !important;
}

.detection-context code {
    display: block;
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Keyword Tags Enhanced */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.keyword-tag.critical {
    background: #7f1d1d;
    color: white;
}

.keyword-tag.danger {
    background: #fee2e2;
    color: #991b1b;
}

.keyword-tag.warning {
    background: #fef3c7;
    color: #92400e;
}

.keyword-tag.info {
    background: #dbeafe;
    color: #1e40af;
}

.keyword-more {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: var(--light);
    color: var(--gray);
    border-radius: 4px;
    font-size: 11px;
}

/* Alert Styles Enhanced */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-success i {
    color: var(--success);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-warning i {
    color: var(--warning);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-danger i {
    color: var(--danger);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-info i {
    color: var(--info);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Google Links Section */
.google-links-section {
    margin-top: 24px;
}

.google-links-section h4 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.google-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.google-link-item:hover {
    border-color: var(--primary);
}

.link-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.link-keyword {
    font-weight: 600;
    color: var(--dark);
}

.link-category {
    font-size: 12px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detection-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    .google-link-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
