/* PhishDestroy.io Threat Feed - Dark Cybersecurity Theme */

:root {
    /* Primary Colors */
    --primary-red: #dc3545;
    --primary-dark: #0d1117;
    --secondary-dark: #161b22;
    --accent-blue: #58a6ff;
    --accent-green: #238636;
    --warning-orange: #f85149;
    
    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Background Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #21262d;
    --bg-card-hover: #30363d;
    
    /* Border Colors */
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --border-accent: #f85149;
    
    /* Gradient Colors */
    --gradient-cyber: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    --gradient-threat: linear-gradient(135deg, #f85149 0%, #dc3545 100%);
    --gradient-card: linear-gradient(145deg, #161b22 0%, #21262d 100%);
    
    /* Shadow Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-cyber: 0 0 20px rgba(248, 81, 73, 0.3);
    
    /* Animation Timings */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-threat);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition-normal);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.brand-text {
    background: var(--gradient-threat);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-blue) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-cyber);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2330363d" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    min-width: 140px;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-cyber), 0 0 20px rgba(var(--primary-red), 0.3);
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(var(--primary-red), 0.1), rgba(var(--accent-blue), 0.05));
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 10px rgba(var(--primary-red), 0.5);
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(var(--primary-red), 0.5);
        transform: scale(1); 
    }
    50% { 
        text-shadow: 0 0 20px rgba(var(--primary-red), 0.8);
        transform: scale(1.05); 
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.threat-monitor {
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.monitor-screen {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.threat-radar {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-circle {
    position: absolute;
    border: 1px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0.3;
}

.radar-circle:nth-child(1) {
    width: 80px;
    height: 80px;
}

.radar-circle:nth-child(2) {
    width: 140px;
    height: 140px;
}

.radar-circle:nth-child(3) {
    width: 200px;
    height: 200px;
}

.radar-sweep {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
    transform-origin: right center;
    animation: radarSweep 3s linear infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 50%, transparent 100%);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); opacity: 1; }
    100% { transform: rotate(360deg); opacity: 1; }
}

@keyframes scanLine {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(260px); opacity: 0.2; }
}

/* Analytics Section */
.analytics-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.analytics-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.analytics-card .card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.5rem;
}

.analytics-card .card-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.analytics-card .card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-threat);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.stat-content .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feed Section */
.feed-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.feed-container {
    max-width: 800px;
    margin: 0 auto;
}

.message-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-threat);
}

.message-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.message-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.threat-badge {
    background: var(--gradient-threat);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.message-content {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

/* Message Images */
.message-image {
    text-align: center;
    margin-top: 1rem;
}

.message-image img {
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    max-height: 300px;
    object-fit: cover;
    border: 2px solid var(--border-primary);
}

.message-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
    border-color: var(--primary-red);
}

.message-image small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Analysis Links - Safe and clickable */
.analysis-link {
    color: var(--accent-green);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-link:hover {
    color: #4CAF50;
    text-decoration-color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Threat URLs - Displayed as unclickable code */
.threat-url {
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary-red);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--primary-red);
    position: relative;
    cursor: not-allowed;
}

.threat-url::after {
    content: '⚠️';
    margin-left: 4px;
    font-size: 0.8em;
}

/* Legacy highlighted-url for backwards compatibility */
.highlighted-url {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Threat Analysis Card Styles */
.threat-analysis-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-primary);
}

.threat-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.threat-type-badge.phishing {
    background: linear-gradient(135deg, #ff4444, #cc3333);
    color: white;
}

.threat-type-badge.malware {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
}

.threat-type-badge.scam {
    background: linear-gradient(135deg, #ff8c42, #e67e22);
    color: white;
}

.threat-info-section h6 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.threat-url-display {
    background: var(--bg-secondary);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

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

.host-ip {
    font-family: 'Courier New', monospace;
    background: var(--bg-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--accent-blue);
    font-weight: 500;
}

.host-provider {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.analysis-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.analysis-service-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.analysis-service-link:hover {
    background: var(--bg-primary);
    border-color: var(--accent-green);
    transform: translateX(5px);
    color: var(--text-primary);
    text-decoration: none;
}

.analysis-service-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.scan-info {
    background: var(--bg-secondary);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

.scan-id {
    font-family: 'Courier New', monospace;
    color: var(--accent-blue);
    background: transparent;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Quick Analysis Tools */
.quick-analysis-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

@media (min-width: 768px) {
    .quick-analysis-tools {
        grid-template-columns: repeat(3, 1fr);
    }
}

.analysis-tool-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.analysis-tool-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.analysis-tool-btn.urlscan {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
}

.analysis-tool-btn.urlscan:hover {
    background: linear-gradient(135deg, #3367d6, #2c5aa0);
    color: white;
}

.analysis-tool-btn.virustotal {
    background: linear-gradient(135deg, #394EFF, #2c3e50);
    color: white;
}

.analysis-tool-btn.virustotal:hover {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
}

.analysis-tool-btn.browserling {
    background: linear-gradient(135deg, #ff6b35, #e74c3c);
    color: white;
}

.analysis-tool-btn.browserling:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.analysis-tool-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.analysis-tool-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Load More Button */
.load-more-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.threat-details {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.threat-details h6 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.threat-url {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-primary);
}

.threat-url:last-child {
    margin-bottom: 0;
}

.threat-url code {
    color: var(--accent-blue);
    background: transparent;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
}

.domain-zone {
    background: var(--primary-red);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Interactive Table Effects */
.table-dark tbody tr {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.table-dark tbody tr:hover {
    background: rgba(var(--primary-red), 0.1) !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(var(--primary-red), 0.2);
}

.table-dark tbody tr:hover td {
    border-color: rgba(var(--primary-red), 0.3);
}

.domain-link {
    position: relative;
    transition: all 0.3s ease;
}

.domain-link:hover {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 8px rgba(var(--accent-orange), 0.6);
}

.domain-link::after {
    content: '⚠️';
    position: absolute;
    right: -25px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.domain-link:hover::after {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Live Data Indicator */
.analytics-card {
    position: relative;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    animation: data-pulse 3s infinite;
    opacity: 0;
    z-index: 10;
}

.analytics-card.live-updating::before {
    opacity: 1;
}

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

/* Chart Container Hover Effects */
.analytics-card:hover canvas {
    filter: brightness(1.1) contrast(1.05);
    transition: filter 0.3s ease;
}

/* Live Value Effects */
.text-warning, .text-danger, .text-success, .text-info {
    transition: all 0.3s ease;
}

.table-dark tbody tr:hover .text-warning {
    color: #ffc107 !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
    animation: pulse-value 1s infinite;
}

.table-dark tbody tr:hover .text-danger {
    color: #dc3545 !important;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
    animation: pulse-value 1s infinite;
}

.table-dark tbody tr:hover .text-success {
    color: #28a745 !important;
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
    animation: pulse-value 1s infinite;
}

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

/* Floating Download Button */
.floating-download {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse-float 2s infinite;
}

.floating-download .btn {
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    font-weight: 600;
}

.floating-download .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

@keyframes pulse-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-divider {
    border-color: var(--border-primary);
    margin: 2rem 0 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s linear infinite;
}

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

/* Button Styles */
.btn-outline-primary {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .analytics-section,
    .feed-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-time {
        margin-left: 0;
    }
    
    .threat-url {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .domain-zone {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .footer-links {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .analytics-section,
    .feed-section {
        padding: 40px 0;
    }
    
    .message-card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .analytics-card .card-header,
    .analytics-card .card-body {
        padding: 1rem;
    }
}

/* Dark mode chart styles */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Chart canvas fixes */
canvas {
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
}

/* Analytics card chart containers */
.analytics-card .card-body canvas {
    max-height: 300px !important;
    width: 100% !important;
}

/* Daily activity chart specific fixes */
#dailyActivityChart {
    max-height: 350px !important;
    max-width: 100% !important;
}

/* Domain zones chart */
#domainZonesChart {
    max-height: 300px !important;
    max-width: 100% !important;
}

/* Custom scrollbar for webkit browsers */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--border-primary);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }
}

/* Analysis Tool Buttons */
.quick-analysis-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.analysis-tool-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.analysis-tool-btn i {
    margin-right: 6px;
    font-size: 1rem;
}

.analysis-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* URLScan.io Button */
.analysis-tool-btn.urlscan {
    background: linear-gradient(135deg, #4285f4, #357ae8);
    color: white;
    border-color: #4285f4;
}

.analysis-tool-btn.urlscan:hover {
    background: linear-gradient(135deg, #357ae8, #2968d7);
    color: white;
}

/* VirusTotal Button */
.analysis-tool-btn.virustotal {
    background: linear-gradient(135deg, #394EFF, #2a3ccc);
    color: white;
    border-color: #394EFF;
}

.analysis-tool-btn.virustotal:hover {
    background: linear-gradient(135deg, #2a3ccc, #1f2bb3);
    color: white;
}

/* Browserling Button */
.analysis-tool-btn.browserling {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    border-color: #ff6b35;
}

.analysis-tool-btn.browserling:hover {
    background: linear-gradient(135deg, #e55a2b, #cc4c21);
    color: white;
}

/* Hybrid Analysis Button */
.analysis-tool-btn.hybrid {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: #8b5cf6;
}

.analysis-tool-btn.hybrid:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
}

/* Analysis Links Section */
.analysis-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.analysis-service-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.analysis-service-link:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    color: var(--text-primary);
    text-decoration: none;
}

.analysis-service-link i {
    margin-right: 6px;
}
