body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h1, h2 {
    color: #ffffff;
    font-weight: 300;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.card h2 {
    margin-top: 0;
}

#system-status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.status-box {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    cursor: help;
}

.status-box.running {
    background-color: #28a745;
}

.status-box.stopped {
    background-color: #dc3545;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    background-color: #2a2a2a;
}

#signals-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

#signals-list li {
    padding: 8px 5px;
    border-bottom: 1px dotted #444;
}

