/* Custom Style Overrides for FloraMe */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

/* Apply general smooth scrolling and typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f2f8f5;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Glassmorphism Panel Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card-dark {
    background: rgba(15, 37, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Micro-Animations */
.hover-lift {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15), 0 8px 10px -6px rgba(16, 185, 129, 0.15);
}

/* Page fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Loader Spin Utility */
.loader {
    border-top-color: #10b981;
    animation: spinner 0.6s linear infinite;
}

/* Draggable polygon vertex (zone editing) */
.poly-vertex {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 3px solid #10b981;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 30;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    touch-action: none;
}

.poly-vertex:hover,
.poly-vertex:active {
    border-color: #059669;
    cursor: grabbing;
}

/* Zone list dragging state */
.zone-item.dragging {
    opacity: 0.5;
    border-style: dashed;
}

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