/* AMC Manager - shadcn/ui inspired design system */

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --destructive: 0 84.2% 60.2%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar on mobile nav */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Transition helpers */
.sidebar-transition {
    transition: transform 0.3s ease-in-out;
}

/* shadcn-style focus rings */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

/* Loading spinner */
.spinner {
    border: 3px solid hsl(var(--border));
    border-top: 3px solid hsl(var(--foreground));
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* WhatsApp green button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1da851;
}

/* Status colors */
.status-active { color: #16a34a; }
.status-pending { color: #ca8a04; }
.status-overdue { color: #dc2626; }
.status-expired { color: #71717a; }

/* Card hover effect - shadcn subtle */
.card-hover {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-hover:hover {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border-color: hsl(240 5.9% 85%);
}

/* Ensure minimum touch targets on mobile */
@media (max-width: 768px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}

/* shadcn badge variants */
.badge-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.badge-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.badge-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.badge-default {
    background-color: #f4f4f5;
    color: #3f3f46;
    border-color: #e4e4e7;
}
