/* GO-Leasing Baza Wiedzy — Custom Branding CSS */

/* Primary color override */
:root {
  --primary-color: #003366 !important;
  --accent-color: #0066cc !important;
}

/* Hide RAGFlow logo in header and replace with GO-Leasing logo */
header img[src*="logo"],
header svg,
header .logo img,
header .logo svg,
[class*="header"] img[src*="logo"],
[class*="header"] svg[class*="logo"],
.logo img,
.logo svg,
a[href="/"] img,
a[href="/"] svg {
  visibility: hidden;
  position: relative;
}

/* Replace logo area with our logo using background */
header .logo,
header a[href="/"],
[class*="header"] .logo,
[class*="header"] a[href="/"] {
  background: url('/static/logo-chatbot.png') no-repeat center left;
  background-size: contain;
  min-width: 200px;
  min-height: 40px;
}

/* Hide "Powered by RAGFlow" footer text */
footer,
[class*="footer"],
[class*="powered"],
[class*="Footer"] {
  display: none !important;
}

/* Accent color for buttons and links */
.ant-btn-primary,
button[type="primary"] {
  background-color: #003366 !important;
  border-color: #003366 !important;
}

.ant-btn-primary:hover,
button[type="primary"]:hover {
  background-color: #0066cc !important;
  border-color: #0066cc !important;
}

a {
  color: #0066cc;
}

/* Login page branding */
[class*="login"] h1,
[class*="Login"] h1,
[class*="sign"] h1 {
  font-size: 0 !important;
}

[class*="login"] h1::after,
[class*="Login"] h1::after,
[class*="sign"] h1::after {
  content: "GO-Leasing Baza Wiedzy";
  font-size: 24px;
  color: #003366;
  font-weight: bold;
}
