@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   GLOBAL RESET - Fix overflow
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body {
    font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   BRAND COLORS
   ============================================ */
.brand-green {
    background-color: #047857;
}

.brand-green-gradient {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
}

.card-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.09), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
}

/* ============================================
   MOBILE OVERRIDES
   ============================================ */
@media (max-width: 640px) {
    body {
        font-size: 13px !important;
    }
    
    .max-w-7xl {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    header, nav, section, main, footer {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Hide potential overflow elements */
    .overflow-x-auto {
        overflow-x: auto !important;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   SCROLLBAR HIDE
   ============================================ */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body * { visibility: hidden; }
    #invoice-area, #invoice-area * { visibility: visible; }
    #invoice-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }
    .no-print { display: none !important; }
}