/* MTDC CMS Admin Customization */

/* Hide ALL Wagtail logos completely */
.login-form .logo,
.w-logo__wagtail-icon,
svg.icon-wagtail,
.wagtail-logo,
[data-wagtail-logo],
.w-header__logo svg,
.sidebar-logo svg {
    display: none !important;
    visibility: hidden !important;
}

/* Hide Wagtail branding in the login page */
.login-form .logo {
    display: none !important;
}

/* Customize the header background color to MTDC theme */
.w-header {
    background-color: #2c5282 !important; /* MTDC Blue */
}

/* Hide "Wagtail" text in footer */
footer a[href*="wagtail.org"] {
    display: none;
}

/* Customize sidebar color */
.sidebar-main-menu {
    background-color: #2c5282 !important;
}

/* Add MTDC branding to login page */
.login-form::before {
    content: "Maharashtra Tourism Development Corporation";
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 20px;
}

/* Style the page title in admin */
.w-breadcrumbs {
    font-weight: 600;
}

/* Customize primary button color to MTDC theme */
.button.button-primary,
.button.button-primary:hover {
    background-color: #2c5282 !important;
    border-color: #2c5282 !important;
}

/* Customize links color */
a {
    color: #2c5282;
}

a:hover {
    color: #1e3a5f;
}

/* Style active menu items */
.sidebar-main-menu .menu-item.active {
    background-color: #1e3a5f !important;
}

/* Customize focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #2c5282 !important;
    outline-color: #2c5282 !important;
}

/* Custom styling for MTDC logo space */
.w-logo {
    background-color: #2c5282;
    padding: 0 !important;
}

/* Ensure MTDC logo container is properly sized */
.w-logo img {
    max-width: 100% !important;
    height: auto !important;
}

/* Hide Wagtail logo link wrapper */
.w-logo__link {
    display: block !important;
    text-decoration: none !important;
}

/* Remove any Wagtail logo background images */
.w-logo::before,
.w-logo::after {
    display: none !important;
    content: none !important;
}

/* Hide Wagtail version info */
.footer__version {
    display: none;
}

/* Hide "View site" wagtail icon if present */
.icon-wagtail::before {
    content: none !important;
}

/* Completely override wagtail logo in sidebar */
.sidebar [class*="wagtail"] {
    display: none !important;
}
