/* Noor & Hoor Properties - WhatsApp Marketing System */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Sidebar */
.sidebar { transition: width 0.3s ease, transform 0.3s ease; }
.sidebar-overlay { transition: opacity 0.3s ease; }

/* Animation */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideIn { from { transform:translateX(-20px); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
@keyframes spin { to { transform:rotate(360deg); } }
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-in { animation: slideIn 0.3s ease-out; }
.animate-pulse-slow { animation: pulse 2s ease-in-out infinite; }

/* Status badges */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f3f4f6; color: #4b5563; }
.badge-blocked { background: #fef2f2; color: #991b1b; }
.badge-opted_out { background: #fefce8; color: #854d0e; }
.badge-draft { background: #e0e7ff; color: #3730a3; }
.badge-scheduled { background: #fef3c7; color: #92400e; }
.badge-running { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-failed { background: #fef2f2; color: #991b1b; }
.badge-paused { background: #fde68a; color: #78350f; }
.badge-queued { background: #e0e7ff; color: #3730a3; }
.badge-sending { background: #fef3c7; color: #92400e; }
.badge-sent { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-read { background: #dcfce7; color: #166534; }
.badge-undelivered { background: #fee2e2; color: #991b1b; }
.badge-marketing { background: #ede9fe; color: #5b21b6; }
.badge-utility { background: #dbeafe; color: #1e40af; }
.badge-notification { background: #fef3c7; color: #92400e; }
.badge-authentication { background: #fce7f3; color: #9d174d; }

/* WhatsApp message bubble */
.wa-bubble-out { background: #DCF8C6; border-radius: 8px 0 8px 8px; }
.wa-bubble-in { background: white; border-radius: 0 8px 8px 8px; }

/* Modal */
.modal-overlay { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }

/* Table hover */
.table-row:hover { background-color: #f8fafc; }

/* Loading spinner */
.spinner { width: 24px; height: 24px; border: 3px solid #e2e8f0; border-top-color: #25D366; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* Toast notification */
.toast { animation: fadeIn 0.3s ease-out; }

/* Responsive utilities */
@media (max-width: 768px) {
  .sidebar-mobile-hidden { transform: translateX(-100%); }
  .sidebar-mobile-visible { transform: translateX(0); }
}

/* Input focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* Button hover effects */
.btn-wa { background: #25D366; color: white; transition: all 0.2s; }
.btn-wa:hover { background: #128C7E; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* Card hover */
.card-hover { transition: all 0.2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* Gradient header */
.gradient-header { background: linear-gradient(135deg, #075E54 0%, #128C7E 50%, #25D366 100%); }

/* Tab styling */
.tab-active { border-bottom: 2px solid #25D366; color: #075E54; font-weight: 600; }
.tab-inactive { border-bottom: 2px solid transparent; color: #6b7280; }
.tab-inactive:hover { color: #374151; border-bottom-color: #d1d5db; }
