html {
    font-family: Arial, sans-serif;
    max-width: 100;
    margin: 0 auto;
    justify-content: center;
    padding: 10px;
}

body {
    font-family: Arial, sans-serif;
    max-width: 80;
    margin: 0 auto;
    justify-content: center;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 1200px; /* Increased max-width */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 0 auto; /* Center align container */
}


h1 {
    color: #333;
}

form {
    margin-bottom: 20px;
}

.form1 {
    margin-bottom: 0px;
}

input[type="text"] {
    width: 70%;
    padding: 8px;
    margin-right: 10px;
}

button {
    padding: 8px 16px;
    background-color: #3280d9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #6bd5e0;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 5px 0;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

b {
    color: #f3af32; /* Highlight entity names */
}

textarea {
    width: 100%;
    margin-bottom: 10px;
  }

form {
    margin-bottom: 20px;
  }

.entity_input {
    width: 300px; /* Adjust the width as needed */
}

.ioc {
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
    background-color: #c10000; 
    color: #ffeeba;
  }
  
  /* Security Indicators */
  .ioc.arn { background-color: #ffeeba; color: #856404; }
  .ioc.cve { background-color: #ffebee; color: #b71c1c; }
  .ioc.ttp { background-color: #dcedc8; color: #33691e; }
  .ioc.tox { background-color: #f0f4c3; color: #827717; }
  
  /* Network Indicators */
  .ioc.ip { background-color: #f8d7da; color: #842029; }
  .ioc.fqdn { background-color: #c8e6c9; color: #2e7d32; }
  .ioc.onion { background-color: #ede7f6; color: #4a148c; }
  
  /* Web Services */
  .ioc.url { background-color: #d1e7dd; color: #0f5132; }
  .ioc.google_adsense { background-color: #e8f4fd; color: #1a73e8; }
  .ioc.google_analytics { background-color: #d2e3fc; color: #174ea6; }
  .ioc.google_tagmanager { background-color: #b3d4fc; color: #1557b0; }
  
  /* Communications */
  .ioc.email { background-color: #cff4fc; color: #055160; }
  .ioc.phone { background-color: #b2f5ea; color: #234e52; }
  .ioc.whatsapp { background-color: #d4edda; color: #155724; }
  .ioc.telegram { background-color: #e3f2fd; color: #0088cc; }
  
  /* Social Media */
  .ioc.twitter { background-color: #e1f5fe; color: #1DA1F2; }
  .ioc.facebook { background-color: #e7f3ff; color: #1877F2; }
  .ioc.instagram { background-color: #f3e5f5; color: #C13584; }
  .ioc.youtube { background-color: #ffebee; color: #FF0000; }
  .ioc.youtube_channel { background-color: #ffcdd2; color: #cc0000; }
  .ioc.pinterest { background-color: #ffe5ec; color: #E60023; }
  .ioc.linkedin { background-color: #e2f0fe; color: #0A66C2; }
  .ioc.github { background-color: #f0f0f0; color: #333; }
  
  /* Financial */
  .ioc.iban { background-color: #d4edda; color: #155724; }
  .ioc.crypto { background-color: #fff3cd; color: #856404; }
  
  /* Identifiers */
  .ioc.uuid { background-color: #f3e5f5; color: #6a1b9a; }
  .ioc.nif { background-color: #e3f2fd; color: #0d47a1; }
  .ioc.icp { background-color: #e2e8f0; color: #4a5568; }
  
  /* Technical */
  .ioc.hash { background-color: #e9d8fd; color: #44337a; }
  .ioc.yara { background-color: #feebc8; color: #91472c; }
  .ioc.file { background-color: #fed7e2; color: #702459; }
  .ioc.package_name { background-color: #e6e6fa; color: #4b0082; }
  
  /* Legal */
  .ioc.copyright { background-color: #e2e8f0; color: #4a5568; }
  .ioc.trademark { background-color: #efebe9; color: #4e342e; }

  /* Container for the IOCs */
.ioc-container {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
}

/* Individual IOC items */
.ioc-item {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space between text and button */
    align-items: center; /* Vertically align items */
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #dee2e6; /* Border around each block */
    border-radius: 5px; /* Rounded corners */
    padding: 5px; /* Padding inside the block */
    margin-bottom: 10px; /* Space between blocks */
    font-size: 14px; /* Adjust font size */
    color: #212529; /* Text color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Hover effect for IOC items */
.ioc-item:hover {
    background-color: #e9ecef; /* Slightly darker background on hover */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Category styling */
.ioc-category {
    margin-bottom: 20px; /* Space between categories */
}

.ioc-category strong {
    display: block;
    font-size: 16px;
    color: #495057;
    margin-bottom: 10px;
}

/* Container for the tagged text */
.tagged-text-box {
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #dee2e6; /* Border around the box */
    border-radius: 5px; /* Rounded corners */
    padding: 15px; /* Padding inside the box */
    margin-top: 10px; /* Space above the box */
    font-size: 14px; /* Adjust font size */
    color: #212529; /* Text color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow-x: auto; /* Allow horizontal scrolling for long text */
    max-height: 1000px; /* Limit the height of the box */
    overflow-y: auto; /* Add vertical scrolling if content exceeds height */
    line-height: 1.6;
}

/* Style for the tagged text inside the box */
#tagged-text span {
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
}

/* Hover effect for tagged entities */
#tagged-text span:hover {
    background-color: #e9ecef; /* Slightly darker background on hover */
    cursor: pointer; /* Pointer cursor on hover */
}

.delete-ioc-btn {
    background-color: transparent; /* Transparent background */
    border: none; /* Remove border */
    color: red; /* Red text color */
    font-size: 16px; /* Adjust font size */
    font-weight: bold; /* Make the "X" bold */
    cursor: pointer; /* Pointer cursor on hover */
    margin-left: 10px; /* Add space between the text and the button */
}

.delete-ioc-btn:hover {
    color: darkred; /* Darker red on hover */
}



/* Style for the report cards */
.report-card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.report-card .card-icon {
    height: 24px;
    width: 24px;
    margin-right: 8px;
}
.author-badge {
    border-radius: 12px;
    padding: 6px;
    color: white;
    display: inline-flex;
    align-items: center;
}
.author-badge img {
    border-radius: 50%;
    margin-right: 6px;
}
.ioc-count {
    font-weight: 600;
    color: #999;
}
.report-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-container {
    margin-bottom: 30px;
    text-align: center;
}


/** Style for the icons in the icon box */
.icon-box {
    display: inline-flex; /* Use flexbox for proper alignment */
    justify-content: center; /* Center the icon horizontally */
    align-items: center; /* Center the icon vertically */
    width: 30px; /* Set the width of the box */
    height: 30px; /* Set the height of the box */
    border: 1px solid #a4a9ae; /* Blue border */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth hover effect */
}

.icon-box i {
    font-size: 1.2em; /* Adjust the icon size */
    color: #637b84; /* Blue icon color */
}

.icon-box:hover {
    background-color: #6da5e1; /* Blue background on hover */
    color: #ffffff; /* White icon color on hover */
}


/* Tagged text comparison styles */
.legend {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
    font-size: 13px;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Processing type-specific colors */
.report-type-static { background-color: rgba(255, 153, 153, 0.8); color: #ffeeba !important }  /* Red */
.report-type-nlp { background-color: rgba(91, 148, 91, 0.8); color: #ffeeba !important}     /* Green */
.report-type-llm { background-color: rgba(153, 153, 255, 0.8); color: #ffeeba !important}     /* Blue */

/* Combination colors */
.report-type-nlp-static { background-color: rgba(200, 130, 0, 0.8); color: #ffeeba !important}  /* Red + Green */
.report-type-llm-static { background-color: rgba(255, 46, 255, 0.8); color: #ffeeba !important}  /* Red + Blue */
.report-type-llm-nlp { background-color: rgb(153, 200, 200); color: #ffeeba !important}     /* Green + Blue */
.report-all-types { background-color: rgba(255, 0, 0, 0.604); color: #ffeeba !important}        /* All types */

/* Processing type-specific colors with increased specificity */
#tagged-text-comparison .ioc.report-type-static { 
    background-color: rgba(255, 153, 153, 0.8) !important; 
}
#tagged-text-comparison .ioc.report-type-nlp { 
    background-color: rgba(91, 148, 91, 0.8) !important; 
}
#tagged-text-comparison .ioc.report-type-llm { 
    background-color: rgba(153, 153, 255, 0.8) !important; 
}

/* Combination colors with increased specificity */
#tagged-text-comparison .ioc.report-type-nlp-static { 
    background-color: rgba(200, 130, 0, 0.8) !important; 
}
#tagged-text-comparison .ioc.report-type-llm-static { 
    background-color: rgba(255, 46, 255, 0.8) !important; 
}
#tagged-text-comparison .ioc.report-type-llm-nlp { 
    background-color: rgb(153, 200, 200) !important; 
}
#tagged-text-comparison .ioc.report-all-types { 
    background-color: rgba(255, 0, 0, 0.604) !important; 
}

/* Highlight on hover */
.ioc-highlight {
    outline: 2px solid #007bff !important;
    outline-offset: 2px;
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
    position: relative;
    z-index: 2;
}

/* Stronger highlight for elements being scrolled to */
.strong-highlight {
    outline: 3px solid #007bff;
    outline-offset: 3px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Tooltip styling */
.ioc-tooltip {
    position: absolute;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none; /* Ensures tooltip doesn't interfere with mouse events */
    max-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease-in-out;
}

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

/* Styling for IOC table */
.ioc-value-separator {
    height: 10px;
    background-color: #f8f9fa;
    border: none;
}

.ioc-value-separator td {
    border: none !important;
}

.ioc-value-group {
    border-left: 3px solid transparent;
}

.multi-category-header {
    background-color: rgba(0, 123, 255, 0.05);
}

.multi-category-header td {
    color: #007bff;
    font-weight: 500;
    padding: 5px 8px !important;
    border-bottom: 1px dashed #dee2e6 !important;
}

.multi-category-row {
    border-left: 3px solid #007bff;
}

.multi-category-row td {
    padding-top: 6px;
    padding-bottom: 6px;
}

.multi-category-row:last-of-type {
    border-bottom: 1px solid #dee2e6;
}

/* Master IOC table styling */
.badge {
    padding: .4em .6em;
    font-weight: 500;
    font-size: 85%;
}

.badge-secondary {
    background-color: #6c757d;
}

.badge-light {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Progress bar styling */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

/* Table spacing and styling */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* Button styling */
.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Card styling */
.card {
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    padding: 1.25rem;
}

.card-body.p-0 table {
    margin-bottom: 0;
}

/* Empty state styling */
.text-muted {
    color: #6c757d !important;
}

/* Remove excessive padding in table rows */
.table tbody tr td {
    padding: 0.5rem !important; /* Reduce padding */
    vertical-align: middle; /* Align content vertically */
}

/* Adjust progress bar height and spacing */
.progress {
    margin-bottom: 0; /* Remove bottom margin */
    height: 8px; /* Set consistent height */
}

.progress-bar {
    line-height: 8px; /* Align text inside the bar */
}

/* Adjust badge spacing */
.badge {
    margin: 0; /* Remove unnecessary margin */
    padding: 0.4em 0.6em; /* Adjust padding */
    font-size: 85%; /* Slightly smaller font size */
}

/* Progress bar styling */
progress {
    width: 100%;
    height: 8px;
    margin-right: 8px;
}

.break-word {
    word-wrap: break-word; /* Break long words */
    word-break: break-word; /* Ensure long words break */
    white-space: normal; /* Allow text to wrap */
}


/* RSS feed styles */
.rendered-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.rendered-content img {
    max-width: 100%;
    height: auto;
}

.rendered-content a {
    color: #007bff;
    text-decoration: none;
}

.rendered-content a:hover {
    text-decoration: underline;
}

.navbar-gradient-dark {
    background: linear-gradient(90deg,#212529, #ffffff); /* Dark gradient */
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-gradient-dark .navbar-brand {
    color: #ffffff !important;
}