
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f4f4f4;
}

h1, h2 {
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

a {
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.error {
    color: red;
    text-align: center;
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-size: 24px;
    font-weight: 600;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
}

.status-dot.connected {
    background: #27ae60;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.controls {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.content {
    padding: 30px;
}

.info-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    text-align: center;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
}

.process-tree {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.tree-header {
    background: #f1f3f4;
    padding: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 15px;
}

.process-item {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
}

.process-item:hover {
    background: #f8f9fa;
}

.process-row {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    cursor: pointer;
}

.process-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expand-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

.process-info {
    font-weight: 500;
    color: #2c3e50;
}

.process-pid {
    font-size: 12px;
    color: #6c757d;
    margin-left: 5px;
}

.usage-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.cpu-usage {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.memory-usage {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.usage-text {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-top: 3px;
}

.children {
    background: #fafbfc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.children.expanded {
    max-height: none;
}

.child-process {
    padding: 10px 15px 10px 45px;
    border-bottom: 1px solid #f1f3f4;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    background: #fafbfc;
}

.child-process:hover {
    background: #f1f3f4;
}


.back{
    position: absolute;
    top: 3rem;
    
}

