/* C:\Users\Nargis\Desktop\Text Repeater Updated Version\site.css */

/* --- Import Google Fonts for a Premium & Modern Aesthetic --- */

/* --- Base Rules & Typography Reset --- */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b; /* slate-800 */
    background-color: #f8fafc; /* slate-50 */
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    line-height: 1.6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global button reset to remove default browser styling (ugly borders and dark outlines) */
button {
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

input, textarea, select, button {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

textarea, input[type="text"], input[type="number"], select {
    padding: 0.75rem 1rem !important;
}

/* --- Base Layout --- */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* ==========================================================================
   Base Utility Classes (Mobile First - Must come BEFORE Media Queries)
   ========================================================================== */

/* Display & Flexbox */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }

/* Width & Heights */
.w-full { width: 100%; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.h-16 { height: 4rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem !important; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-grow { flex-grow: 1 !important; }
.rounded-full { border-radius: 9999px !important; }
.min-w-\[200px\] { min-width: 200px; }

/* Margins & Paddings */
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.pr-8 { padding-right: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Colors & Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f8fafc; }
.bg-gray-100 { background-color: #f1f5f9 !important; }
.bg-gray-900 { background-color: #0f172a; } /* Slate-900 for modern dark theme */
.bg-indigo-50 { background-color: #eef2ff; } /* Soft theme color */
.bg-green-600 { background-color: #22c55e; } /* WhatsApp Green */
.bg-gray-200 { background-color: #f1f5f9; }

.text-white { color: #ffffff !important; }
.text-gray-300 { color: #cbd5e1 !important; } /* slate-300 */
.text-gray-400 { color: #94a3b8 !important; }
.text-gray-500 { color: #64748b !important; }
.text-gray-600 { color: #475569 !important; }
.text-gray-700 { color: #334155 !important; }
.text-gray-800 { color: #1e293b !important; }
.text-indigo-600 { color: #4f46e5 !important; }
.text-indigo-700 { color: #4338ca !important; }
.text-indigo-800 { color: #3730a3 !important; }
.text-blue-500 { color: #3b82f6 !important; }
.text-pink-500 { color: #ec4899 !important; }
.text-green-600 { color: #16a34a !important; }

/* Font Weights & Typography */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.opacity-90 { opacity: 0.9; }
.text-center { text-align: center; }
.align-middle { vertical-align: middle; }
.leading-tight { line-height: 1.25; }
.underline { text-decoration: underline; }

/* Tailwind-equivalent font-size classes */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }

/* Borders & Rounding & Shadows */
.border { border: 1px solid #e2e8f0; }
.border-gray-300 { border-color: #cbd5e1; }
.border-gray-800 { border-color: #1e293b; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.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); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Transitions & Focus states */
.transition { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { transition-duration: 300ms; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4); }
.focus\:ring-indigo-500:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4); }
.focus\:ring-green-500:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4); }

.relative { position: relative; }
.absolute { position: absolute; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.pointer-events-none { pointer-events: none; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
.fill-current { fill: currentColor; }

/* Interactive Hover States */
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }
.hover\:bg-green-700:hover { background-color: #16a34a; }
.hover\:bg-gray-300:hover { background-color: #cbd5e1; }
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:text-pink-400:hover { color: #f472b6 !important; }
.hover\:text-indigo-600:hover { color: #4f46e5 !important; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* ==========================================================================
   Responsive Media Queries (Must come AFTER Base Utility Classes)
   ========================================================================== */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-1\/2 { width: 50% !important; }
    .md\:w-1\/3 { width: 33.333333% !important; }
    .md\:w-2\/3 { width: 66.666667% !important; }
    .md\:w-1\/4 { width: 25% !important; }
    .md\:mb-0 { margin-bottom: 0 !important; }
    .md\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .md\:py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .md\:text-5xl { font-size: 3rem !important; }
    .md\:text-xl { font-size: 1.25rem !important; }
    .md\:text-3xl { font-size: 1.875rem !important; }
    .md\:p-8 { padding: 2rem !important; }
    
    /* Hide desktop 'All Tools' navigation item */
    nav .hidden.md\:flex a[href*="#tools"],
    nav a[href*="#tools"] {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* --- Customized Components --- */

/* SVG Icons alignment and size */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Force solid social icons (Pinterest, etc.) in footer and social links */
.social-link svg,
.footer-column .flex a svg,
.footer-column ul li a svg {
    fill: currentColor !important;
    stroke: none !important;
}

/* Navigation bar */
.bg-white.shadow-sm {
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.logo svg {
    margin-right: 0.25rem;
}

/* User Custom Styles */
.hero-pattern {
    background-color: #4f46e5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 3rem 0;
}

.tool-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    text-align: left;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary {
    background-color: #4f46e5 !important;
    background: #4f46e5 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #4f46e5 !important;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #4338ca !important;
    background: #4338ca !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
}

.btn-secondary {
    background-color: #eef2ff;
    color: #4f46e5 !important;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e0e7ff;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.content-section {
    padding: 4rem 0;
}

.content-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #4f46e5;
    font-size: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form layouts styling */
textarea {
    resize: vertical;
    font-family: 'Inter', ui-sans-serif, sans-serif;
}

/* Footer layout (Fully aligned side-by-side with 4 columns on desktop) */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-column {
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-column {
        width: 25% !important;
        margin-bottom: 0;
        padding-right: 1.5rem;
    }
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #cbd5e1;
    transition: color 0.15s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #1e293b;
    color: #cbd5e1 !important;
    transition: background-color 0.2s, color 0.2s;
}

.social-link:hover {
    background-color: #4f46e5;
    color: #ffffff !important;
}

.footer border-t {
    border-color: #1e293b;
}

/* ==========================================================================
   Above-The-Fold Tool Spacing & Padding Overrides (Minimalist & Transparent)
   ========================================================================== */
.hero-pattern, 
.whatsapp-gradient, 
.instagram-gradient, 
.snapchat-gradient, 
.youtube-gradient, 
.love-gradient,
.gradient-bg,
[class*="bg-gradient-to-"],
header[class*="bg-gradient-"],
section[class*="bg-gradient-"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #334155 !important; /* slate-700 */
    padding-top: 1.5rem !important;
    padding-bottom: 0.25rem !important;
    box-shadow: none !important;
}

/* Force headings in hero to be dark, properly sized and have minimal margin */
.hero-pattern h1, 
.whatsapp-gradient h1, 
.instagram-gradient h1, 
.snapchat-gradient h1, 
.youtube-gradient h1, 
.love-gradient h1,
.gradient-bg h1,
[class*="bg-gradient-to-"] h1,
header[class*="bg-gradient-"] h1,
section[class*="bg-gradient-"] h1 {
    color: #0f172a !important; /* slate-900 */
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
}

@media (min-width: 768px) {
    .hero-pattern h1, 
    .whatsapp-gradient h1, 
    .instagram-gradient h1, 
    .snapchat-gradient h1, 
    .youtube-gradient h1, 
    .love-gradient h1,
    .gradient-bg h1,
    [class*="bg-gradient-to-"] h1,
    header[class*="bg-gradient-"] h1,
    section[class*="bg-gradient-"] h1 {
        font-size: 1.875rem !important;
    }
}

/* Force paragraphs in hero to be dark, small, and tight */
.hero-pattern p, 
.whatsapp-gradient p, 
.instagram-gradient p, 
.snapchat-gradient p, 
.youtube-gradient p, 
.love-gradient p,
.gradient-bg p,
[class*="bg-gradient-to-"] p,
header[class*="bg-gradient-"] p,
section[class*="bg-gradient-"] p,
.tool-container p {
    color: #64748b !important; /* slate-500 */
    font-size: 1rem !important;
    opacity: 1 !important;
    margin-bottom: 0.5rem !important;
    max-width: 42rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.5 !important;
}

#main-tool,
#text-repeater,
.py-16,
.py-12,
section.py-12,
section.py-16,
main section:first-of-type {
    padding-top: 0.75rem !important;
    padding-bottom: 3rem !important;
}

/* Make sure textareas and cards look great and have correct font sizes */
textarea, input, select, button {
    font-size: 0.95rem !important;
}

label {
    font-size: 0.95rem !important;
}

/* ==========================================================================
   Sidebar & Mobile Bottom Navigation Layout CSS overrides
   ========================================================================== */

/* Main layout grid for desktop */
@media (min-width: 1024px) {
    .main-layout-grid {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 2rem;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.5rem;
        align-items: start;
    }
    
    .sidebar-menu {
        display: block !important;
        position: sticky;
        top: 2rem;
        padding-top: 1.5rem;
        border-right: 1px solid #e2e8f0;
        padding-right: 1.5rem;
        min-height: calc(100vh - 120px);
    }

    /* Removed explore tools from layout grid since it is hidden globally */
    
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile responsive layout */
@media (max-width: 1023px) {
    .main-layout-grid {
        display: block;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .sidebar-menu {
        display: none !important;
    }
}

/* Sidebar Menu Elements styling */
.sidebar-title {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #64748b !important; /* slate-500 */
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem !important;
    padding-left: 0.75rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.25rem;
}

.sidebar-list li a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem !important;
    font-weight: 500;
    color: #475569 !important; /* slate-600 */
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}

.sidebar-list li a:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #1e293b !important; /* slate-800 */
    text-decoration: none !important;
}

.sidebar-list li a.active {
    background-color: #e0e7ff; /* indigo-100 */
    color: #4f46e5 !important; /* indigo-600 */
    font-weight: 600;
}

/* Sticky Mobile Bottom Navigation styles */
/* Color Utility Overrides & Extensions for Buttons and Inputs */
.bg-indigo-600 { background-color: #4f46e5 !important; }
.hover\:bg-indigo-700:hover { background-color: #4338ca !important; }

.bg-green-50 { background-color: #f0fdf4 !important; }
.bg-green-100 { background-color: #dcfce7 !important; }
.bg-green-500 { background-color: #22c55e !important; }
.bg-green-600 { background-color: #16a34a !important; }
.bg-green-700 { background-color: #15803d !important; }
.hover\:bg-green-600:hover { background-color: #16a34a !important; }
.hover\:bg-green-700:hover { background-color: #15803d !important; }
.text-green-500 { color: #22c55e !important; }
.text-green-600 { color: #16a34a !important; }
.text-green-700 { color: #15803d !important; }
.focus\:border-green-500:focus { border-color: #22c55e !important; }
.focus\:ring-green-500:focus { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4) !important; }

.bg-purple-50 { background-color: #faf5ff !important; }
.bg-purple-100 { background-color: #f3e8ff !important; }
.bg-purple-600 { background-color: #9333ea !important; }
.hover\:bg-purple-700:hover { background-color: #7e22ce !important; }
.hover\:bg-purple-50:hover { background-color: #faf5ff !important; }
.text-purple-700 { color: #7e22ce !important; }
.text-purple-500 { color: #a855f7 !important; }
.border-purple-500 { border-color: #a855f7 !important; }
.focus\:border-purple-500:focus { border-color: #a855f7 !important; }
.focus\:ring-purple-500:focus { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4) !important; }

.bg-yellow-50 { background-color: #fefce8 !important; }
.bg-yellow-100 { background-color: #fef9c3 !important; }
.text-yellow-700 { color: #a16207 !important; }
.text-yellow-800 { color: #854d0e !important; }
.focus\:border-yellow-400:focus { border-color: #facc15 !important; }
.focus\:ring-yellow-200:focus { box-shadow: 0 0 0 3px rgba(254, 240, 138, 0.4) !important; }
.focus\:ring-yellow-400:focus { box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.4) !important; }

.bg-red-50 { background-color: #fef2f2 !important; }
.bg-red-100 { background-color: #fee2e2 !important; }
.bg-red-600 { background-color: #dc2626 !important; }
.hover\:bg-red-700:hover { background-color: #b91c1c !important; }
.text-red-700 { color: #b91c1c !important; }
.text-red-800 { color: #991b1b !important; }
.focus\:border-red-500:focus { border-color: #ef4444 !important; }
.focus\:ring-red-200:focus { box-shadow: 0 0 0 3px rgba(254, 202, 202, 0.4) !important; }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4) !important; }

.bg-pink-50 { background-color: #fdf2f8 !important; }
.bg-pink-100 { background-color: #fce7f3 !important; }
.bg-pink-600 { background-color: #db2777 !important; }
.hover\:bg-pink-700:hover { background-color: #be185d !important; }
.text-pink-700 { color: #be185d !important; }
.focus\:border-pink-500:focus { border-color: #ec4899 !important; }
.focus\:ring-pink-500:focus { box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.4) !important; }

.bg-blue-50 { background-color: #eff6ff !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.text-blue-700 { color: #1d4ed8 !important; }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4) !important; }

/* Hide Related/Explore Tools section globally on all devices */
#tools {
    display: none !important;
}

/* WhatsApp Hero visual polish: hide preview mockup and center text */
.whatsapp-gradient .flex-col.md\:flex-row > div:nth-child(2) {
    display: none !important;
}
.whatsapp-gradient .flex-col.md\:flex-row > div:first-child {
    width: 100% !important;
    padding-right: 0 !important;
    text-align: center !important;
}
.whatsapp-gradient .flex-col.md\:flex-row > div:first-child h1,
.whatsapp-gradient .flex-col.md\:flex-row > div:first-child p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* WhatsApp Share Button visual styling fix */
#whatsappShareBtn,
#shareWhatsappBtn,
#shareWhatsappButton {
    padding: 0.75rem 2.25rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important; /* Capsule shaped pill button */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    width: auto !important;
    margin: 0.5rem auto !important;
}
#whatsappShareBtn:disabled,
#shareWhatsappBtn:disabled,
#shareWhatsappButton:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

/* --- Fix card containers on pages using tool-container class (e.g. Instagram page) --- */
.page-content-area div.tool-container {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

/* --- Compress spacing between H1/Hero and first section/tool container --- */
.page-content-area header,
.page-content-area section:first-of-type {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.page-content-area header p {
    margin-bottom: 0.5rem !important;
}

/* --- Missing Button Hover Utilities & Colors --- */
.hover\:bg-red-100:hover {
    background-color: #fee2e2 !important;
}
.hover\:bg-green-100:hover {
    background-color: #dcfce7 !important;
}
.hover\:bg-purple-100:hover {
    background-color: #f3e8ff !important;
}
.text-purple-600 {
    color: #9333ea !important;
}
.text-purple-600:hover {
    color: #7e22ce !important;
}

/* --- Premium design for 'Try this pattern' buttons --- */
button[onclick*="loadPattern"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.4rem 1.1rem !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    color: #7e22ce !important; /* purple-700 */
    background-color: #f3e8ff !important; /* purple-100 */
    border: 1px solid #e9d5ff !important; /* purple-200 */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 0.75rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

button[onclick*="loadPattern"]:hover {
    color: #ffffff !important;
    background-color: #7e22ce !important;
    border-color: #7e22ce !important;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

button[onclick*="loadPattern"]:active {
    transform: translateY(-0.5px) !important;
}

/* --- Reset WhatsApp Share button styling when placed inside the textarea absolute container --- */
.absolute #whatsappShareBtn,
.absolute #shareWhatsappBtn,
.absolute #shareWhatsappButton {
    padding: 0.5rem !important;
    font-size: 1rem !important;
    border-radius: 0.375rem !important; /* rounded-md */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* --- Missing Spacing Utility Classes (Tailwind equivalence) --- */
.mb-0 { margin-bottom: 0px !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-16 { margin-bottom: 4rem !important; }

.ml-1 { margin-left: 0.25rem !important; }
.ml-3 { margin-left: 0.75rem !important; }
.ml-4 { margin-left: 1rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-3 { margin-right: 0.75rem !important; }
.mr-4 { margin-right: 1rem !important; }

.mt-0 { margin-top: 0px !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-12 { margin-top: 3rem !important; }

.pl-5 { padding-left: 1.25rem !important; }
.pl-6 { padding-left: 1.5rem !important; }
.pr-12 { padding-right: 3rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-4 { padding-top: 1rem !important; }

.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Symmetrical compact styling for Share and Copy buttons in the result card header */
.border.rounded-md .bg-gray-100 button#shareWhatsappButton,
.border.rounded-md .bg-gray-100 button#shareWhatsappBtn,
.border.rounded-md .bg-gray-100 button#whatsappShareBtn,
.border.rounded-md .bg-gray-100 button#copyButton,
.border.rounded-md .bg-gray-100 button#copyBtn {
    padding: 0.375rem 0.75rem !important; /* py-1.5 px-3 (6px 12px) */
    font-size: 0.875rem !important;      /* text-sm (14px) */
    font-weight: 500 !important;         /* font-medium */
    border-radius: 0.375rem !important;  /* rounded-md (6px) */
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;             /* gap-1.5 (6px) */
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
}


/* Missing utilities for contact.html layout */
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.p-10 { padding: 2.5rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.max-w-xl { max-width: 36rem !important; }
.pt-24 { padding-top: 6rem !important; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { 
  --tw-space-x-reverse: 0; 
  margin-right: calc(1.5rem * var(--tw-space-x-reverse)) !important; 
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse))) !important; 
}

@media (min-width: 768px) {
  .md\:p-12 { padding: 3rem !important; }
}
.pb-16 { padding-bottom: 4rem !important; }
