* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #root { height: 100%; width: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOut { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes sla-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

.animate-slide-in { animation: slideIn 0.3s ease-out; }
.animate-fade-in { animation: fadeIn 0.25s ease-out; }
.animate-pulse-ring { animation: pulse-ring 1.5s infinite; }
.animate-sla-pulse { animation: sla-pulse 1s infinite; }
.animate-toast-in { animation: toast-in 0.4s ease-out; }
.animate-toast-out { animation: toast-out 0.3s ease-in; }

.sidebar-transition { transition: width 0.25s ease, min-width 0.25s ease; }
.ticket-row:hover { background: #F8FAFC; }

.kanban-col { min-height: 200px; }
.kanban-card { cursor: grab; transition: box-shadow 0.15s, transform 0.15s; }
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.5; transform: rotate(2deg); }
.kanban-col.drag-over { background: #EEF2FF; }

.msg-inbound { border-left: 3px solid #CBD5E1; }
.msg-outbound { border-left: 3px solid #818CF8; }
.msg-note { border: 2px dashed #F59E0B; background: #FFFBEB; }
.msg-system { font-style: italic; color: #94A3B8; }

input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 2px rgba(79,70,229,0.3); }

.dial-btn { transition: all 0.1s; }
.dial-btn:active { transform: scale(0.92); }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}