.login-card {
    max-width: 400px;
    margin: 4rem auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.service-card {
    margin: 0;
}

.service-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.service-card footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-info {
    padding: 0.5rem 0;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.badge-green { background-color: #2e7d32; }
.badge-red { background-color: #c62828; }
.badge-yellow { background-color: #f9a825; color: #333; }
.badge-blue { background-color: #1565c0; }
.badge-grey { background-color: #757575; }

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.error-text {
    color: #ef5350;
}

.nav-brand {
    text-decoration: none;
}

.log-viewer {
    background-color: #111;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.log-controls label {
    margin: 0;
}

.log-controls select {
    width: auto;
    display: inline-block;
    margin: 0;
    padding: 0.3rem 0.5rem;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.button-group button {
    width: auto;
    white-space: nowrap;
}

.system-info-bar {
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.sys-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.sys-grid div {
    font-size: 0.85rem;
    line-height: 1.4;
}

.sys-grid small {
    opacity: 0.7;
}

.logs-modal-content {
    max-width: 900px;
    width: 90vw;
    margin: auto;
}

.logs-modal-content .log-viewer {
    max-height: 60vh;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }

    .log-viewer {
        font-size: 0.7rem;
        max-height: 400px;
    }
}
