body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

header h1 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 10px;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    background: #f0f0f0;
}

.nav-link:hover {
    background: #e0e0e0;
    color: #333;
}

.nav-link.active {
    background: #3498db;
    color: white;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Form Styles */
.form-section {
    background: #fff;
    padding: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* Buttons */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    padding: 12px 40px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Existing Styles (Process Manager) */
.input-group {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.stop-btn {
    background-color: #e74c3c;
    padding: 5px 10px;
    font-size: 14px;
}

.stop-btn:hover {
    background-color: #c0392b;
}

.refresh-btn {
    background-color: #27ae60;
    margin-bottom: 10px;
}

.refresh-btn:hover {
    background-color: #2ecc71;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f1f1;
}

.cmdline {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    color: #555;
}

.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        width: 95%;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    /* Responsive Table (Card View) */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 40%;
        text-align: right;
        min-height: 20px;
    }

    td:before {
        position: absolute;
        top: 12px;
        left: 10px;
        width: 35%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
        color: #555;
    }

    td:last-child {
        border-bottom: none;
    }

    .cmdline {
        .form-actions {
            text-align: center;
            margin-top: 30px;
        }

        .submit-btn {
            padding: 12px 40px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 18px;
            transition: background-color 0.3s;
        }

        .submit-btn:hover {
            background-color: #2980b9;
        }

        /* Existing Styles (Process Manager) */
        .input-group {
            display: flex;
            gap: 10px;
        }

        button {
            padding: 10px 20px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #2980b9;
        }

        .stop-btn {
            background-color: #e74c3c;
            padding: 5px 10px;
            font-size: 14px;
        }

        .stop-btn:hover {
            background-color: #c0392b;
        }

        .refresh-btn {
            background-color: #27ae60;
            margin-bottom: 10px;
        }

        .refresh-btn:hover {
            background-color: #2ecc71;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        th,
        td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: #f8f9fa;
            font-weight: 600;
        }

        tr:hover {
            background-color: #f1f1f1;
        }

        .cmdline {
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-family: monospace;
            color: #555;
        }

        .message {
            margin-top: 10px;
            padding: 10px;
            border-radius: 4px;
            display: none;
        }

        .message.success {
            display: block;
            background-color: #d4edda;
            color: #155724;
        }

        .message.error {
            display: block;
            background-color: #f8d7da;
            color: #721c24;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .container {
                padding: 10px;
                width: 95%;
            }

            header {
                flex-direction: column;
                text-align: center;
            }

            .main-nav {
                margin-top: 10px;
                width: 100%;
                justify-content: center;
            }

            .input-group {
                flex-direction: column;
            }

            .input-group button {
                width: 100%;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .form-group.full-width {
                grid-column: auto;
            }

            /* Responsive Table (Card View) */
            table,
            thead,
            tbody,
            th,
            td,
            tr {
                display: block;
            }

            thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }

            tr {
                border: 1px solid #ccc;
                margin-bottom: 10px;
                background: #fff;
                border-radius: 4px;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            }

            td {
                border: none;
                border-bottom: 1px solid #eee;
                position: relative;
                padding-left: 40%;
                text-align: right;
                min-height: 20px;
            }

            td:before {
                position: absolute;
                top: 12px;
                left: 10px;
                width: 35%;
                padding-right: 10px;
                white-space: nowrap;
                text-align: left;
                font-weight: bold;
                content: attr(data-label);
                color: #555;
            }

            td:last-child {
                border-bottom: none;
            }

            .cmdline {
                max-width: none;
                white-space: normal;
                word-break: break-all;
            }

            .stop-btn {
                width: 100%;
                margin-top: 5px;
            }
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .loading-overlay.visible {
            visibility: visible;
            opacity: 1;
        }

        .spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }