/* public/assets/css/tools/life/ar-measure.css */

.arm-wrapper { padding: 32px; position: relative; }
.arm-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.arm-title { margin: 0 0 10px 0; font-size: 1.6rem; color: var(--text-main); }
.arm-subtitle { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

.arm-btn-primary { width: 100%; max-width: 360px; margin: 0 auto; display: block; padding: 16px; background: var(--primary-color); color: #fff; border: none; border-radius: var(--radius-lg); font-size: 1.2rem; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3); }
.arm-btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.arm-nosupport-warning { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; padding: 16px; border-radius: var(--radius-md); text-align: center; font-weight: 600; line-height: 1.6; margin-bottom: 24px; }
[data-theme="dark"] .arm-nosupport-warning { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }

.arm-logs-panel { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; margin-top: 32px; }
.arm-logs-title { font-size: 1.1rem; color: var(--text-main); margin-bottom: 16px; border-bottom: 1px dashed var(--border-color); padding-bottom: 12px; }
.arm-logs-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.arm-logs-list li { padding: 12px 16px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; color: var(--text-main); font-family: monospace; font-size: 1.05rem; }
.arm-log-empty { color: var(--text-muted) !important; text-align: center; display: block !important; border: none !important; font-family: inherit !important; }
.arm-log-time { font-size: 0.8rem; color: var(--text-muted); }

/* --- 沉浸式 AR UI 悬浮层 --- */
.arm-ui-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 99999;
    pointer-events: none; /* 让事件穿透到底层 WebXR Canvas */
    display: flex; flex-direction: column; justify-content: space-between;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.arm-status-bar {
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    color: #fff; text-align: center; padding: 12px; font-size: 0.95rem; font-weight: 600;
    margin: env(safe-area-inset-top, 20px) 20px 0 20px;
    border-radius: 30px;
}
.arm-status-bar.ready { background: rgba(16, 185, 129, 0.8); }

.arm-dashboard {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    margin: 0 auto auto auto; margin-top: 20px;
    padding: 16px 32px; border-radius: 24px; text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); pointer-events: auto;
}
.arm-dist-value { font-size: 3.5rem; font-weight: 800; color: var(--primary-color); font-family: monospace; line-height: 1; }
.arm-unit-select { margin-top: 8px; border: 1px solid #cbd5e1; background: transparent; padding: 4px 12px; border-radius: 12px; font-size: 1rem; font-weight: 600; outline: none; color: #334155; }

.arm-controls {
    display: flex; justify-content: space-evenly; align-items: center;
    padding: 20px; margin-bottom: env(safe-area-inset-bottom, 20px);
    pointer-events: auto;
}

.arm-btn-main {
    background: var(--primary-color); color: #fff; border: none; border-radius: 40px;
    padding: 16px 32px; font-size: 1.2rem; font-weight: bold; box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    transition: 0.2s;
}
.arm-btn-main:disabled { background: #94a3b8; box-shadow: none; opacity: 0.8; }
.arm-btn-round { width: 56px; height: 56px; border-radius: 50%; border: none; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; }

.arm-btn-exit {
    position: absolute; top: env(safe-area-inset-top, 20px); right: 20px;
    width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5); color: #fff; font-size: 1.2rem; pointer-events: auto; backdrop-filter: blur(4px);
}