/* ==============================================================
   Imaan Online - Optimized Tailwind CSS (Header Only)
============================================================== */

/* 1. Base Reset */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; }
html { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { text-decoration: inherit; color: inherit; }
button { background-color: transparent; background-image: none; padding: 0; cursor: pointer; }
svg, img { display: block; vertical-align: middle; } /* img tag added for new logo */

/* 2. Layout & Sizing */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.h-24 { height: 6rem; }
.h-20 { height: 5rem; }
.h-12 { height: 3rem; }
.h-10 { height: 2.5rem; } .w-10 { width: 2.5rem; }
.h-6 { height: 1.5rem; } .w-6 { width: 1.5rem; }
.h-5 { height: 1.25rem; } .w-5 { width: 1.25rem; }
.h-4 { height: 1rem; } .w-4 { width: 1rem; }
.w-56 { width: 14rem; }
.w-auto { width: auto; }
.object-contain { object-fit: contain; }

/* 3. Flexbox & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }

/* 4. Typography */
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-normal { letter-spacing: 0em; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.whitespace-nowrap { white-space: nowrap; }
.block { display: block; }
.hidden { display: none; }

/* 5. Positioning & Spacing */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }
.left-0 { left: 0; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.pl-4 { padding-left: 1rem; }

/* 6. Visuals & Borders */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.border-t { border-top-width: 1px; border-color: #e5e7eb; }
.ring-1 { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* 7. Colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-200 { background-color: #e5e7eb; }
.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-emerald-600 { color: #DCA427; }
.text-emerald-700 { color: #5E2A5D; }

/* 8. Hover States */
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:text-emerald-600:hover { color: #5E2A5D; }

/* 9. Transitions */
.transition { transition-property: color, background-color, border-color, opacity, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-200 { transition-duration: 200ms; }

/* 10. Dropdown Logic */
.opacity-0 { opacity: 0; }
.invisible { visibility: hidden; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }

/* 11. Responsive Breakpoints */
@media (min-width: 640px) { 
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } 
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
}
@media (min-width: 768px) { 
    .md\:flex { display: flex; } 
    .md\:hidden { display: none; } 
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:h-20 { height: 5rem; }
    .md\:h-28 { height: 7rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:ml-3 { margin-left: 0.75rem; }
    .md\:ml-4 { margin-left: 1rem; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .md\:tracking-normal { letter-spacing: 0em; }
    .md\:whitespace-nowrap { white-space: nowrap; }
    .md\:leading-normal { line-height: 1.5; }
    .md\:block { display: block; }
}
@media (min-width: 1024px) { 
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; } 
    .lg\:h-24 { height: 6rem; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* 12. Dark Mode Theme */
html.dark .dark\:bg-gray-900 { background-color: #111827; }
html.dark .dark\:bg-gray-800 { background-color: #1f2937; }
html.dark .dark\:bg-gray-700 { background-color: #374151; }
html.dark .dark\:text-gray-100 { color: #f3f4f6; }
html.dark .dark\:text-gray-300 { color: #d1d5db; }
html.dark .dark\:text-emerald-400 { color: #E5A92C; }
html.dark .dark\:hover\:bg-gray-700:hover { background-color: #374151; }
html.dark .dark\:hover\:text-emerald-400:hover { color: #E5A92C; }
html.dark .dark\:border-gray-700 { border-color: #374151; }

/* 13. Custom Theme Colors (Logo Text) */
.theme-text-golden { color: #DCA427 !important; }
.theme-text-purple { color: #5E2A5D !important; }
html.dark .theme-text-golden { color: #E5A92C !important; }
html.dark .theme-text-purple { color: #D187D6 !important; }

/* 14. Login / Sign Up Button Contrast (Updated for Invert Hover) */
.theme-btn-bg { background-color: #5E2A5D !important; color: #ffffff !important; }
/* Light mode hover: Purple changes to Golden, text to dark */
.theme-btn-bg:hover { background-color: #DCA427 !important; color: #111827 !important; }

html.dark .theme-btn-bg { background-color: #E5A92C !important; color: #111827 !important; }
/* Dark mode hover: Golden changes to Purple, text to white */
html.dark .theme-btn-bg:hover { background-color: #5E2A5D !important; color: #ffffff !important; }

/* 15. Header Elements & Button Styling */
.theme-btn-large {
    padding: 0.4rem 3.5rem !important; 
    font-size: 1.125rem !important; 
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2 !important; 
}
/* Naya Dashboard Button Style */
.dashboard-btn-style {
    padding: 0.4rem 1.5rem !important; 
    font-size: 0.9rem !important;
    white-space: nowrap;
}

.theme-menu-hover { transition: all 0.3s ease; border-radius: 0.375rem; }
.theme-menu-hover:hover { background-color: #5E2A5D !important; color: #ffffff !important; }
html.dark .theme-menu-hover:hover { background-color: #E5A92C !important; color: #111827 !important; }

/* 16. Visibility Fixes (Dark Mode) */
html.dark .legal-visibility-fix { color: #f3f4f6 !important; }
html.dark .theme-menu-hover:hover.legal-visibility-fix { color: #111827 !important; }
html.dark .theme-toggle-fix { color: #f3f4f6 !important; }
html.dark .theme-toggle-fix:hover { color: #E5A92C !important; }

/* 17. Bottom Shade & Mobile Adjustment */
.theme-header-border {
    border-bottom: 2px solid #5E2A5D !important;
    box-shadow: 0 4px 10px rgba(94, 42, 93, 0.15) !important;
}
html.dark .theme-header-border {
    border-bottom: 2px solid #E5A92C !important;
    box-shadow: 0 4px 10px rgba(229, 169, 44, 0.15) !important;
}

/* Corrected Mobile Responsiveness */
@media (max-width: 767px) {
    .theme-btn-large {
        padding: 0.25rem 0.6rem !important; 
        font-size: 0.65rem !important; 
        min-width: 60px;
    }
    .dashboard-btn-style {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.6rem !important;
    }
}