/* CoonTool Custom Styles - Hide footer and rebrand */

/* Override footer height CSS variable */
:root {
    --footer-height: 0px !important;
}

/* Hide footer by various selectors */
[style*="--footer-height"],
[style*="height: var(--footer-height)"],
[style*="border-top: 1px solid var(--mantine-color-gray-2)"],
[style*="background-color: var(--mantine-color-gray-1)"][style*="border-top"],
[style*="background-color: var(--mantine-color-gray-1)"][style*="flex-direction: column"][style*="justify-content: center"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Hide footer links */
a[href*="discord.gg"],
a[href*="github.com/Stirling"],
a[href*="stirlingpdf.info"],
a[href*="stirlingpdf.com"],
a[href*="stirling.com"],
a#survey,
a.footer-link {
    display: none !important;
}

/* Hide by class patterns */
[class*="footer"],
[class*="Footer"] {
    display: none !important;
    height: 0 !important;
}

/* Hide Stirling logos */
img[src*="Stirling"],
img[src*="stirling"],
img[alt*="Stirling"],
img[alt*="stirling"] {
    visibility: hidden !important;
}

/* Target footer container - font-size 0.75rem with centered flex */
div[style*="font-size: 0.75rem"][style*="justify-content: center"],
div[style*="font-size: 0.75rem"][style*="gap: var(--mantine-spacing"] {
    display: none !important;
}

/* Remove any bottom spacing for footer */
body, #root, main, [class*="app"], [class*="App"], [class*="main"], [class*="Main"] {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Hide Developer Tools menu item */
[data-group="Developer Tools"],
a[href*="developer"],
div[class*="developer"],
span:contains("Developer Tools"),
[class*="nav"] a[href*="debug"],
[class*="nav"] a[href*="developer"] {
    display: none !important;
}

/* Hide API menu button */
button:has(span:contains("API")),
a[href*="/api"],
a[href*="api-docs"],
a[href*="swagger"],
[class*="mantine-Button"]:has(span[style*="font-size: 12.24px"]:contains("API")) {
    display: none !important;
}

/* Hide API button by icon - external link icon with "API" text */
.mantine-Button-root:has(.mantine-Button-label span:only-child) {
    /* This targets buttons, but we need more specific selector */
}

/* Hide the specific API button structure */
button.m_77c9d27d:has(span.m_811560b9 div span) {
    display: none !important;
}
