* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content {
    padding: 30px;
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Computers Grid */
.computers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.computer-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.computer-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.computer-card.online {
    border-left: 4px solid #27ae60;
}

.computer-card.offline {
    border-left: 4px solid #e74c3c;
}

.computer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.computer-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
}

.computer-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-online {
    background: #d5f4e6;
    color: #27ae60;
}

.status-offline {
    background: #fadbd8;
    color: #e74c3c;
}

.computer-info {
    font-size: 14px;
    color: #666;
}

.computer-info p {
    margin: 5px 0;
}

/* Command Panel */
.command-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.computer-selection {
    margin-bottom: 20px;
}

.form-select, .form-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.form-input {
    flex: 1;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.cmd-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.cmd-btn:hover {
    background: #2980b9;
}

.cmd-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Output Panel */
.output-panel {
    background: #2c3e50;
    border-radius: 8px;
    overflow: hidden;
}

.output-header {
    background: #34495e;
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#commandOutput {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Screenshot Viewer */
.screenshot-container {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#screenshotImage {
    max-width: 100%;
    max-height: 600px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .content {
        padding: 15px;
    }

    .computers-grid {
        grid-template-columns: 1fr;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }
}
/* Process List Styles */
.process-list-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.process-table {
    width: 100%;
    border-collapse: collapse;
}

.process-table th {
    background: #34495e;
    color: white;
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: 600;
}

.process-table td {
    padding: 8px;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.process-table tr:nth-child(even) {
    background: #f8f9fa;
}

.process-table tr:hover {
    background: #e3f2fd;
}

.process-status.running {
    color: #27ae60;
    font-weight: bold;
}

.process-status.suspended {
    color: #f39c12;
    font-weight: bold;
}

.process-status.sleeping {
    color: #3498db;
    font-weight: bold;
}

.process-name {
    font-weight: 500;
}

/* Keylog Output Styles */
#keylogOutput {
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-table {
        font-size: 12px;
    }
    
    .process-table th,
    .process-table td {
        padding: 6px 4px;
    }
    
    .process-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .process-controls .btn {
        width: 100%;
    }
}