/* 
 * SPA Styles 
 */

/* Record Count */
.record-count {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.pagination button {
    margin-right: 5px;
}

.pagination .page-total {
    margin-left: 10px;
    font-size: 0.9em;
}

/* Record Form */
.spa-record-form textarea {
    width: 100%;
    font-family: var(--font-mono);
    min-height: 200px;
}

.spa-record-footer-field {
    display: inline-block;
    padding: 4px 8px;
    color: #666;
}

/* Filter Chips */
.spa-filter-chip {
    cursor: pointer;
    margin-right: 8px;
    display: inline-block;
    padding: 2px 8px;
    background: #eee;
    border-radius: 4px;
    font-size: 0.9em;
}

/* API : Services UI */

.api-services {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
	padding: 14px;
	margin: 14px 0;
}

.status-monitor {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    background-color: #ff9800; /* Amber */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.status-monitor::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #fff;
    color: #ff9800;
    border-radius: 50%;
    font-size: 14px;
}

.network-mode-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.network-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.network-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.network-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.network-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .network-toggle-slider {
    background-color: #2e7d32;
}
input:checked + .network-toggle-slider:before {
    transform: translateX(26px);
}

.network-mode-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #444;
}

.network-mode-badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.network-mode-badge.network {
    background: #e8f5e9;
    color: #2e7d32;
}

.network-mode-badge.local {
    background: #fff3e0;
    color: #ef6c00;
}

.api-services-list {
    margin-top: 10px;
    font-size: 0.8em;
    color: #888;
}

.api-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.api-service-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.api-service-dot.running {
    background-color: #4caf50;
}
.api-service-dot.stopped {
    background-color: #f44336;
}

.api-service-text {
    /* placeholder for any future text styles */
}

.api-service-run-btn {
    padding: 2px 8px;
    font-size: 0.85em;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #444;
}
.api-service-run-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #999;
}
.api-service-run-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

