body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #121212;
}
.container {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(187, 134, 252, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(3px);
}
h1 {
    color: #bb86fc;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.upload-container {
    border: 2px dashed #bb86fc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    background-color: #2d2d2d;
    transition: background-color 0.3s;
}
.upload-container:hover {
    background-color: #333333;
}
.upload-container.dragover {
    background-color: #3a3a3a;
    border-color: #9b59b6;
}
#file-upload {
    display: none;
}

.analysis-controls {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.control-buttons {
    display: flex;
    gap: 15px;
}

.reanalyze-btn {
    background-color: #03dac6;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.reanalyze-btn:hover {
    background-color: #00b5a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.new-analysis-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.new-analysis-btn:hover {
    background-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.upload-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.upload-btn:hover {
    background-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.file-info {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}
.results-container {
    margin-top: 20px;
    display: none;
}
.loading {
    text-align: center;
    margin: 20px 0;
    display: none;
}
.loading-spinner {
    border: 5px solid #333;
    border-top: 5px solid #bb86fc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.indicator-section {
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    background-color: #252525;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.indicator-header {
    background-color: #333;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    color: #bb86fc;
}
.indicator-header span.count {
    background-color: #bb86fc;
    color: #121212;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.indicator-items {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style-type: none;
    background-color: #252525;
}
.indicator-items li {
    padding: 8px 15px;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}
.indicator-items li:last-child {
    border-bottom: none;
}
.indicator-items li:hover {
    background-color: #333;
}
#file-preview {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #252525;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    white-space: pre-wrap;
    border: 1px solid #333;
    color: #e0e0e0;
    font-family: monospace;
}
.copy-btn {
    background-color: #03dac6;
    color: #121212;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.copy-btn:hover {
    background-color: #00b5a7;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}
.copied {
    background-color: #00b5a7;
}
.yara-btn {
    background-color: #cf6679;
    color: #121212;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.yara-btn:hover {
    background-color: #b44b65;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}
.download-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.download-btn:hover {
    background-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    color: #aaa;
    transition: all 0.2s;
}
.tab:hover {
    color: #bb86fc;
    background-color: #333;
}
.tab.active {
    background-color: #2d2d2d;
    border-color: #444;
    border-bottom: 1px solid #2d2d2d;
    margin-bottom: -1px;
    font-weight: bold;
    color: #bb86fc;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.error-message {
    background-color: #3b1c24;
    color: #cf6679;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #cf6679;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: #1e1e1e;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #bb86fc;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.close:hover {
    color: #cf6679;
    transform: scale(1.1);
}
#yara-code {
    background-color: #252525;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    color: #e0e0e0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

/* New styles for regex editor */
.regex-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.regex-table th, .regex-table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

.regex-table th {
    background-color: #333;
    font-weight: bold;
    color: #bb86fc;
}

.regex-table code {
    color: #03dac6;
    background-color: #252525;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.regex-form {
    margin-top: 20px;
    padding: 15px;
    background-color: #2d2d2d;
    border-radius: 4px;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #bb86fc;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: monospace;
    background-color: #252525;
    color: #e0e0e0;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #bb86fc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.add-btn {
    background-color: #03dac6;
    color: #121212;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.add-btn:hover {
    background-color: #00b5a7;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}

.cancel-btn {
    background-color: #4f4f4f;
    color: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background-color: #666;
}

.delete-btn {
    background-color: #cf6679;
    color: #121212;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.delete-btn:hover {
    background-color: #b44b65;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}

.edit-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.edit-btn:hover {
    background-color: #9b59b6;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}

.regex-actions {
    display: flex;
    gap: 5px;
}

.regex-test-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #2d2d2d;
    border-radius: 4px;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.test-results {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #252525;
    border-radius: 4px;
    border: 1px solid #333;
    font-family: monospace;
    color: #e0e0e0;
}

.test-result-item {
    padding: 8px;
    border-bottom: 1px solid #333;
    animation: highlightNew 1s ease-out;
}

@keyframes highlightNew {
    0% { background-color: rgba(187, 134, 252, 0.2); }
    100% { background-color: transparent; }
}

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

/* New styles for SIEM queries */
.siem-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #2d2d2d;
    border-radius: 4px;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.siem-controls label {
    font-weight: bold;
    color: #bb86fc;
}

.siem-controls select {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.siem-controls select:focus {
    border-color: #bb86fc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.siem-queries-list .indicator-section {
    margin-bottom: 15px;
}

.siem-queries-list .indicator-header {
    background-color: #333;
    color: #03dac6;
}

.siem-queries-list pre {
    white-space: pre-wrap;
    word-break: break-all;
    padding: 10px;
    background-color: #252525;
    border-radius: 4px;
    border: 1px solid #333;
    color: #e0e0e0;
    font-family: monospace;
    overflow-x: auto;
}

.siem-queries-list .copy-btn {
    background-color: #bb86fc;
    color: #121212;
}

.siem-queries-list .copy-btn:hover {
    background-color: #9b59b6;
}

.no-results {
    color: #888;
    font-style: italic;
}