/* Remote access page */
.remote-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.remote-page h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.remote-page .subtitle {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.remote-card {
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px var(--tile-shadow);
}

.remote-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.remote-card p {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 16px;
}

.remote-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0;
    font-size: 14px;
}

.remote-row strong {
    color: var(--text-color);
}

.remote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.remote-actions-group .btn-secondary,
.remote-actions-group .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 12px;
}

.remote-actions-group .action-btn {
    width: 220px;
    max-width: 100%;
}

.remote-actions-group {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--tile-border);
}

.remote-actions-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.remote-test-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.remote-test-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    margin-left: 12px;
}

.remote-test-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary-text);
}

.test-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.remote-test-item.pending .test-icon::after {
    content: "↻";
    animation: spin 1s linear infinite;
}

.remote-test-item.ok .test-icon {
    color: var(--status-active);
}

.remote-test-item.ok .test-icon::after {
    content: "✓";
}

.remote-test-item.fail .test-icon {
    color: var(--status-danger);
}

.remote-test-item.fail .test-icon::after {
    content: "✕";
}

.remote-test-item.ok .test-label,
.remote-test-item.fail .test-label {
    color: var(--text-color);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--tile-bg);
    color: var(--text-color);
    border: 1px solid var(--tile-border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover { background: var(--bg-color); }

.remote-test-btn {
    border-color: var(--accent-color);
    color: var(--text-color);
    font-weight: 500;
}

.remote-danger-hint {
    margin-top: 12px;
    color: var(--secondary-text);
}

.remote-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.remote-status.error {
    background: rgba(220, 53, 69, 0.12);
    color: var(--status-danger);
}

.remote-status.success {
    background: rgba(40, 167, 69, 0.12);
    color: var(--status-active);
}

#remoteEnabled.remote-enabled {
    color: var(--status-active);
    font-weight: 600;
}

#remoteEnabled.remote-disabled {
    color: var(--status-danger);
    font-weight: 600;
}
