@import url('/css/android-responsive.css');

/* ==========================================================================
   BHUBANESWAR ENGINEERING COLLEGE — UNIFIED SKY BLUE NAVBAR THEME
   Universal institutional gradient styling for ALL pages and dashboards
   Exact match to Student Dashboard: linear-gradient(135deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%)
   ========================================================================== */

/* Universal Header & Topbar Containers */
header:not(.app-header),
.header,
.mobile-sticky-header,
.main-top-header,
.mobile-app-header,
.top-header,
.top-header-bar,
.top-nav,
.top-navbar,
.topbar,
.top-bar,
.desktop-topbar,
.navbar,
header.navbar,
.portal-top-banner,
.screen-header,
.tour-top-header,
.app-bar,
.site-header,
.main-header,
.master-header,
.kiosk-header,
.portal-topbar,
.admin-header,
.reporting-header,
.header-wrap,
.mobile-cafeteria-header,
.mobile-header-top-bar,
.billboard-top-bar,
.sticky-app-bar,
.sub-navbar,
.page-header {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.25) !important;
  color: #ffffff !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* Inner Layout Containers inside Navbars MUST be transparent */
.header-inner,
.header-wrap,
.header-content,
.header-container,
.header-row,
.header-layout,
.header-left,
.header-right,
.header-center,
.header-nav,
.header-nav-group,
.header-title-section,
.header-title-group,
.header-title-box,
.header-brand,
.app-bar-inner,
.app-bar-brand,
a.app-bar-brand,
.brand-link,
a.brand-link,
.app-bar-left,
.top-nav-inner,
.top-header-inner,
.navbar-brand,
.brand-titles,
.brand-info,
.brand-text,
.desktop-topbar-left,
.desktop-topbar-right {
  background: transparent !important;
}

/* Headings and Titles inside Navbars */
header h1, header h2, header h3, header h4,
.header h1, .header h2, .header h3, .header h4,
.top-header h1, .top-header h2,
.top-header-bar h1, .top-header-bar h2,
.mobile-sticky-header h1, .mobile-sticky-header h2,
.main-top-header h1, .main-top-header h2,
.mobile-app-header h1, .mobile-app-header h2,
.top-nav h1, .top-nav h2,
.topbar h1, .topbar h2,
.top-bar h1, .top-bar h2,
.desktop-topbar h1, .desktop-topbar h2,
.navbar h1, .navbar h2,
.portal-top-banner h1, .portal-top-banner h2,
.screen-header h1, .screen-header h2,
.admin-header h1, .admin-header h2,
.page-header h1, .page-header h2,
.brand-title, .brand-title-text, .brand-title-blue, .brand-title-dark,
.navbar .page-heading, header .page-heading, .topbar .page-heading, .navbar-logo-text, .user-pill-name,
.brand-text h1, .brand-text h2,
.header-brand, .header-brand h1, .header-brand h2, .header-brand span {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

/* Subtitles and meta text inside Navbars */
header:not(.app-header) p, .header p,
.top-header p, .top-header-info,
.top-header-bar p, .brand-subtext, .brand-sub,
.brand-text p, .mobile-brand-title p, .user-pill-id,
.header-title-group p,
.header-subtitle, .navbar-subtitle {
  color: #e0f2fe !important;
}

/* Institutional Logos inside Navbars */
header:not(.app-header) img.brand-logo-img,
header:not(.app-header) img.mobile-brand-logo,
header:not(.app-header) img.header-avatar,
header:not(.app-header) .header-logo-wrap,
header:not(.app-header) .navbar-brand-logo,
.header img,
.navbar-brand-logo,
.brand-icon,
.brand-badge {
  border-radius: 50% !important;
  border: 1.5px solid #ffffff !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  padding: 1px !important;
}

/* Buttons, Actions and Links inside Navbars */
header:not(.app-header) a:not(.brand-logo):not(.header-brand):not(.app-bar-brand):not(.navbar-brand):not(.brand-link):not(.user-pill-card):not(.nav-tab-pill):not(.hero-exit-btn),
header:not(.app-header) button:not(.btn-close-modal):not(.nav-tab-pill),
.header a:not(.brand-logo):not(.header-brand):not(.app-bar-brand):not(.navbar-brand):not(.brand-link):not(.user-pill-card):not(.nav-tab-pill):not(.hero-exit-btn),
.header button:not(.btn-close-modal):not(.nav-tab-pill),
.top-header a:not(.user-pill-card):not(.nav-tab-pill),
.top-header button:not(.btn-close-modal):not(.nav-tab-pill),
.top-header-bar a:not(.user-pill-card):not(.header-brand):not(.brand-logo):not(.brand-link),
.top-header-bar button,
.main-top-header a, .main-top-header button,
.mobile-app-header a, .mobile-app-header button,
.top-nav a, .top-nav button,
.topbar a, .topbar button,
.top-bar a, .top-bar button,
.desktop-topbar a, .desktop-topbar button,
.admin-header a, .admin-header button,
.btn-nav, .btn-ghost, .btn-hamburger, .mobile-hamburger-btn,
.mobile-icon-btn, .screen-header-back, .screen-header-action,
.navbar-portal-btn, .mobile-menu-btn, .btn-portal, .btn-back-header,
.header-actions a, .header-actions button,
.header-btn, .nav-btn, .nav-btn-back {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

header:not(.app-header) a:hover, header:not(.app-header) button:hover,
.header a:hover, .header button:hover,
.top-header a:hover, .top-header button:hover,
.top-header-bar a:hover, .top-header-bar button:hover,
.btn-nav:hover, .btn-ghost:hover, .btn-portal:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
}

/* Button and Navigation Icons inside Navbars */
header:not(.app-header) i, header:not(.app-header) svg,
.header i, .header svg,
.top-header i, .top-header svg,
.top-header-bar i, .top-header-bar svg,
.main-top-header i, .main-top-header svg,
.mobile-app-header i, .mobile-app-header svg,
.top-nav i, .top-nav svg,
.topbar i, .topbar svg,
.top-bar i, .top-bar svg,
.desktop-topbar i, .desktop-topbar svg,
.admin-header i, .admin-header svg,
.navbar-portal-btn svg, .mobile-menu-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Role Badges (Faculty / Teacher, Admin, Student) */
.role-badge,
header .role-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.role-badge *,
header .role-badge * {
  color: #ffffff !important;
  stroke: #ffffff !important;
  font-weight: 700 !important;
}

/* User Profile Identity Capsules (White Badge Theme for Maximum Legibility) */
header .user-pill,
header .profile-pill,
header .user-pill-card,
header .mobile-header-profile-pill,
header .header-user-card,
header div[class*="rounded-full"][class*="space-x-"]:not(.role-badge),
header div[class*="bg-slate-50"],
header div[class*="bg-white"]:not(.avatar-circle):not(.brand-logo) {
  background: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Force dark, crisp typography inside user profile identity capsules */
header .user-pill span,
header .profile-pill span,
header .user-pill-card span,
header .mobile-header-profile-pill span,
header .header-user-card span,
header div[class*="rounded-full"][class*="space-x-"] span,
header div[class*="bg-slate-50"] span,
header div[class*="bg-white"] span,
header .user-pill-name {
  color: #0f172a !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Secondary Meta Text (Email, Reg No, Roll No, Department) inside user pill */
header .user-pill span:last-child,
header .profile-pill span:last-child,
header .user-pill-card span:last-child,
header .header-user-card span:last-child,
header div[class*="rounded-full"][class*="space-x-"] span:last-child,
header div[class*="bg-slate-50"] span:last-child,
header div[class*="bg-white"] span:last-child,
header .user-pill-id,
header .user-pill .text-slate-500,
header .profile-pill .text-slate-500,
header .user-pill .text-sky-100,
header .profile-pill .text-sky-100 {
  color: #475569 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Avatar Circle inside identity capsule - Vibrant Blue with Crisp White Letter */
header .user-pill .avatar-circle,
header .profile-pill .avatar-circle,
header .user-pill-card .avatar-circle,
header .header-user-card .avatar-circle,
header div[class*="rounded-full"][class*="space-x-"] .w-8,
header div[class*="rounded-full"][class*="space-x-"] [class*="bg-blue-"],
header div[class*="bg-slate-50"] .w-8,
header div[class*="bg-slate-50"] [class*="bg-blue-"],
header div[class*="bg-white"] .w-8,
header div[class*="bg-white"] [class*="bg-blue-"] {
  background: #0284c7 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

header .user-pill .avatar-circle *,
header .profile-pill .avatar-circle *,
header .user-pill-card .avatar-circle *,
header .header-user-card .avatar-circle *,
header div[class*="rounded-full"][class*="space-x-"] .w-8 *,
header div[class*="rounded-full"][class*="space-x-"] [class*="bg-blue-"] *,
header div[class*="bg-slate-50"] .w-8 *,
header div[class*="bg-slate-50"] [class*="bg-blue-"] *,
header div[class*="bg-white"] .w-8 *,
header div[class*="bg-white"] [class*="bg-blue-"] * {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

/* Institutional Brand Link Reset inside Headers */
a.app-bar-brand,
.app-bar-brand,
.navbar-brand,
.header-brand {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-title,
.app-bar-brand .app-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.app-badge,
.app-bar-brand .app-badge {
  color: #ecfdf5 !important;
}

.app-live-dot {
  background: #4ade80 !important;
  box-shadow: 0 0 8px #4ade80 !important;
}

/* Mini Avatars inside user pills */
.user-avatar-mini,
.user-pill-icon,
.header-avatar-box,
.header-avatar,
.header-user-avatar {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
}

/* Dropdowns and Selects (Non-Language) */
header:not(.app-header) select:not(#langSelect):not(.lang-dropdown):not(.select-lang):not(.select-lang-mini):not(#lang-selector):not(#lang-selector-mini),
.top-header select:not(#langSelect):not(.lang-dropdown):not(.select-lang):not(.select-lang-mini):not(#lang-selector):not(#lang-selector-mini),
.top-header-bar select:not(#langSelect):not(.lang-dropdown):not(.select-lang):not(.select-lang-mini):not(#lang-selector):not(#lang-selector-mini),
.top-nav select:not(#langSelect):not(.lang-dropdown):not(.select-lang):not(.select-lang-mini):not(#lang-selector):not(#lang-selector-mini),
.dept-select {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
}

header:not(.app-header) select option,
.top-header select option,
.top-header-bar select option,
.top-nav select option,
.dept-select option {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   HIDE ALL LANGUAGE SELECTORS, BUTTONS, PILLS & MODALS UNIVERSALLY EVERYWHERE
   ========================================================================== */
.lang-selector-nav,
.lang-dropdown,
.select-lang,
.select-lang-mini,
.lang-select-box,
.lang-select-dropdown,
.lang-switcher,
#bec-lang-btn,
#bec-lang-modal,
#langSelect,
#lang-selector,
#lang-selector-mini,
.priya-lang-pills,
.priya-lang-pill,
[aria-label="Open Language Switcher"],
[aria-label="Select Language"],
.lang-selector-container,
.lang-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   SIDEBAR BRAND HEADERS — HIGH CONTRAST DARK TEXT (MUST NEVER BE WHITE)
   ========================================================================== */
.app-sidebar .sidebar-brand-title,
.sidebar .sidebar-brand-title,
aside .sidebar-brand-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.app-sidebar .sidebar-brand-sub,
.sidebar .sidebar-brand-sub,
aside .sidebar-brand-sub {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* ==========================================================================
   UNIVERSAL INSTITUTIONAL NAVBAR — CONSTANT FIXED TOP POSITIONING ON ALL PAGES
   ========================================================================== */
header:not(.app-header):not(.gov-header):not(#header-container):not(.sidebar-header):not(.drawer-header):not(.modal-header):not(.card-header):not(.panel-header):not(.sub-header):not(.popover-header):not(.topbar):not(.desktop-topbar):not(.portal-topbar):not(.main-top-header):not(.top-header):not(.top-header-bar):not(.sticky-app-bar-header),
.mobile-sticky-header,
.top-navbar,
.mobile-app-header,
#bec-attendance-navbar,
header.attendance-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Sidebar Layout Dashboards — Topbar remains in normal flex flow inside .main-wrapper / .sticky-app-bar / .main-body */
.main-wrapper > header:not(.top-header-fixed),
.main-wrapper > .topbar,
.main-body > header,
.main-body > .top-header,
.notices-app-layout .top-header,
.sticky-app-bar header,
.sticky-app-bar .top-header,
header.top-header:not(.top-header-fixed),
header.top-header-bar,
.app-layout .topbar,
header.topbar,
.sticky-app-bar header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

header.desktop-topbar,
.desktop-viewport-area > .desktop-topbar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

/* =============================================================================
   DESKTOP & TABLET ZERO-OVERLAP ENGINE (Screens >= 768px)
   Guaranteed clearance under fixed institutional top navbar (64px–72px).
   Prevents dashboard cards & headings (e.g. Executive Terminal, HOD Console)
   from sliding underneath the fixed top blue navbar on Desktop and Tablet.
   Mobile (< 768px) is strictly preserved without modification.
   ============================================================================= */
@media screen and (min-width: 768px) {
  html, body {
    overflow-x: clip !important;
  }

  /* Direct top-level mains under body */
  body > main,
  body > #main-content,

  /* Shared dashboard main layout wrappers */
  .main-wrapper > main:not(.content-area),
  .main-wrapper > .main-content,
  .main-wrapper > .scroll-body,
  .app-layout > .main-wrapper > main:not(.content-area),
  .app-layout > main,
  .warden-layout-container > main,
  .warden-main-stage,

  /* Generic dashboard content containers */
  .main-content-wrapper,
  .dashboard-content,
  .main-content,
  .admin-wrapper:not(body),
  .app-workspace,
  .wizard-wrap:not(body),
  .viewport-area > .content-container,
  .viewport-area > main {
    padding-top: 80px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
  }

  /* Desktop Viewport Areas (Student & HOD Dashboards) — Topbar is in-flow/sticky, main content starts directly below navbar */
  .desktop-viewport-area > .portal-main-content,
  .desktop-viewport-area > main.portal-main-content,
  .desktop-viewport-area > main,
  .portal-main-content,
  .app-main-content > main,
  .app-main-content > .app-main-body,
  .app-layout > .app-main-content > main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .desktop-hero-banner {
    margin-top: 0 !important;
  }

  /* Prevent double padding on nested views inside offset containers */
  .main-wrapper > main .view-container,
  .main-wrapper > .content-area .view-container,
  .app-main-content > main .tab-panel,
  .content-area .view-container,
  .view-container > .view-container,
  .app-layout > main.main-stage,
  .main-stage {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* App Layouts with In-flow Topbars (.app-layout, .main-wrapper) */
  .app-layout > .main-wrapper > .content-area,
  .main-wrapper > .content-area {
    padding-top: 28px !important;
    padding-bottom: 60px !important;
    box-sizing: border-box !important;
  }

  /* Suppress Android APK floating update chip on desktop screens */
  #bec-floating-update-chip,
  .bec-floating-update-chip {
    display: none !important;
  }
}

/* ==========================================================================
   BEC ATTENDANCE SYSTEM NAVBAR — USER PROFILE & ROLE BADGE VISIBILITY FIX
   Transforms the unstyled white box into the institutional frosted glass pill
   with crystal-clear white text, sky-blue subtext, and crisp avatar badge
   ========================================================================== */
#bec-attendance-navbar .bg-slate-50,
.attendance-navbar .bg-slate-50,
#bec-attendance-navbar [class*="bg-slate-50"],
.attendance-navbar [class*="bg-slate-50"],
#bec-attendance-navbar .profile-pill,
.attendance-navbar .profile-pill,
#bec-attendance-navbar .user-pill,
.attendance-navbar .user-pill {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 9999px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
}

#bec-attendance-navbar .bg-slate-50:hover,
.attendance-navbar .bg-slate-50:hover,
#bec-attendance-navbar .profile-pill:hover,
.attendance-navbar .profile-pill:hover,
#bec-attendance-navbar .user-pill:hover,
.attendance-navbar .user-pill:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

#bec-attendance-navbar .bg-slate-50 span,
.attendance-navbar .bg-slate-50 span,
#bec-attendance-navbar .profile-pill span,
.attendance-navbar .profile-pill span,
#bec-attendance-navbar .user-pill span,
.attendance-navbar .user-pill span {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

#bec-attendance-navbar .bg-slate-50 span.text-slate-500,
.attendance-navbar .bg-slate-50 span.text-slate-500,
#bec-attendance-navbar .profile-pill span:last-child,
.attendance-navbar .profile-pill span:last-child,
#bec-attendance-navbar .user-pill span:last-child,
.attendance-navbar .user-pill span:last-child,
#bec-attendance-navbar .bg-slate-50 span:last-child,
.attendance-navbar .bg-slate-50 span:last-child {
  color: #e0f2fe !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

#bec-attendance-navbar .bg-slate-50 .bg-blue-600,
.attendance-navbar .bg-slate-50 .bg-blue-600,
#bec-attendance-navbar .profile-pill .avatar-circle,
.attendance-navbar .profile-pill .avatar-circle,
#bec-attendance-navbar .user-pill .avatar-circle,
.attendance-navbar .user-pill .avatar-circle {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Institutional Role Badges on Attendance Navbar */
#bec-attendance-navbar [class*="bg-blue-100"],
.attendance-navbar [class*="bg-blue-100"],
#bec-attendance-navbar [class*="bg-purple-100"],
.attendance-navbar [class*="bg-purple-100"],
#bec-attendance-navbar [class*="bg-emerald-100"],
.attendance-navbar [class*="bg-emerald-100"],
#bec-attendance-navbar .role-badge,
.attendance-navbar .role-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  font-weight: 700 !important;
}

#bec-attendance-navbar [class*="bg-blue-100"] svg,
.attendance-navbar [class*="bg-blue-100"] svg,
#bec-attendance-navbar [class*="bg-purple-100"] svg,
.attendance-navbar [class*="bg-purple-100"] svg,
#bec-attendance-navbar [class*="bg-emerald-100"] svg,
.attendance-navbar [class*="bg-emerald-100"] svg,
#bec-attendance-navbar .role-badge svg,
.attendance-navbar .role-badge svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Fallback: If solid white capsule is explicitly retained, ensure dark high-contrast text */
#bec-attendance-navbar .bg-white span,
.attendance-navbar .bg-white span,
#bec-attendance-navbar .user-pill-solid span,
.attendance-navbar .user-pill-solid span {
  color: #0f172a !important;
  text-shadow: none !important;
}

#bec-attendance-navbar .bg-white span:last-child,
.attendance-navbar .bg-white span:last-child,
#bec-attendance-navbar .user-pill-solid span:last-child,
.attendance-navbar .user-pill-solid span:last-child {
  color: #475569 !important;
  text-shadow: none !important;
}


