* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0F172A;
    color: #94A3B8;
    overflow: hidden;
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1E293B;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #E2E8F0;
}

.modal-header {
    background: linear-gradient(to right, #0F172A, #1E293B);
    padding: 24px;
    border-bottom: 2px solid #3B82F6;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-logo {
    width: 48px;
    height: 48px;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.disclaimer {
    background: #7F1D1D;
    border: 2px solid #DC2626;
    border-radius: 8px;
    padding: 20px;
    margin: 24px;
    text-align: center;
}

.disclaimer h3 {
    color: #FEE2E2;
    font-size: 20px;
    margin-bottom: 12px;
}

.disclaimer p {
    color: #FECACA;
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
}

.disclaimer strong {
    color: #FEF2F2;
    font-weight: bold;
}

.tutorial-section {
    padding: 24px;
}

.tutorial-section > h3 {
    color: #3B82F6;
    font-size: 20px;
    margin-bottom: 20px;
}

.tutorial-item {
    margin-bottom: 24px;
}

.tutorial-item h4 {
    color: #60A5FA;
    font-size: 16px;
    margin-bottom: 8px;
}

.tutorial-item ul {
    list-style: none;
    padding-left: 0;
}

.tutorial-item li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #CBD5E1;
    line-height: 1.5;
}

.tutorial-item li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-weight: bold;
}

.tutorial-item strong {
    color: #E2E8F0;
    font-weight: 600;
}

.modal-footer {
    background: #0F172A;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #334155;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#closeTutorial {
    padding: 12px 32px;
    font-size: 15px;
}


.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(to right, #0F172A, #1E293B);
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon-img {
    width: 36px;
    height: 36px;
}

.logo-title {
    font-size: 19px;
    font-weight: 600;
    color: white;
}

.logo-subtitle {
    font-size: 11px;
    color: #94A3B8;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-section label {
    color: #CBD5E1;
    font-weight: 500;
    font-size: 13px;
}

.search-section input {
    width: 320px;
    height: 38px;
    padding: 0 12px;
    background: white;
    color: #1E293B;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 13px;
}

/* Toolbar */
.toolbar {
    background: #1E293B;
    border-bottom: 1px solid #334155;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
}

.btn-primary, .btn-secondary {
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563EB;
    color: white;
}

.btn-primary:hover {
    background: #1D4ED8;
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #CBD5E1;
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

/* Tabs */
.tabs {
    display: flex;
    background: #0F172A;
    border-bottom: 2px solid #334155;
}

.tab {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94A3B8;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
    cursor: pointer;
    margin: 0 2px 0 0;
    transition: all 0.2s;
}

.tab:hover {
    color: #E2E8F0;
}

.tab.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-pane {
    display: none;
    height: 100%;
    padding: 12px;
    overflow: auto;
}

.tab-pane.active {
    display: block;
}

.tab-description {
    color: #6C757D;
    font-size: 12px;
    margin-bottom: 12px;
}

/* Risk Legend */
.risk-legend {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}

.legend-title {
    font-family: 'Consolas', monospace;
    font-weight: bold;
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 6px;
}

.legend-items {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

.badge-high {
    background: #7F1D1D;
    color: #FECACA;
}

.badge-med {
    background: #78350F;
    color: #FDE68A;
}

.badge-low {
    background: #713F12;
    color: #FEF08A;
}

.legend-separator {
    width: 1px;
    height: 20px;
    background: #334155;
    margin: 0 8px;
}

.legend-info {
    color: #64748B;
    font-size: 10px;
    font-family: 'Consolas', monospace;
}

/* Table */
.table-container {
    background: #020617;
    border: 1px solid #1E293B;
    overflow: auto;
    max-height: calc(100vh - 280px);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Consolas', monospace;
    font-size: 11px;
}

thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    background: #0F172A;
    color: #94A3B8;
    font-weight: bold;
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #334155;
    height: 30px;
}

tbody tr {
    background: #020617;
    height: 20px;
    cursor: pointer;
}

tbody tr:nth-child(even) {
    background: #0F172A;
}

tbody tr:hover {
    background: #1E293B;
    color: #E2E8F0;
}

tbody tr.selected {
    background: #3B82F6 !important;
    color: white;
}

tbody tr.risk-high {
    background: #7F1D1D;
    color: #FECACA;
}

tbody tr.risk-med {
    background: #78350F;
    color: #FDE68A;
}

tbody tr.risk-low {
    background: #713F12;
    color: #FEF08A;
}

td {
    padding: 0 8px;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

td:last-child {
    max-width: 400px;
}

/* Reputation Bar */
.reputation-bar {
    width: 80px;
    height: 10px;
    background: #1E293B;
    border-radius: 2px;
    overflow: hidden;
}

.reputation-fill {
    height: 100%;
    transition: width 0.3s;
}

.reputation-fill.green {
    background: #10B981;
}

.reputation-fill.yellow {
    background: #FCD34D;
}

.reputation-fill.orange {
    background: #F59E0B;
}

.reputation-fill.red {
    background: #EF4444;
}

/* Process Tree */
.process-tree {
    background: #0F172A;
    border: 1px solid #334155;
    border-top: none;
    padding: 8px;
    margin: 0 4px 4px 35px;
    font-family: 'Consolas', monospace;
    font-size: 10px;
    color: #E2E8F0;
    white-space: pre;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.context-menu.show {
    display: block;
}

.menu-item {
    padding: 10px 16px;
    color: #1F2937;
    cursor: pointer;
    font-size: 13px;
}

.menu-item:hover {
    background: #F3F4F6;
}

.menu-separator {
    height: 1px;
    background: #E5E7EB;
    margin: 4px 0;
}

/* Properties */
.properties-content {
    margin-top: 16px;
}

.properties-card {
    background: white;
    border: 1px solid #DEE2E6;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.properties-card h3 {
    color: #0D6EFD;
    font-size: 16px;
    margin-bottom: 16px;
}

.properties-card pre {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#backToProcessesBtn {
    margin-bottom: 16px;
}

/* Status Bar */
.status-bar {
    background: #0F172A;
    border-top: 1px solid #1E293B;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#statusText {
    color: #94A3B8;
    font-size: 12px;
}

.copyright {
    color: #64748B;
    font-size: 11px;
}

/* Risk Level Indicators */
.risk-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 10px;
}

.risk-indicator.high {
    background: #7F1D1D;
    color: #FECACA;
}

.risk-indicator.med {
    background: #78350F;
    color: #FDE68A;
}

.risk-indicator.low {
    background: #713F12;
    color: #FEF08A;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
