/* ==========================================================================
   OFICJALNY STYL MARKI BYDGOSZCZ I OKOLICE FOTOGRAFIA
   Główny arkusz stylów dla całego systemu Konta BioF
   ========================================================================== */

:root {
  --brand-navy: #103370;
  --brand-navy-dark: #0a234f;
  --brand-navy-soft: #e8eef9;
  --brand-sky: #1e5bb8;
  --brand-sky-soft: #edf5fd;

  --bg-main: #f0f4f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-hover: #e2e8f0;
  --input-bg-soft: #f8fafc;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;

  --border-color: #e2e8f0;
  --border-focus: #103370;

  --danger-color: #dc2626;
  --danger-bg: #fef2f2;
  --success-color: #065f46;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-card: 20px;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-dropdown: 0 16px 36px rgba(15, 23, 42, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   IKONY GOOGLE MATERIAL SYMBOLS
   ========================================================================== */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded', sans-serif !important;
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ==========================================================================
   GŁÓWNY NAVBAR SYSTEMU
   ========================================================================== */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px !important;
  width: auto !important;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-sky);
  font-weight: 700;
  margin-top: 2px;
}

.navbar-right-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
}

.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover:not(.active) {
  color: var(--brand-navy);
  background-color: var(--brand-navy-soft);
}

.navbar-nav .nav-link.active {
  background-color: var(--brand-navy) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 6px;
  padding: 6px 14px;
}

.nav-link.nav-logout {
  color: var(--danger-color);
}

.nav-link.nav-logout:hover {
  background-color: var(--danger-bg);
}

/* ==========================================================================
   PRZYCISK 9 KROPEK & POPOVER „NASZE SERWISY”
   ========================================================================== */
.apps-launcher-wrapper,
.profile-launcher-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.btn-apps-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-apps-trigger:hover,
.btn-apps-trigger.active {
  background-color: var(--brand-navy-soft);
  color: var(--brand-navy);
}

.btn-apps-trigger .material-symbols-rounded {
  font-size: 23px;
  color: var(--brand-navy);
}

.apps-dropdown-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 330px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 16px;
  display: none;
  flex-direction: column;
  z-index: 99999;
}

.apps-dropdown-card.show,
.apps-dropdown-card.active {
  display: flex !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.apps-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.apps-dropdown-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-navy);
}

.apps-dropdown-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-sky);
  background-color: var(--brand-navy-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
}

.app-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 4px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.app-item-card:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.app-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-navy-soft);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}

.app-item-card:hover .app-icon-bubble {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.app-icon-bubble .material-symbols-rounded {
  font-size: 20px;
}

.app-item-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 90px;
}

/* ==========================================================================
   PROFIL GOOGLE-STYLE I AWATAR
   ========================================================================== */
.btn-profile-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  outline: none;
}

.btn-profile-trigger:hover,
.btn-profile-trigger.active {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 2px rgba(16, 51, 112, 0.2);
  transform: scale(1.05);
}

.nav-profile-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 1px solid var(--border-color);
}

.avatar-initials-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  user-select: none;
}

.nav-profile-avatar.avatar-initials-circle {
  width: 34px !important;
  height: 34px !important;
  font-size: 13px !important;
}

.dropdown-avatar-img.avatar-initials-circle {
  width: 68px !important;
  height: 68px !important;
  font-size: 24px !important;
}

.profile-dropdown-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 24px 20px 18px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 99999;
}

.profile-dropdown-card.show,
.profile-dropdown-card.active {
  display: flex !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2px;
  background-color: var(--brand-navy-soft);
  margin-bottom: 10px;
}

.dropdown-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-user-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  word-break: break-all;
}

.badge-role-admin {
  background-color: #eff6ff;
  color: var(--brand-navy);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-manage-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1.5px solid #c4c7c5;
  color: #1f1f1f;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 14px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-manage-account:hover {
  background-color: var(--brand-navy-soft);
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.dropdown-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 12px;
}

.btn-dropdown-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--danger-bg);
  color: var(--danger-color);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #fecaca;
  transition: all 0.15s ease;
}

.btn-dropdown-logout:hover {
  background-color: #fee2e2;
}

/* ==========================================================================
   HAMBURGER MOBILNY
   ========================================================================== */
.navbar-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1200;
  transition: all 0.15s ease;
  padding: 0;
}

.navbar-toggle:hover {
  background: #f1f5f9;
}

.navbar-toggle .toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--brand-navy);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.navbar-toggle.active .toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.navbar-toggle.active .toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active .toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   BANER HERO MARKI
   ========================================================================== */
.hero-section,
.hero-admin-section {
  background: linear-gradient(135deg, #103370 0%, #17428e 100%) !important;
  color: #ffffff !important;
  padding: 42px 20px 46px !important;
  text-align: center !important;
  width: 100% !important;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge,
.hero-badge-pill {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.4px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 5px 16px !important;
  border-radius: 20px !important;
  margin-bottom: 12px !important;
}

.hero-title {
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
}

.hero-subtitle {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

/* ==========================================================================
   UKŁAD STRONY I KONTENERY
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 30px 24px 60px;
  width: 100%;
}

.content-container {
  max-width: 1540px !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.toolbar-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-brand-company {
  background-color: var(--brand-sky-soft);
  border: 1px solid #bfdbfe;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.badge-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  background-color: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.btn-pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-pill-action:hover {
  background-color: var(--brand-navy-soft);
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.btn-pill-action.btn-accent {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.btn-pill-action.btn-accent:hover {
  background-color: var(--brand-navy-dark);
}

.brand-search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  gap: 10px;
  transition: all 0.2s ease;
}

.brand-search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-navy-soft);
}

.brand-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  width: 240px;
}

/* KARTA GŁÓWNA PROFILU */
.profile-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  border-top: 4px solid var(--brand-navy);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.profile-main-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  display: block;
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transition: all 0.15s ease;
}

.profile-avatar-edit-btn:hover {
  background-color: var(--brand-navy-soft);
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.profile-avatar-edit-btn .material-symbols-rounded {
  font-size: 15px;
}

.profile-names h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.profile-names p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* CHIPY I SZYBKIE FILTRY */
.chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.chip-item:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background-color: var(--brand-navy-soft);
}

/* SIATKA KAFELKÓW PROFILU */
.profile-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.profile-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.profile-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.08);
  border-color: var(--brand-navy);
}

.tile-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tile-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-navy-soft);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon-box .material-symbols-rounded {
  font-size: 22px;
}

.tile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tile-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
}

.tile-value-primary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.tile-value-secondary {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  word-break: break-word;
}

.tile-action {
  flex-shrink: 0;
}

/* ==========================================================================
   KARTY SEKCJI, ZABEZPIECZEŃ I DANYCH
   ========================================================================== */
.security-alert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.security-alert-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  border-left: 5px solid #059669;
}

.security-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-alert-icon .material-symbols-rounded {
  font-size: 26px;
}

.security-alert-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 2px;
}

.security-alert-text p {
  font-size: 12.5px;
  color: #047857;
  line-height: 1.4;
}

.section-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  border-top: 4px solid var(--brand-navy);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.section-card-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border-color);
}

.section-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.section-card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.grouped-list {
  display: flex;
  flex-direction: column;
}

.grouped-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
  gap: 16px;
}

.grouped-item:last-child {
  border-bottom: none;
}

.grouped-item:hover {
  background-color: #f8fafc;
}

.grouped-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.grouped-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-navy-soft);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grouped-icon-box .material-symbols-rounded {
  font-size: 20px;
}

.grouped-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  line-height: 1.3;
}

.grouped-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.grouped-item-action {
  background-color: #fcfdfe;
  cursor: pointer;
}

.grouped-item-action:hover {
  background-color: var(--brand-navy-soft);
}

.grouped-action-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
}

.badge-count {
  background-color: #e2e8f0;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-tag-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.badge-status-green {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-status-blue {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-status-yellow {
  background-color: #fefce8;
  color: #a16207;
  border: 1px solid #fde047;
}

.callout-info {
  background-color: #edf5fd;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 12.5px;
  color: #1e3a8a;
  line-height: 1.5;
}

/* ==========================================================
   STOPKA I POWIADOMIENIA TOAST
   ========================================================== */
.footer-plain {
  padding: 20px 16px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  margin-top: auto;
}

.footer-plain a {
  color: var(--brand-navy);
  text-decoration: underline;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.copy-toast {
  background-color: var(--brand-navy, #103370);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(16, 51, 112, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.copy-toast.hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

/* ==========================================================================
   LOGOWANIE (LOGIN.PHP)
   ========================================================================== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  padding: 24px 16px;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 38px 36px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--brand-navy);
}

.login-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.login-logo-img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 26px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-form-group {
  display: flex;
  flex-direction: column;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.login-forgot-link {
  font-size: 11.5px;
  color: var(--brand-sky);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.login-forgot-link:hover {
  color: var(--brand-navy);
}

.login-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--input-bg-soft);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.login-input:focus {
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-navy-soft);
}

.btn-submit-login {
  width: 100%;
  padding: 12px 16px;
  margin-top: 6px;
  background-color: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.btn-submit-login:hover {
  background-color: var(--brand-navy-dark);
}

.login-footer-copy {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 26px;
  text-align: center;
}

/* ==========================================================================
   STYLE FORMULARZY EDYCJI DANYCH OSOBOWYCH (GOOGLE ACCOUNT STYLE)
   ========================================================================== */

/* Kontener widoków edycji (ukryty domyślnie) */
.subview-card {
  display: none;
  background-color: transparent;
  width: 100%;
}

.subview-card.active {
  display: block;
  animation: fadeInMenu 0.18s ease-out;
}

.subview-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-subview-back {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.btn-subview-back:hover {
  background-color: var(--bg-subtle-hover);
}

.subview-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.subview-intro-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 780px;
}

.subview-intro-text a {
  color: var(--brand-sky);
  text-decoration: none;
}

.subview-intro-text a:hover {
  text-decoration: underline;
}

/* Karta formularza ze zrzutów */
.google-card-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  max-width: 680px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Wiersz z podglądem i strzałką w prawo */
.google-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
}

.google-card-row:last-child {
  border-bottom: none;
}

.google-card-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.google-card-row-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.google-card-row-value {
  font-size: 14.5px;
  color: var(--text-main);
  font-weight: 600;
}

/* Obramowane pola wejściowe Google Material (Outlined Inputs) */
.g-field-wrap {
  position: relative;
  margin-top: 6px;
  width: 100%;
}

.g-field-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.g-field-input:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 1px var(--brand-sky);
}

.g-field-label {
  position: absolute;
  top: -9px;
  left: 12px;
  background: #ffffff;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s ease;
}

.g-field-input:focus ~ .g-field-label {
  color: var(--brand-sky);
  font-weight: 600;
}

/* Kto może zobaczyć Twoje dane */
.visibility-info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 6px;
}

.visibility-info-block .material-symbols-rounded {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Przełącznik segmentowy (Tylko Ty / Wszyscy) */
.segmented-toggle-wrap {
  display: flex;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
}

.seg-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--brand-sky-soft);
  color: var(--brand-navy);
  font-weight: 700;
}

.seg-btn:first-child {
  border-right: 1.5px solid var(--border-color);
}

/* Radio buttony w stylu Google */
.g-radio-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-main);
  user-select: none;
}

.g-radio-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
  margin: 0;
  cursor: pointer;
}

.g-radio-option input[type="radio"]:checked {
  border-color: var(--brand-navy);
}

.g-radio-option input[type="radio"]:checked::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--brand-navy);
  border-radius: 50%;
}

/* Dolny pasek przycisków formularza */
.g-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-g-cancel {
  background: transparent;
  border: none;
  color: var(--brand-sky);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-g-cancel:hover {
  background-color: var(--brand-sky-soft);
}

.btn-g-save {
  background: var(--brand-navy);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-g-save:hover {
  background: var(--brand-navy-dark);
}

/* ==========================================================================
   POPUP MODALU ZMIANY ZDJĘCIA PROFILOWEGO (NA ŚRODKU EKRANU)
   ========================================================================== */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none !important; /* Domyślnie CAŁKOWICIE UKRYTY */
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

/* Klasa aktywująca popup na środku ekranu */
.modal-backdrop.show,
.modal-backdrop.active {
  display: flex !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.photo-modal-card {
  background: #ffffff !important;
  border-radius: 28px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25) !important;
  padding: 24px 24px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  margin: auto !important;
}

.photo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.photo-modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-close-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.btn-close-circle:hover {
  background-color: var(--bg-subtle-hover);
}

.photo-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.photo-preview-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0 24px;
  position: relative;
}

.photo-circle-large {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #c5d6f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.photo-circle-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge-globe {
  position: absolute;
  bottom: 6px;
  right: calc(50% - 85px + 8px);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: var(--text-muted);
}

.photo-badge-globe .material-symbols-rounded {
  font-size: 18px;
}

.photo-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}

.photo-action-btn:hover {
  background-color: var(--bg-subtle);
}

.photo-action-btn .material-symbols-rounded {
  font-size: 22px;
  color: var(--text-muted);
}

/* ==========================================================================
   WIDOK MOBILNY: MENU TYPU FLOATING CARD (JAK W LINK HUB)
   ========================================================================== */
@media (max-width: 991px) {
  .navbar {
    padding: 8px 12px !important;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-container {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .brand-logo-img {
    height: 34px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .brand-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .brand-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .brand-tagline {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: var(--brand-sky) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .apps-launcher-wrapper,
  .profile-launcher-wrapper {
    display: none !important;
  }

  .navbar-toggle {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  header .navbar-nav,
  .navbar-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 10px !important;
    right: 10px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
    border: 1px solid #cbd5e1 !important;
    padding: 14px 12px !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 4px !important;
    z-index: 2500 !important;
  }

  header .navbar-nav.active,
  .navbar-nav.active {
    display: flex !important;
    animation: menuCardDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes menuCardDrop {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  header .navbar-nav .nav-link,
  .navbar-nav .nav-link {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    text-align: left !important;
    transition: background 0.12s ease !important;
    margin: 0 !important;
  }

  .navbar-nav .nav-link:hover {
    background-color: #f8fafc !important;
  }

  header .navbar-nav .nav-link.active,
  .navbar-nav .nav-link.active {
    background-color: var(--brand-sky-soft) !important;
    color: var(--brand-navy) !important;
    font-weight: 700 !important;
  }

  header .navbar-nav .nav-logout,
  .navbar-nav .nav-logout {
    display: block !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
    padding-top: 14px !important;
    margin-top: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  .navbar-nav .nav-logout:hover {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
  }

  .profile-tiles-grid {
    grid-template-columns: 1fr;
  }

  .brand-search-box {
    width: 100%;
  }

  .brand-search-box input {
    width: 100%;
  }
}