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

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 100%);
    color: #00ff88;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Loading Indicator Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    text-align: center;
    color: #00ff88;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 136, 0.3);
    border-top: 4px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-overlay.hidden {
    display: none;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #00ff88;
    color: #00ff88;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
    color: #88ddff;
}

.main-nav {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.nav-link {
    color: #00ff88;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-link:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.nav-link.active {
    background: rgba(0, 255, 136, 0.3);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 140px);
}

.controls-panel {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.controls-panel.sticky {
    border-radius: 0 0 15px 15px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 100;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 0.9em;
    color: #88ddff;
    font-weight: bold;
}

.search-container {
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #00ff88;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.search-box::placeholder {
    color: rgba(0, 255, 136, 0.5);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 255, 136, 0.5);
    font-size: 1.2em;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(10px);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(0, 255, 136, 0.1);
}

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

.match-details {
    font-size: 0.8em;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.search-result-name {
    font-weight: bold;
    color: #00ff88;
}

.search-result-desc {
    font-size: 0.9em;
    color: #88ddff;
    margin-top: 3px;
}

/* Match type indicators */
.match-exact, .match-starts, .match-contains, .match-fuzzy {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.match-exact {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #000;
    border: 2px solid #ffd700;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.6);
}

.match-starts {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.match-contains {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.match-fuzzy {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* Enhanced search result styling for exact matches */
.search-result-item.exact-match {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.08));
    border-left: 4px solid #ffd700;
    box-shadow: 0 3px 15px rgba(255, 215, 0, 0.4);
    transform: translateX(3px);
    border-radius: 0 8px 8px 0;
}

.search-result-item.exact-match:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.15));
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
    transform: translateX(5px);
}

.btn {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.btn:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

.btn.secondary {
    background: linear-gradient(45deg, #88ddff, #66bbee);
}

.tree-panel {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow-y: visible;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

.tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.tree-header h3 {
    margin: 0;
    color: #00ff88;
    font-size: 1.2em;
    font-weight: bold;
}

.tree-controls {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 20px;
}

.info-panel {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow-y: visible;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

/* Process Details Header */
.process-details-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.process-details-header h2 {
    color: #00ff88;
    margin: 0 0 15px 0;
    font-size: 1.8em;
    font-weight: bold;
}

.process-meta-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Tabbed Interface */
.details-tabs {
    margin-bottom: 25px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.tab-btn {
    background: rgba(0, 0, 0, 0.3);
    color: #88ddff;
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
}

.tab-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border-bottom-color: transparent;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.ttp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.process-node {
    margin: 8px 0;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    border-left: 4px solid transparent;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(26, 26, 46, 0.4));
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.process-node:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.25);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(136, 221, 255, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.process-node:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

.process-node.selected {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(136, 221, 255, 0.1));
    border-left-color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.05);
}

.process-node.highlighted {
    animation: highlight-pulse 2s ease-in-out;
}

/* Match type highlighting in tree */
.process-node.exact-match {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.15));
    border-left-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
    border-radius: 8px;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.process-node.exact-match::before {
    content: '🎯';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        transform: translateY(-50%) scale(1);
    }
    50% { 
        text-shadow: 0 0 25px rgba(255, 215, 0, 1);
        transform: translateY(-50%) scale(1.1);
    }
}

.process-node.starts-match {
    background: rgba(33, 150, 243, 0.2);
    border-left-color: #2196F3;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
}

.process-node.contains-match {
    background: rgba(255, 193, 7, 0.2);
    border-left-color: #FFC107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.process-node.fuzzy-match {
    background: rgba(158, 158, 158, 0.2);
    border-left-color: #9E9E9E;
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.3);
}

@keyframes highlight-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

.process-node.critical {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(0, 0, 0, 0.3));
}

.process-node.critical:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(136, 221, 255, 0.05));
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.25);
}

.process-node.system {
    border-left-color: #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), rgba(0, 0, 0, 0.3));
}

.process-node.system:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(136, 221, 255, 0.05));
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.25);
}

.process-node.service {
    border-left-color: #45b7d1;
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.05), rgba(0, 0, 0, 0.3));
}

.process-node.service:hover {
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.1), rgba(136, 221, 255, 0.05));
    box-shadow: 0 8px 30px rgba(69, 183, 209, 0.25);
}

.process-node.user {
    border-left-color: #96ceb4;
    background: linear-gradient(135deg, rgba(150, 206, 180, 0.05), rgba(0, 0, 0, 0.3));
}

.process-node.user:hover {
    background: linear-gradient(135deg, rgba(150, 206, 180, 0.1), rgba(136, 221, 255, 0.05));
    box-shadow: 0 8px 30px rgba(150, 206, 180, 0.25);
}

.process-children {
    margin-left: 35px;
    border-left: 2px dashed rgba(0, 255, 136, 0.3);
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.process-children::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(0, 255, 136, 0.3) 0%, 
        rgba(136, 221, 255, 0.2) 50%, 
        rgba(0, 255, 136, 0.3) 100%);
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { 
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    }
    50% { 
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }
}

.process-children.expanded {
    max-height: 2000px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-children.expanded::before {
    animation: border-glow 2s ease-in-out infinite;
}

.expand-icon {
    display: inline-block;
    width: 25px;
    text-align: center;
    color: #00ff88;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
    border-radius: 4px;
    padding: 2px;
}

.expand-icon:hover {
    color: #88ddff;
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(136, 221, 255, 0.6);
    background: rgba(136, 221, 255, 0.1);
}

.expand-icon:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
    border-radius: 4px;
}

.expand-icon.expanded {
    transform: rotate(90deg);
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.process-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.process-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.process-node:hover .process-name {
    color: #88ddff;
    text-shadow: 0 0 12px rgba(136, 221, 255, 0.5);
}

.process-node.selected .process-name {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    font-weight: 900;
}

.process-node.exact-match .process-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 900;
}

.process-icon {
    font-size: 1.2em;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.3));
}

.process-node:hover .process-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(136, 221, 255, 0.5));
}

.process-node.selected .process-icon {
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8));
    }
}

.process-details {
    font-size: 0.9em;
    opacity: 0.8;
    color: #88ddff;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.process-node:hover .process-details {
    color: #aaddff;
    opacity: 0.9;
}

.process-node.selected .process-details {
    color: #00ff88;
    opacity: 1;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.process-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: #888;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.process-node:hover .meta-item {
    color: #aaa;
    background: rgba(0, 255, 136, 0.05);
}

.process-node.selected .meta-item {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    text-shadow: 0 0 3px rgba(0, 255, 136, 0.3);
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.info-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h4 {
    color: #88ddff;
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

.info-section p {
    line-height: 1.7;
    margin-bottom: 12px;
    color: #ccc;
}

.info-section code {
    background: rgba(0, 255, 136, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00ff88;
    font-size: 0.9em;
}

.info-section ul {
    margin-left: 20px;
    line-height: 1.6;
}

.info-section li {
    margin-bottom: 8px;
    color: #ccc;
}

.info-section a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-section a:hover {
    color: #88ddff;
    text-decoration: underline;
}

.mitre-tag {
    display: inline-block;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(255, 107, 107, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mitre-tag:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.legitimate-indicator {
    color: #4CAF50;
    font-weight: bold;
}

.suspicious-indicator {
    color: #ff6b6b;
    font-weight: bold;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.danger-box {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.success-box {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

#breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    margin-bottom: 18px;
    padding: 8px 0 8px 8px;
    color: #00ff88;
    background: rgba(0,255,136,0.05);
    border-radius: 8px;
    min-height: 32px;
    font-weight: 500;
}

#breadcrumbs a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
#breadcrumbs a:hover {
    color: #ffd700;
    text-decoration: underline;
}
#breadcrumbs .breadcrumb-sep {
    color: #88ddff;
    font-size: 1.1em;
    margin: 0 2px;
}

/* Main page scrollbar styling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-y: auto;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00ff88, #88ddff);
    border-radius: 7px;
    border: 2px solid transparent;
    background-clip: content-box;
    box-shadow: inset 0 0 6px rgba(0, 255, 136, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00cc66, #66bbee);
    background-clip: content-box;
    box-shadow: inset 0 0 8px rgba(0, 255, 136, 0.5);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
}
