.services-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

.services-page h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.service-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.service-status.running {
    background: var(--topic-devlog, #10b981);
    color: #fff;
}

.service-status.stopped {
    background: var(--topic-discussion, #ef4444);
    color: #fff;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-item {
    white-space: nowrap;
}

.service-log {
    background: var(--bg-code, #1a1a2e);
    border-radius: 6px;
    padding: 8px;
}

.log-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-output {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-code, #e0e0e0);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

.no-services {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 0;
}

@media (max-width: 480px) {
    .services-page {
        padding: 16px 8px;
    }

    .service-header {
        flex-wrap: wrap;
    }

    .service-meta {
        flex-direction: column;
        gap: 4px;
    }

    .meta-item {
        white-space: normal;
    }
}
