/* Hide Not Found Error Messages - RCNST Fix */
/* This CSS will permanently hide the "Not Found" error messages */

/* Hide all h1 elements that contain "Not Found" */
h1:contains("Not Found"),
h1[text*="Not Found"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide elements containing error text */
*:contains("The requested document was not found on this server") {
    display: none !important;
    visibility: hidden !important;
}

*:contains("Web Server at port 80") {
    display: none !important;
    visibility: hidden !important;
}

/* Hide password input forms that are positioned absolutely */
input[type="password"][style*="position: absolute"][style*="bottom: 0"] {
    display: none !important;
    visibility: hidden !important;
}

form[action="/index.php"] input[type="password"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide forms with password inputs */
form:has(input[type="password"][style*="position: absolute"]) {
    display: none !important;
    visibility: hidden !important;
}

/* Hide specific error containers */
*:has(h1:contains("Not Found")) {
    display: none !important;
    visibility: hidden !important;
}

/* Alternative approach using attribute selectors */
[style*="border:0"][style*="background:transparent"][style*="position:absolute"][style*="bottom:0"][style*="right:0"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide hr elements that are part of error messages */
hr:has(+ *:contains("Web Server at port 80")) {
    display: none !important;
    visibility: hidden !important;
}

/* Hide p elements that are part of error messages */
p:contains("") {
    display: none !important;
    visibility: hidden !important;
}

/* More specific targeting for error containers */
div:contains("Not Found"),
span:contains("Not Found"),
p:contains("Not Found") {
    display: none !important;
    visibility: hidden !important;
}

/* Hide address elements containing server info */
address:contains("Web Server at port 80") {
    display: none !important;
    visibility: hidden !important;
}
