.term-wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f1f5f9; min-height: 100vh; padding: 40px; box-sizing: border-box; }
.term-state { display: none; }
.term-state.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Idle Screen */
.term-idle-card { background: #fff; max-width: 500px; margin: 100px auto; padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); text-align: center; border: 1px solid #e2e8f0; }
.term-qr-box { background: #f8fafc; border: 2px dashed #cbd5e1; padding: 30px; border-radius: 12px; margin-top: 30px; }

/* Workspace */
.term-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid #e2e8f0; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Dashboard Tiles */
.term-tile { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s; }
.term-tile:hover { transform: translateY(-5px); border-color: #0ea5e9; box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15); }
.term-tile-icon { font-size: 2.5em; margin-bottom: 15px; }
.term-tile h3 { margin: 0 0 10px 0; color: #0f172a; }
.term-tile p { margin: 0; color: #64748b; font-size: 0.9em; }

/* General UI Elements */
.term-card { background: #fff; border-radius: 12px; padding: 25px; border: 1px solid #e2e8f0; }
.term-card h3 { margin-top:0; border-bottom:1px solid #f1f5f9; padding-bottom:15px; }
.term-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; margin-bottom: 15px; box-sizing: border-box; font-size: 1em; }
.term-btn-primary { background: #0ea5e9; color: #fff; border: none; padding: 12px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; }
.term-btn-danger { background: #ef4444; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; }
.term-btn-secondary { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; padding: 8px 15px; border-radius: 8px; cursor: pointer; }

/* --- C37 Toasts --- */
.c37-toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.c37-toast { background: #1e293b; color: #fff; padding: 15px 25px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); font-weight: 600; font-size: 1em; opacity: 0; transform: translateX(50px); animation: slideInRight 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.c37-toast.success { border-left: 5px solid #10b981; }
.c37-toast.error { border-left: 5px solid #ef4444; }
.c37-toast.warning { border-left: 5px solid #f59e0b; }
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { to { opacity: 0; transform: translateX(50px); } }

/* --- C37 Modal Confirm --- */
.c37-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.7); z-index: 10000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); animation: fadeIn 0.2s forwards; }
.c37-modal-box { background: #fff; padding: 30px; border-radius: 16px; width: 90%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); text-align: center; }
.c37-modal-box h3 { margin: 0 0 15px 0; color: #0f172a; font-size: 1.4em; }
.c37-modal-box p { font-size: 1.1em; color: #334155; margin-bottom: 25px; line-height: 1.5; white-space: pre-wrap; }
.c37-modal-actions { display: flex; gap: 15px; }
.c37-modal-btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1em; transition: background 0.1s; }
.c37-modal-btn.cancel { background: #f1f5f9; color: #64748b; }
.c37-modal-btn.cancel:active { background: #e2e8f0; }
.c37-modal-btn.confirm { background: #ef4444; color: #fff; }
.c37-modal-btn.confirm:active { background: #dc2626; }

/* POS Specific Button Hover/Active CSS */
.c37-pos-btn {
    color: #fff; border: none; padding: 25px 10px; border-radius: 12px; font-size: 1.2em; font-weight: bold;
    cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s, box-shadow 0.1s;
}
.c37-pos-btn:active { transform: scale(0.95); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }