/* ============================================
   CUSTOMERS CRM - STYLESHEET
   ============================================ */

/* GLOBAL UTILITIES */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.icon { width: 20px; height: 20px; stroke-width: 1.8; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }

/* THEME TOGGLE (easily removable) */
.theme-toggle-btn { position: relative; width: 44px; height: 24px; border-radius: 9999px; cursor: pointer; border: none; transition: background-color 0.3s; }
.theme-toggle-btn .toggle-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.dark .theme-toggle-btn { background-color: #334155; }
.theme-toggle-btn { background-color: #cbd5e1; }
.dark .theme-toggle-btn .toggle-knob { transform: translateX(20px); }
.theme-toggle-btn .sun-icon { display: block; }
.theme-toggle-btn .moon-icon { display: none; }
.dark .theme-toggle-btn .sun-icon { display: none; }
.dark .theme-toggle-btn .moon-icon { display: block; }

/* GOOGLE PLACES AUTOCOMPLETE */
.pac-container { z-index: 99999 !important; border-radius: 12px; border: 1px solid rgba(148,163,184,0.25); overflow: hidden; }

/* MODAL ANIMATIONS */
.fade-in { animation: fadeIn 0.15s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pop-in { animation: popIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes popIn { from { opacity: 0; transform: scale(0.97) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* STAR RATING */
.star-btn { width: 32px; height: 32px; border-radius: 9999px; border: 1px solid rgb(226 232 240); display: inline-flex; align-items: center; justify-content: center; background: white; color: rgb(148 163 184); transition: all 0.18s ease; cursor: pointer; }
.star-btn.active, .star-btn:hover { color: #facc15; border-color: rgba(234,179,8,0.45); background: rgba(254,249,195,0.6); }
.dark .star-btn { background: #0b0d10; border-color: #272a30; }
html:not(.dark) .star-btn.active, html:not(.dark) .star-btn.active:hover { color: #ca8a04; border-color: rgba(234,179,8,0.5); background: rgba(254,249,195,0.7); }
html:not(.dark) .star-btn.active i svg, html:not(.dark) .star-btn.active svg { fill: currentColor; }
html:not(.dark) .star-btn.active i { fill: currentColor; }

/* VOICE FILL */
.voice-active { box-shadow: 0 0 0 3px rgba(37,99,235,0.22); border-color: #2563eb !important; }
.voice-field-armed { box-shadow: 0 0 0 2px rgba(37,99,235,0.15) inset; border-color: rgba(37,99,235,0.55) !important; }

/* CRM SPECIFIC */
.custom-checkbox { cursor: pointer; accent-color: #3b8030; transition: all 0.2s; }
.dark .custom-checkbox { accent-color: #3b82f6; }

/* Phone-number hover actions (Call / Text) — compact on desktop, finger-friendly on touch devices (iPad) */
@media (hover: none) and (pointer: coarse) {
    .phone-action-btn {
        font-size: 13px !important;
        padding: 8px 14px !important;
        min-width: 64px;
    }
}
