/* Guide Soft IT Solutions - Open WebUI Custom Branding & Adapt Split-Screen */

:root {
  --brand-primary: #ea580c;
  --brand-orange: #f97316;
}

/* Force loading screen splash image to Guide Soft logo */
#splash-screen img, #logo, img#logo {
  content: url('/static/splash-dark.png?v=99') !important;
  max-width: 320px !important;
  height: auto !important;
  object-fit: contain !important;
}

html:not(.dark) #splash-screen img, html:not(.dark) #logo {
  content: url('/static/splash.png?v=99') !important;
}

/* Custom logo in navigation / sidebar */
.brand-logo, [data-testid="app-logo"], img[src*="logo"], img[src*="favicon"] {
  content: url('/static/splash-dark.png?v=99') !important;
  max-height: 28px !important;
  width: auto !important;
}

html:not(.dark) .brand-logo, html:not(.dark) [data-testid="app-logo"] {
  content: url('/static/splash.png?v=99') !important;
}

/* Replace Open WebUI text badge with GUIDESOFT */
#logo-text, .app-name-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Brand styling for navbar */
nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   SUPPRESS RELEASE NOTES / CHANGELOG MODALS (PRESERVING ADMIN SETTINGS)
   ========================================================================== */
#changelog-modal,
.changelog-modal,
[data-testid*="changelog"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

a[href*="github.com/open-webui/open-webui/releases"] {
  display: none !important;
}

/* ==========================================================================
   ADAPT SPLIT-SCREEN AUTHENTICATION LAYOUT (https://ai.guideitsol.in/auth)
   ========================================================================== */
html.adapt-auth-page,
body.adapt-auth-page {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100vw !important;
  background-color: #0b0c0e !important;
}

/* 1. Target the outermost full-screen overlay for /auth in Open WebUI */
body.adapt-auth-page div.fixed.min-h-screen.w-full.flex,
body.adapt-auth-page div.fixed[class*="min-h-screen"],
body.adapt-auth-page div.fixed.bg-transparent {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  max-width: 100vw !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  z-index: 50 !important;
}

/* Hide Open WebUI background promotional banner so the split layout takes full prominence */
body.adapt-auth-page > div.relative.h-screen.max-h-\[100dvh\] {
  display: none !important;
}

body.adapt-auth-page div.w-full.h-screen.max-h-\[100dvh\].text-white.relative {
  display: none !important;
}

/* 2. LEFT COLUMN: Native Open WebUI Authentication Form */
body.adapt-auth-page .adapt-left-col,
body.adapt-auth-page div.w-full.px-10.min-h-screen.flex.flex-col,
body.adapt-auth-page div[class*="px-10"][class*="min-h-screen"],
body.adapt-auth-page div.fixed.min-h-screen.w-full.flex > div:first-child,
body.adapt-auth-page div.fixed.bg-transparent > div:first-child {
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 3rem 2rem !important;
  box-sizing: border-box !important;
  background-color: #0d0e12 !important;
  color: #f3f4f6 !important;
  z-index: 20 !important;
  flex-shrink: 0 !important;
}

html.dark body.adapt-auth-page .adapt-left-col,
html.dark body.adapt-auth-page div.w-full.px-10.min-h-screen.flex.flex-col,
html.dark body.adapt-auth-page div.fixed.min-h-screen.w-full.flex > div:first-child,
html.dark body.adapt-auth-page div.fixed.bg-transparent > div:first-child {
  background-color: #0d0e12 !important;
}

@media (min-width: 1024px) {
  body.adapt-auth-page .adapt-left-col,
  body.adapt-auth-page div.w-full.px-10.min-h-screen.flex.flex-col,
  body.adapt-auth-page div.fixed.min-h-screen.w-full.flex > div:first-child,
  body.adapt-auth-page div.fixed.bg-transparent > div:first-child {
    width: 50% !important;
    min-width: 480px !important;
    max-width: 50% !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
}

/* Inner card styling: bounded & centered */
body.adapt-auth-page .sm\:max-w-md,
body.adapt-auth-page [class*="max-w-md"] {
  max-width: 420px !important;
  width: 100% !important;
  margin: auto !important;
}

/* 3. RIGHT COLUMN: Adapt Customer Testimonial Showcase */
#adapt-auth-showcase {
  display: none;
  position: relative !important;
  width: 50% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background-color: #0b0c0e !important;
  overflow: hidden !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 4rem !important;
  box-sizing: border-box !important;
  z-index: 30 !important;
  flex-shrink: 0 !important;
}

@media (min-width: 1024px) {
  #adapt-auth-showcase {
    display: flex !important;
  }
}

.adapt-ambient-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(53, 101, 208, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(117, 80, 200, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.3) 0%, rgba(11, 12, 14, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.adapt-watermark {
  position: absolute;
  top: 15%;
  right: -10%;
  width: 600px;
  height: 600px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.adapt-quote-wrap {
  position: relative;
  z-index: 10;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.adapt-slide {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.adapt-slide.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.adapt-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.adapt-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3565d0, #7550c8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.adapt-author-meta {
  display: flex;
  flex-direction: column;
}

.adapt-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.adapt-author-title {
  font-size: 0.85rem;
  color: #9ca3af;
}

.adapt-quote {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #9ca3af;
  letter-spacing: -0.01em;
}

.adapt-quote strong {
  color: #f3f4f6;
  font-weight: 500;
}

/* Carousel Navigation & Progress Bars */
.adapt-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.adapt-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.adapt-pill {
  position: relative;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: width 0.3s ease;
  width: 6px;
  cursor: pointer;
}

.adapt-pill.active {
  width: 28px;
}

.adapt-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #ffffff;
  border-radius: 9999px;
}

.adapt-pill.active .adapt-fill {
  width: 100%;
  transition: width 7000ms linear;
}

.adapt-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adapt-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.adapt-arrow-btn:active {
  transform: scale(0.96);
}

.adapt-arrow-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
