/* ESP32 SIP Phone - Web Interface Styles */ :root { --primary: #2196F3; --primary-dark: #1976D2; --success: #4CAF50; --danger: #f44336; --warning: #FF9800; --bg: #f5f5f5; --card-bg: #ffffff; --text: #333333; --text-light: #666666; --border: #e0e0e0; --shadow: 0 2px 4px rgba(0,0,0,0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; } header { background: var(--primary); color: white; padding: 1rem; text-align: center; } header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; } #status-bar { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; } .status-item { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 1rem; } nav { display: flex; background: var(--card-bg); border-bottom: 1px solid var(--border); overflow-x: auto; } .nav-btn { flex: 1; padding: 0.75rem 1rem; border: none; background: transparent; color: var(--text-light); cursor: pointer; font-size: 0.9rem; transition: all 0.2s; white-space: nowrap; } .nav-btn:hover { background: var(--bg); } .nav-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 500; } main { padding: 1rem; max-width: 800px; margin: 0 auto; } .tab-content { display: none; } .tab-content.active { display: block; } .card { background: var(--card-bg); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); } .card h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--primary); } .card h3 { font-size: 1rem; margin: 1rem 0 0.5rem; color: var(--text); } /* Forms */ .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; font-size: 0.9rem; } input[type="text"], input[type="password"], input[type="number"] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; } input:focus { outline: none; border-color: var(--primary); } .input-with-button { display: flex; gap: 0.5rem; } .input-with-button input { flex: 1; } .radio-group { display: flex; gap: 1.5rem; } .radio-group label { display: flex; align-items: center; gap: 0.25rem; font-weight: normal; } .checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; } /* Buttons */ .btn { display: inline-block; padding: 0.5rem 1.25rem; border: none; border-radius: 4px; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); } .btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border); } .btn-success { background: var(--success); color: white; } .btn-danger { background: var(--danger); color: white; } .button-group { display: flex; gap: 0.5rem; flex-wrap: wrap; } /* Volume Control */ .volume-control { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; } .volume-control input[type="range"] { flex: 1; } /* Device List */ .device-list { border: 1px solid var(--border); border-radius: 4px; margin-top: 0.5rem; } .device-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; border-bottom: 1px solid var(--border); } .device-item:last-child { border-bottom: none; } .device-info { flex: 1; } .device-name { font-weight: 500; } .device-address { font-size: 0.8rem; color: var(--text-light); font-family: monospace; } .device-actions { display: flex; gap: 0.5rem; } .device-actions .btn { padding: 0.25rem 0.75rem; font-size: 0.8rem; } .no-devices { padding: 1rem; text-align: center; color: var(--text-light); font-style: italic; } /* Scan Results */ .scan-results { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 1rem; } .scan-item { padding: 0.5rem 0.75rem; cursor: pointer; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); } .scan-item:hover { background: var(--bg); } .scan-item:last-child { border-bottom: none; } .scan-rssi { font-size: 0.8rem; color: var(--text-light); } /* Call Info */ #call-info { margin-bottom: 1rem; } #call-state { font-size: 1.1rem; font-weight: 500; } #call-remote { font-size: 1.25rem; margin: 0.5rem 0; } #call-duration { color: var(--text-light); } /* Utilities */ .hidden { display: none !important; } .hint { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; } /* Status Colors */ .status-connected { color: var(--success); } .status-disconnected { color: var(--danger); } .status-pending { color: var(--warning); } /* Responsive */ @media (max-width: 480px) { header h1 { font-size: 1.25rem; } .nav-btn { padding: 0.5rem; font-size: 0.8rem; } main { padding: 0.5rem; } .card { padding: 1rem; } }