:root {
    /* Dosis Neighborhood SOC Theme - Security focused with holiday touches */
    --primary-color: #1a2332;         /* Dark security blue */
    --secondary-color: #e74c3c;       /* Alert red */
    --accent-color: #f39c12;          /* Warning amber */
    --success-color: #27ae60;         /* Success green */
    --info-color: #3498db;            /* Information blue */
    --light-color: #ecf0f1;           /* Light gray */
    --dark-color: #2c3e50;            /* Dark gray */
    --cyber-cyan: #00d4ff;            /* Cyber accent color */
    --holiday-gold: #ffd700;          /* Holiday gold accent */
    --border-radius: 6px;
    --box-shadow: 0 4px 20px rgba(26, 35, 50, 0.15);
    --glow-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

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

/* Add cybersecurity-themed background */
body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px;
    position: relative;
    min-height: 100vh;
    background-attachment: fixed;
}

/* Add subtle tech pattern overlay */
body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(39, 174, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Security-themed header with holiday accents */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(26, 35, 50, 0.4);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--cyber-cyan);
    position: relative;
    overflow: hidden;
}

/* Work in Progress Banner */
.wip-banner {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #d35400;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    animation: pulse-banner 2s ease-in-out infinite;
}

.wip-banner i {
    margin-right: 8px;
    animation: spin 2s linear infinite;
}

@keyframes pulse-banner {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add animated cyber elements */
header:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Security-themed decorative elements */
.header-content:before, .header-content:after {
    content: "🛡️";
    position: absolute;
    font-size: 1.8rem;
    color: var(--cyber-cyan);
    top: -5px;
    opacity: 0.8;
    text-shadow: 0 0 10px var(--cyber-cyan);
}

.header-content:before {
    left: 10px;
}

.header-content:after {
    right: 10px;
    content: "🔍";
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    background: rgba(0, 212, 255, 0.1);
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: var(--glow-shadow);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.logo i {
    font-size: 2rem;
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px var(--cyber-cyan);
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #fff, var(--cyber-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.header-content p {
    font-size: 1rem;
    color: var(--light-color);
    font-style: italic;
    margin-top: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.holiday-tag {
    background: linear-gradient(45deg, var(--holiday-gold), #ff6b35);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--dark-color);
    text-shadow: none;
}

/* Main Container */
.container {
    display: flex;
    width: 90%;
    max-width: 90%;
    gap: 20px;
    margin: 0 auto 35px;
}

/* Security-themed panels */
.left-panel, .right-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.left-panel {
    width: 40%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--info-color);
}

.left-panel:before {
    content: "📧";
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--info-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.right-panel {
    width: 60%;
    border-left: 4px solid var(--secondary-color);
}

.right-panel:before {
    content: "🔍";
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.panel-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    text-shadow: 0 1px 3px rgba(26, 35, 50, 0.2);
}

.panel-header h2:after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-cyan), transparent);
    border-radius: 2px;
}

.email-actions {
    display: flex;
    gap: 8px;
}

.email-actions button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

.email-actions button:hover {
    background-color: var(--light-color);
}

/* Email Container */
.email-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    background-color: #fafafa;
    position: relative; /* For legend positioning */
}

pre {
    white-space: pre-wrap;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}

/* Tabs */
/* Security-themed tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 25px;
    flex-wrap: wrap;
    position: relative;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 5px 5px 0 5px;
}

.tabs:after {
    content: "🔒";
    position: absolute;
    right: 15px;
    bottom: 5px;
    font-size: 1.2rem;
    color: var(--cyber-cyan);
    opacity: 0.7;
}

.tab-button {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    margin-right: 2px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.tab-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover {
    color: var(--cyber-cyan);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.tab-button:hover:before {
    left: 100%;
}

.tab-button.active {
    background: white;
    color: var(--primary-color);
    border-color: var(--cyber-cyan);
    box-shadow: 0 -2px 10px rgba(0, 212, 255, 0.2);
    font-weight: 700;
}

.tab-content {
    display: none;
    padding: 10px 0;
}

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

/* Form Styling */
.search-form {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Cybersecurity-themed buttons */
button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.2);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #e74c3c, var(--secondary-color));
}

button:hover:before {
    left: 100%;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-button {
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.primary-button {
    background: linear-gradient(135deg, var(--info-color), #2980b9);
    padding: 12px 24px;
    font-size: 0.9rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.primary-button:hover {
    background: linear-gradient(135deg, #3498db, var(--info-color));
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.secondary-button {
    background: linear-gradient(135deg, var(--success-color), #229954);
    border: 1px solid rgba(39, 174, 96, 0.3);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.secondary-button:hover {
    background: linear-gradient(135deg, #27ae60, var(--success-color));
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.wip-button {
    background: linear-gradient(135deg, #5e5e5e, #a0a0a0);
    border: 1px solid rgba(39, 174, 96, 0.3);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.wip-button:hover {
    background: linear-gradient(135deg, #5e5e5e, #a0a0a0);
    box-shadow: 0 6px 20px rgba(112, 112, 112, 0.4);
}

.danger-button {
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.danger-button:hover {
    background: linear-gradient(135deg, #f39c12, var(--accent-color));
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Fancy result containers */
.result-container {
    margin-bottom: 20px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.result-container:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.result-header {
    background: linear-gradient(90deg, #f8f9fa, #f0f0f0);
    padding: 12px 15px;
    border-bottom: 2px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    padding-left: 10px;
}

.result-header h4:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.selected-list, #defanged-list, #report-preview {
    padding: 10px;
    min-height: 100px;
    /* max-height: 200px; */
    overflow-y: auto;
    background-color: #fff;
}

/* Festive count badges */
.count-badge {
    background: linear-gradient(135deg, var(--secondary-color), #e74c3c);
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.count-badge:before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2));
    border-radius: 12px;
    z-index: -1;
}

/* IOC Items */
.ioc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    margin-bottom: 6px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ioc-item:hover {
    background-color: #f1f1f1;
    transform: translateX(3px);
}

.domain-item {
    border-left-color: var(--secondary-color);
}

.ip-item {
    border-left-color: var(--accent-color);
}

.url-item {
    border-left-color: var(--success-color);
}

.email-item {
    border-left-color: var(--warning-color);
}

.delete-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.delete-btn:hover {
    background-color: #ff3b4a;
    transform: scale(1.1) rotate(90deg);
}

/* Helpers */
.empty-message {
    color: var(--gray-color);
    text-align: center;
    font-style: italic;
    margin: 30px 0;
    position: relative;
}

.empty-message:before, .empty-message:after {
    content: "❄";
    position: absolute;
    color: #e0e0e0;
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.empty-message:before {
    left: 20%;
}

.empty-message:after {
    right: 20%;
}

.sed-help {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 5px;
    line-height: 1.4;
    max-width: 100%;
}

.sed-help code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.info-text {
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Alert */
.alert {
    padding: 15px 18px;
    margin-top: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: none;
    text-align: center;
    animation: fadeIn 0.4s;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.4;
    font-size: 1rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.success {
    background-color: var(--success-color);
    color: white;
    border-left: 5px solid #085038;
    position: relative;
}

.success:before {
    content: "🎄";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.error {
    background-color: var(--accent-color);
    color: white;
    border-left: 5px solid #c41a28;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
    position: relative;
}

.error:before {
    content: "☃️";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Add attention-grabbing pulse for error alerts */
.error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Shake animation for error feedback */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.8s;
}

/* Selected Summary */
.selected-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-item span:first-child {
    font-weight: 600;
}

/* Make count indicators more visible */
.summary-count {
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

/* Highlight non-zero counts */
.summary-count:not(:empty):not([data-count="0"]):not(:contains("0")) {
    color: var(--accent-color);
}

/* Add a visual indicator when count changes */
@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.count-updated {
    animation: countUpdate 0.5s ease;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Security Operations Center Footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    text-align: center;
    font-size: 0.85rem;
    border-top: 2px solid var(--cyber-cyan);
    box-shadow: 0 -4px 20px rgba(26, 35, 50, 0.3);
    position: relative;
}

footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--holiday-gold), var(--cyber-cyan));
}

footer p {
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Highlighting */
.highlight-domain {
    background-color: rgba(186, 45, 11, 0.2) !important;
    border-bottom: 2px solid var(--secondary-color) !important;
    padding: 0 3px !important;
    border-radius: 3px !important;
    margin: 0 1px !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.highlight-ip {
    background-color: rgba(52, 152, 219, 0.2) !important;
    border-bottom: 2px solid #3498db !important;
    padding: 0 3px !important;
    border-radius: 3px !important;
    margin: 0 1px !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.highlight-url {
    background-color: rgba(11, 110, 79, 0.2) !important;
    border-bottom: 2px solid var(--success-color) !important;
    padding: 0 3px !important;
    border-radius: 3px !important;
    margin: 0 1px !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.highlight-email {
    background-color: rgba(249, 194, 46, 0.2) !important;
    border-bottom: 2px solid var(--warning-color) !important;
    padding: 0 3px !important;
    border-radius: 3px !important;
    margin: 0 1px !important;
    transition: all 0.2s !important;
    position: relative !important;
}

/* Hover effect on highlights */
.highlight-domain:hover,
.highlight-ip:hover,
.highlight-url:hover,
.highlight-email:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* IOC Highlighting in Email */
#eml-content .highlight-domain {
    background-color: rgba(52, 152, 219, 0.2);
    border-bottom: 1px solid var(--secondary-color);
    padding: 0 2px;
}

#eml-content .highlight-ip {
    background-color: rgba(231, 76, 60, 0.2);
    border-bottom: 1px solid var(--accent-color);
    padding: 0 2px;
}

#eml-content .highlight-url {
    background-color: rgba(46, 204, 113, 0.2);
    border-bottom: 1px solid #2ecc71;
    padding: 0 2px;
}

#eml-content .highlight-email {
    background-color: rgba(155, 89, 182, 0.2);
    border-bottom: 1px solid #9b59b6;
    padding: 0 2px;
}

/* Adjust IOC highlighting in Email display to improve visibility */
#eml-content .highlight-domain,
#eml-content .highlight-ip,
#eml-content .highlight-url,
#eml-content .highlight-email {
    display: inline-block;
    padding: 1px 3px;
    margin: 0 1px;
    border-radius: 3px;
    font-weight: 500;
}

/* IOC list in report preview */
.ioc-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.ioc-list li {
    padding: 5px 0;
}

/* Regex Resources Section */
.regex-resources, .defang-resources {
    margin-top: 25px;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    background-color: #f8f9fa;
}

.regex-resources h4, .defang-resources h4 {
    margin-bottom: 12px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 5px;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.resource-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    text-decoration: underline;
}

.common-patterns {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}

.pattern-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pattern-name {
    font-weight: 600;
    color: var(--dark-color);
    width: 120px;
}

.pattern-item code {
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid #ddd;
    flex: 1;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
}

.copy-pattern {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 4px;
    min-width: 30px;
    display: flex;
    justify-content: center;
}

.copy-pattern:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Footer link */
.footer-link {
    color: var(--cyber-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--holiday-gold);
    border-bottom: 1px solid var(--holiday-gold);
    text-shadow: 0 0 5px var(--holiday-gold);
}

/* Make regex resources responsive */
@media (max-width: 768px) {
    .pattern-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pattern-name {
        width: 100%;
    }
    
    .pattern-item code {
        width: 100%;
    }
}

/* IOC Type Tabs */
.ioc-type-tabs {
    display: flex;
    border-bottom: 3px solid var(--light-color);
    margin: 20px 0 15px;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 5px;
}

.ioc-tab {
    padding: 10px 18px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: -3px;
    transition: all 0.2s;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    min-width: 110px;
    text-align: center;
}

.ioc-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--light-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.ioc-tab:hover {
    color: var(--secondary-color);
    background-color: #f9f9f9;
    transform: translateY(-3px);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.ioc-tab:hover::before {
    opacity: 1;
}

.ioc-tab.active {
    border-bottom: 3px solid var(--secondary-color);
    color: var(--light-color);
    background-color: white;
    transform: translateY(-3px);
    z-index: 5;
    font-weight: 700;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

.ioc-tab.active::before {
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 1;
}

/* Add specific styling for each IOC type tab */
.ioc-tab[data-ioc-type="domains"]::before {
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.ioc-tab[data-ioc-type="ips"]::before {
    background: linear-gradient(90deg, var (--accent-color), transparent);
}

.ioc-tab[data-ioc-type="urls"]::before {
    background: linear-gradient(90deg, #2ecc71, transparent);
}

.ioc-tab[data-ioc-type="emails"]::before {
    background: linear-gradient(90deg, #9b59b6, transparent);
}

.ioc-tab[data-ioc-type="domains"].active {
    border-bottom-color: var(--secondary-color);
}

.ioc-tab[data-ioc-type="ips"].active {
    border-bottom-color: var(--accent-color);
}

.ioc-tab[data-ioc-type="urls"].active {
    border-bottom-color: #2ecc71;
}

.ioc-tab[data-ioc-type="emails"].active {
    border-bottom-color: #9b59b6;
}

.ioc-type-panel {
    display: none;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ioc-type-panel.active {
    display: block;
    animation: fadeInPanel 0.3s ease;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Extract & Defang Buttons */
.quick-extract, .quick-defang {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 15px;
}

.quick-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.quick-buttons, .quick-defang-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-button, .quick-defang-button {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.secondary-button {
    background-color: var(--gray-color);
}

.secondary-button:hover {
    background-color: #7f8c8d;
}

/* IOC Summary Box */
.ioc-summary-box {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 15px;
}

.ioc-summary-box h4 {
    margin-bottom: 8px;
    color: var(--dark-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.small-action-button {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 4px;
    min-width: 30px;
}

.small-action-button:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Additional IOC highlighting */
.highlight-url {
    background-color: rgba(46, 204, 113, 0.2);
    border-bottom: 1px solid #2ecc71;
}

/* Review & Submit Button */
.review-submit-action {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.review-submit-action .primary-button {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.review-submit-action .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Reference Tab Styles */
.reference-section {
    padding: 10px 0;
}

.reference-category {
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reference-category h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-color);
}

.reference-links {
    margin-bottom: 15px;
}

.reference-links h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #555;
}

.reference-patterns h5 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #555;
    background-color: rgba(0,0,0,0.02);
    padding: 8px;
    border-radius: 4px;
}

.reference-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.reference-text code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    color: var(--accent-color);
}

.reference-patterns .pattern-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.copy-pattern-special {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy-pattern-special:hover {
    background-color: #2980b9;
}

.reference-divider {
    height: 1px;
    background-color: var(--light-color);
    margin: 30px 0;
}

.tip-box {
    background-color: rgba(241, 196, 15, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.tip-box h4 {
    color: #996600;
    font-size: 1rem;
    margin-bottom: 10px;
    border: none;
}

.tip-box i {
    color: var(--warning-color);
}

.tips-list {
    list-style: none;
    padding-left: 10px;
}

.tips-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.tips-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #996600;
    font-weight: bold;
}

@media (max-width: 768px) {
    .tab-button {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* IOC Type Headers and Items with Color Coding */
.ioc-type-header {
    background-color: #f8f9fa;
    padding: 8px 10px;
    margin: 8px 0 5px 0;
    border-radius: 4px;
    font-weight: 600;
    color: var (--dark-color);
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* For problem indicator positioning */
    padding-right: 40px; /* Make room for the indicator */
}

.ioc-type-header span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.domain-item {
    border-left-color: var(--secondary-color);
}

.ip-item {
    border-left-color: var(--accent-color);
}

.url-item {
    border-left-color: #2ecc71;
}

.email-item {
    border-left-color: #9b59b6;
}

/* Report Sections */
.report-section {
    margin-bottom: 15px;
}

.report-section h5 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin: 0 0 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.report-section .ioc-list {
    margin-top: 5px;
}

/* Quick Tips Panel */
.quick-tips-panel {
    position: relative;
    margin-top: 20px;
    border-top: 1px solid var(--light-color);
    padding-top: 15px;
}

.tip-toggle {
    background-color: var(--warning-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    position: relative;
}

tip-toggle:hover {
    background-color: #e67e22;
}

.tips-content {
    background-color: rgba(241, 196, 15, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-top: 10px;
    display: none;
}

.tips-content.active {
    display: block;
}

.tips-content h4 {
    color: #996600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tips-content .tips-list {
    list-style: none;
    padding-left: 5px;
    margin: 0;
}

.tips-content .tips-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #555;
}

.tips-content .tips-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #996600;
}

/* Legend for highlighted IOCs - make more compact */
.highlight-legend {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    font-size: 0.85rem;
    z-index: 100;
    max-width: 220px;
    opacity: 0.95;
    transform: rotate(2deg);
    border-top: 3px solid var(--warning-color);
}

.legend-title {
    font-weight: 700;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--light-color);
    color: var(--primary-color);
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 3px;
}

.domain-color {
    background-color: rgba(186, 45, 11, 0.2);
    border: 1px solid var(--secondary-color);
}

.ip-color {
    background-color: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db;
}

.url-color {
    background-color: rgba(11, 110, 79, 0.2);
    border: 1px solid var(--success-color);
}

.email-color {
    background-color: rgba(249, 194, 46, 0.2);
    border: 1px solid var(--warning-color);
}

.legend-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
}

.legend-close:hover {
    color: var(--dark-color);
}

/* IOC Report Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.4s ease, opacity 0.3s ease;
    transform: translateY(-50px);
    opacity: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid var(--warning-color);
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), #0B6E4F);
    color: white;
    border-radius: 9px 9px 0 0;
    position: relative;
}

.modal-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="30" cy="10" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="50" cy="10" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="70" cy="10" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="10" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="10" cy="30" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="50" cy="30" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="70" cy="30" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="30" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="10" cy="50" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="30" cy="50" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="70" cy="50" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="50" r="2" fill="rgba(255,255,255,0.3)"/></svg>');
    opacity: 0.2;
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

.report-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.modal-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.6rem;
}

.modal-header h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.report-metadata {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.report-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
}

.report-meta-item span:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.report-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.report-status.success {
    background-color: var(--success-color);
    color: white;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.report-section-header {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-section-header:first-child {
    margin-top: 0;
}

.report-summary {
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    margin-bottom: 20px;
}

.report-iocs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.report-ioc-category {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border-top: 3px solid var(--secondary-color);
}

.report-ioc-category.domains {
    border-top-color: var(--secondary-color);
}

.report-ioc-category.ips {
    border-top-color: var(--accent-color);
}

.report-ioc-category.urls {
    border-top-color: #2ecc71;
}

.report-ioc-category.emails {
    border-top-color: #9b59b6;
}

.report-ioc-title {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-ioc-title .count {
    background-color: #e0e0e0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: var(--dark-color);
}

.report-ioc-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.report-ioc-list li {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.report-ioc-list li:last-child {
    border-bottom: none;
}

.report-actions {
    padding-left: 20px;
    margin-bottom: 20px;
}

.report-actions li {
    margin-bottom: 8px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 8px 8px;
}

.modal-footer button {
    min-width: 120px;
}

#download-report {
    background-color: var(--success-color);
}

#download-report:hover {
    background-color: #219653;
}

@media (max-width: 800px) {
    .modal-content {
        width: 95%;
    }
    
    .report-metadata {
        grid-template-columns: 1fr;
    }
    
    .report-iocs-container {
        grid-template-columns: 1fr;
    }
}

/* Problem indicator styling */
.problem-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    animation: pulse-error 2s infinite;
    cursor: help;
    z-index: 10;
    font-weight: bold;
    box-shadow: 0 0 0 rgba(231, 76, 60, 0.7);
}

.problem-indicator i {
    font-size: 0.85rem;
}

/* Fixed animation for problem indicators */
@keyframes pulse-error {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Updated IOC type header to ensure problem indicator has room and proper z-index */
.ioc-type-header {
    background-color: #f8f9fa;
    padding: 8px 10px;
    margin: 8px 0 5px 0;
    border-radius: 4px;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* For problem indicator positioning */
    padding-right: 40px; /* Make room for the indicator */
}

/* Report Preview Section - New styling for the consolidated tab */
.report-preview-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.report-preview-section h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-preview {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--light-color);
}

/* Enhanced Submit Actions */
.submit-actions {
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var (--light-color);
    margin-top: 25px;
}

.submit-actions button {
    padding: 12px 25px;
    font-weight: 600;
    min-width: 180px;
}

.submit-actions .primary-button {
    background-color: var(--success-color);
}

.disabled-button {
    background-color: var(--gray-color);
}

.submit-actions .primary-button:hover {
    background-color: #219653;
}

/* IOC Explanation Boxes */
.ioc-explanation {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.ioc-explanation h5 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ioc-explanation p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
    margin: 0 0 10px 0;
}

.ioc-explanation p:last-child {
    margin-bottom: 0;
}

.reference-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #666;
}

.tab-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.tab-link:hover {
    text-decoration: underline;
}

/* Add different colors for each IOC type explanation */
/* Match IOC explanation colors to legend/highlights */
#domains-panel .ioc-explanation,
.ioc-explanation.domain {
    border-left-color: var(--secondary-color);
    background-color: rgba(186, 45, 11, 0.07);
}

#ips-panel .ioc-explanation,
.ioc-explanation.ip {
    border-left-color: #3498db;
    background-color: rgba(52, 152, 219, 0.07);
}

#urls-panel .ioc-explanation,
.ioc-explanation.url {
    border-left-color: var(--success-color);
    background-color: rgba(11, 110, 79, 0.07);
}

#emails-panel .ioc-explanation,
.ioc-explanation.email {
    border-left-color: var(--warning-color);
    background-color: rgba(249, 194, 46, 0.07);
}

/* Resource ID Required Modal */
#id-modal .error-icon {
    text-align: center;
    margin-bottom: 20px;
}

#id-modal .error-icon i {
    font-size: 48px;
    color: #e74c3c;
    animation: pulse 2s infinite;
}

#id-modal .id-message {
    text-align: center;
}

#id-modal .id-message h3 {
    margin-bottom: 15px;
    color: #e74c3c;
}

#id-modal .id-message p {
    margin-bottom: 10px;
    font-size: 16px;
}

#id-modal .id-message code {
    background-color: #f8f8f8;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    color: #e74c3c;
    font-weight: bold;
    border: 1px solid #ddd;
}

#id-modal .modal-footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

/* Pulse animation for the error icon */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Custom styling for the resource ID modal */
#id-modal .modal-content {
    border-color: var(--accent-color);
    max-width: 550px;
}

#id-modal .modal-header {
    background: linear-gradient(135deg, var(--accent-color), #c41a28);
}

#id-modal .error-icon {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

#id-modal .error-icon i {
    font-size: 60px;
    color: var(--accent-color);
    animation: pulse 2s infinite;
    position: relative;
}

#id-modal .error-icon:before,
#id-modal .error-icon:after {
    content: "❄";
    position: absolute;
    font-size: 30px;
    color: #e0e0e0;
    top: 5px;
}

#id-modal .error-icon:before {
    left: -20px;
}

#id-modal .error-icon:after {
    right: -20px;
}

#id-modal .id-message {
    text-align: center;
    background-color: rgba(249, 194, 46, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(249, 194, 46, 0.3);
    margin-bottom: 20px;
}

#id-modal .id-message h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.4rem;
}

#id-modal .id-message p {
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

#id-modal .id-message code {
    background-color: #f8f8f8;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent-color);
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 1.1rem;
}

/* Add some snowflakes to the background of modals */
.modal:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><text x="20" y="30" font-family="Arial" font-size="20" fill="rgba(255,255,255,0.5)">❄</text></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Additional decorative elements */
.regex-section h3, .defang-section h3, .reference-section h3 {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.regex-section h3:before, .defang-section h3:before, .reference-section h3:before {
    content: "🎁";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Make the content area feel more festive */
.email-container {
    background-color: #fcfcfc;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

/* Add subtle pattern to panels */
.left-panel, .right-panel {
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z" fill="%23f9f9f9" fill-opacity="0.5" fill-rule="evenodd"/></svg>');
}

/* Make empty message more friendly */
.empty-message {
    color: var(--gray-color);
    text-align: center;
    font-style: italic;
    margin: 30px 0;
    position: relative;
}

.empty-message:before, .empty-message:after {
    content: "❄";
    position: absolute;
    color: #e0e0e0;
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.empty-message:before {
    left: 20%;
}

.empty-message:after {
    right: 20%;
}

/* Resource ID Required Modal - Additional holiday styling */
#id-modal .modal-footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eaeaea;
}

/* Mission Box Styling - Security Alert Theme */
.mission-box {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(26, 35, 50, 0.08));
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.mission-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mission-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    padding-top: 5px;
    flex-shrink: 0;
    text-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.mission-content {
    flex: 1;
}

/* Mission toggle functionality */
.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.mission-toggle {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.mission-toggle:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

.mission-toggle:active {
    transform: scale(0.95);
}

.mission-toggle i {
    transition: transform 0.3s ease;
}

.mission-toggle.collapsed i {
    transform: rotate(180deg);
}

.mission-details {
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 1000px;
    opacity: 1;
}

.mission-details.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.mission-header.collapsed {
    margin-bottom: 0;
}

.mission-box h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(231, 76, 60, 0.2);
}

.mission-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.mission-urgency {
    background: rgba(243, 156, 18, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 8px !important;
}

.mission-steps {
    list-style-type: none;
    margin-bottom: 10px;
    padding-left: 5px;
}

.mission-steps li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.mission-steps li:before {
    content: "🎯";
    position: absolute;
    left: 0;
    top: 0;
}

.mission-urgency {
    font-weight: 600;
    font-style: italic;
    color: var(--secondary-color);
    border-top: 1px dashed rgba(186, 45, 11, 0.3);
    padding-top: 8px;
    margin-top: 10px;
}

.pattern-info-box {
    background-color: rgba(249, 194, 46, 0.1);
    border-left: 3px solid var(--warning-color);
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pattern-info-box i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

/* Add styling for SED error display */
.sed-error {
    text-align: left;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
    margin-top: 10px;
}

.sed-error h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.sed-error p {
    margin-bottom: 8px;
}

.sed-error hr {
    border: 0;
    border-top: 1px solid rgba(231, 76, 60, 0.3);
    margin: 10px 0;
}

.sed-error ul {
    padding-left: 20px;
    margin-top: 5px;
}

.sed-error li {
    margin-bottom: 5px;
}

.sed-error code {
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}