/* Selfless Service Foundation - Modern Mobile-App UI/UX CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #047857;
    --primary-dark: #064e3b;
    --primary-light: #10b981;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-orange: #ea580c;
    --dark: #0f172a;
    --gray-bg: #f8fafc;
    --bottom-bar-height: 68px;
}

/* Base App Ergonomics */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
    /* Safe padding for Mobile App Bottom Navigation Bar */
    padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 16px));
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0px;
    }
}

/* Hide scrollbars for app-like horizontal pill sliders */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism & App Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-bottom-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.glass-drawer {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Touch feedback ripple & click animation */
.touch-active:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Center Highlighted Donate App Button */
.app-donate-dock-btn {
    position: relative;
    top: -18px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    border: 3.5px solid #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-donate-dock-btn:active {
    transform: scale(0.9) translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

/* Card Transitions */
.ngo-card {
    transition: all 0.25s ease-in-out;
}

@media (hover: hover) {
    .ngo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
}

/* Progress bar fill animation */
.progress-fill {
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile App Floating Speed Dial */
.floating-whatsapp-btn {
    position: fixed;
    right: 18px;
    bottom: calc(var(--bottom-bar-height) + 16px);
    z-index: 40;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

@media (min-width: 1024px) {
    .floating-whatsapp-btn {
        bottom: 24px;
        right: 24px;
    }
}

.floating-whatsapp-btn:active {
    transform: scale(0.92);
}

/* Smooth Slide Drawers */
.drawer-backdrop {
    transition: opacity 0.3s ease;
}
.drawer-content {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Print Styling for 80G Receipts */
@media print {
    body {
        padding-bottom: 0 !important;
        background: #ffffff !important;
    }
    body * {
        visibility: hidden;
    }
    #receipt-container, #receipt-container * {
        visibility: visible;
    }
    #receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        box-shadow: none;
        border: 2px solid #047857;
    }
    .no-print, .glass-bottom-bar, .floating-whatsapp-btn {
        display: none !important;
    }
}
