/* style.css - Updated for Better Animations, Modals & Native App UI */

body { 
    font-family: 'Mukta', 'Inter', sans-serif; 
    background-color: #f1f5f9; 
    /* Prevent pull-to-refresh on mobile browsers */
    overscroll-behavior-y: none;
}

/* 📱 iOS WebView Smooth Scrolling Fix */
body, .custom-scrollbar, .overflow-y-auto, iframe {
    -webkit-overflow-scrolling: touch;
}

/* 📱 Remove default tap highlight color on Android/iOS */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 📱 Prevent text selection on buttons and links to feel like native app */
button, a, .sidebar-link {
    user-select: none;
    -webkit-user-select: none;
}

.sidebar-link:hover { 
    background-color: #1e3a8a; 
    color: white; 
    transition: 0.3s; 
}

/* --- Dynamic Link Styles (Assembly & Council) --- */
.assembly-link {
    display: flex;
    align-items: flex-start;
    padding: 0.625rem; /* p-2.5 */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* slate-200 */
    color: #334155; /* slate-700 */
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.assembly-link:hover {
    border-color: #6ee7b7; /* emerald-300 */
    background-color: #ecfdf5; /* emerald-50 */
    color: #065f46; /* emerald-800 */
}

.council-link {
    display: flex;
    align-items: flex-start;
    padding: 0.625rem; /* p-2.5 */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* slate-200 */
    color: #334155; /* slate-700 */
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.council-link:hover {
    border-color: #fca5a5; /* red-300 */
    background-color: #fef2f2; /* red-50 */
    color: #991b1b; /* red-800 */
}

/* --- Modal & Animations --- */
.pdf-modal-hidden { display: none !important; }
.pdf-modal-visible { 
    display: flex !important; 
    animation: fadeIn 0.2s ease-out forwards; 
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(4px); }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f8fafc; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }