/* =================================================================
   CutPro Platform v3.0 - Custom Styles
   Tailwind handles layout/components. This file adds polish.
   For production: run `npm run build` to compile Tailwind.
   ================================================================= */

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide up animation */
.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 400px;
    animation: slideUp 0.3s ease-out;
}

/* Button loading state */
button[disabled],
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #1e3a5f, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Pricing card popular glow */
.pricing-popular {
    box-shadow: 0 0 0 2px #f97316, 0 20px 40px -12px rgba(249, 115, 22, 0.25);
}

/* Status badge pulse */
.badge-pulse {
    position: relative;
}
.badge-pulse::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Data table styles */
.table-zebra tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.table-zebra tbody tr:hover {
    background-color: #f1f5f9;
}

/* Sidebar active indicator */
.sidebar-active {
    border-left: 3px solid #1e3a5f;
    background-color: #f0f4ff;
}

/* Print styles */
@media print {
    .no-print,
    nav, footer, .sidebar {
        display: none !important;
    }
    body {
        font-size: 12pt;
    }
}

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

/* License key display */
.license-key {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    user-select: all;
}

/* Form focus ring */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
