/* ==========================================================================
   PORTAL GLOBAL ADMIN - BYDGOSZCZ I OKOLICE FOTOGRAFIA
   Jeden wspólny arkusz stylów CSS dla wszystkich podstron i logowania
   ========================================================================== */

:root {
  /* Kolorystyka marki */
  --brand-navy: #103370;
  --brand-navy-dark: #0a234f;
  --brand-navy-gradient: linear-gradient(135deg, #103370 0%, #17428e 100%);
  --brand-sky: #1e5bb8;
  --brand-sky-soft: #e8eef9;
  --brand-input-bg: #edf3fc;

  /* Tła i powierzchnie */
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-subtle-hover: #f1f5f9;

  /* Kolory tekstu */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  /* Ramki */
  --border-color: #e2e8f0;
  --border-focus: #103370;

  /* Akcenty i alerty */
  --success-color: #059669;
  --success-bg: #ecfdf5;
  --danger-color: #dc2626;
  --danger-bg: #fef2f2;
  --warning-color: #a16207;
  --warning-bg: #fefce8;

  /* Zaokrąglenia i cienie */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-card: 18px;
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.05);
  --shadow-dropdown: 0 16px 36px rgba(15, 23, 42, 0.16);
}

/* Reset bazowy */
* {
  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.5;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. EKRAN LOGOWANIA (LOGIN.PHP)
   ========================================================================== */
.login-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  padding: 20px;
  margin: 0;
}

.login-card-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

.login-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--brand-navy);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 38px 36px 30px;
  text-align: center;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.login-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.login-card-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0 0 4px 0;
}

.login-card-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin: 0 0 24px 0;
}

.login-card-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-field-group {
  display: flex;
  flex-direction: column;
}

.login-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.login-forgot-link {
  font-size: 12px;
  color: #1e5bb8;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.login-forgot-link:hover {
  color: var(--brand-navy);
}

.login-field-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: var(--brand-input-bg);
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.login-field-input:focus {
  background-color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(16, 51, 112, 0.12);
}

.login-btn-submit {
  width: 100%;
  padding: 12px 16px;
  margin-top: 6px;
  background-color: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.login-btn-submit:hover {
  background-color: var(--brand-navy-dark);
}

.login-card-footer {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 24px;
  text-align: center;
}

/* ==========================================================================
   2. NAVBAR SYSTEMU
   ========================================================================== */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px !important;
  width: auto !important;
  max-width: 170px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-sky);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1px;
}

.navbar-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover:not(.active):not(.nav-logout) {
  color: var(--brand-navy);
  background-color: #f1f5f9;
}

.nav-link.active {
  background-color: var(--brand-navy) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.nav-link.nav-logout {
  color: var(--danger-color);
  font-weight: 700;
}

.nav-link.nav-logout:hover {
  background-color: var(--danger-bg);
}

/* ==========================================================================
   3. MENU 9 KROPEK & PROFIL GOOGLE-STYLE
   ========================================================================== */
.apps-launcher-wrapper,
.profile-launcher-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.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;
}

.btn-apps-trigger:hover,
.btn-apps-trigger.active {
  background-color: var(--brand-sky-soft);
  color: var(--brand-navy);
}

.btn-apps-trigger .material-symbols-rounded {
  font-size: 23px;
}

.apps-dropdown-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  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: 2000;
}

.apps-dropdown-card.show {
  display: flex;
  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-sky-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-sky-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;
}

.btn-profile-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-profile-trigger:hover,
.btn-profile-trigger.active {
  border-color: var(--brand-navy);
  transform: scale(1.05);
}

.nav-profile-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-dropdown-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dropdown);
  padding: 24px 20px 18px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2000;
}

.profile-dropdown-card.show {
  display: flex;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background-color: var(--brand-sky-soft);
  margin-bottom: 10px;
}

.dropdown-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-user-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.badge-role-admin {
  background-color: #eff6ff;
  color: var(--brand-navy);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.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-sky-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;
}

/* ==========================================================================
   4. GRANATOWY BANER HERO
   ========================================================================== */
.hero-admin-section {
  background: var(--brand-navy-gradient);
  color: #ffffff;
  padding: 44px 20px 48px;
  text-align: center;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================================================
   5. UKŁAD STRONY
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 32px 20px 60px;
}

.content-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.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;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-top: 4px;
}

.badge-brand-company {
  background-color: #edf5fd;
  border: 1px solid #bfdbfe;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.btn-pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-pill-action:hover {
  background-color: var(--brand-sky-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);
}

/* ==========================================================================
   6. KARTY KPI
   ========================================================================== */
.stats-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.stat-box.accent-blue {
  border-top: 3.5px solid var(--brand-navy);
  border-left: 3.5px solid var(--brand-navy);
}

.stat-box.accent-sky {
  border-top: 3.5px solid var(--brand-sky);
  border-left: 3.5px solid var(--brand-sky);
}

.stat-box.accent-green {
  border-top: 3.5px solid var(--success-color);
  border-left: 3.5px solid var(--success-color);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-number.color-blue { color: var(--brand-navy); }
.stat-number.color-sky  { color: var(--brand-sky); }
.stat-number.color-green { color: var(--success-color); }

.stat-label-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   7. CENTRUM OPERACYJNE
   ========================================================================== */
.operations-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);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.operations-header {
  margin-bottom: 22px;
}

.operations-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.operations-subtitle {
  font-size: 13px;
  color: var(--text-light);
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module-tile {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.15s ease;
}

.module-tile:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.module-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-navy);
}

.module-tile-head .material-symbols-rounded {
  font-size: 20px;
}

.module-tile-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.btn-module-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-navy);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.btn-module-primary:hover {
  background-color: var(--brand-navy-dark);
}

.btn-module-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-module-outline:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* ==========================================================================
   8. FORMULARZE, KARTY SEKCJI I SIATKA SERWISÓW (BEZ UCINANIA)
   ========================================================================== */
.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;
  border-bottom: 1px solid var(--border-color);
}

.header-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.circle-icon-lead {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--brand-sky-soft);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.section-card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-form-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.required-star {
  color: var(--danger-color);
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-sky-soft);
}

.form-hint {
  font-size: 11px;
  color: var(--text-light);
}

.input-addon-group {
  display: flex;
  align-items: stretch;
}

.input-addon-group .addon-field {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-addon-text {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background-color: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-left: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 12.5px;
}

.btn-input-addon {
  background-color: var(--brand-sky-soft);
  border: 1.5px solid var(--border-color);
  border-left: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 12px;
  padding: 0 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-input-addon:hover {
  background-color: #dbeafe;
}

.form-full-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Siatka serwisów - dynamiczne, szerokie kafelki */
.services-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.service-checkbox-card {
  position: relative;
  display: block;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background-color: var(--bg-surface);
  transition: all 0.15s ease;
  min-height: 84px;
}

.service-checkbox-card:hover {
  border-color: var(--brand-navy);
  background-color: #fafbfc;
}

.service-checkbox-card input {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: var(--brand-navy);
  width: 16px;
  height: 16px;
}

.scc-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.scc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-sky-soft);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.scc-icon .material-symbols-rounded {
  font-size: 22px;
}

/* Wnętrze karty serwisu - pełny brak ucinania tekstu */
.scc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.scc-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.scc-meta-domain {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.scc-meta-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.scc-meta-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.scc-meta span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4;
}

.service-checkbox-card input:checked ~ .scc-body .scc-icon {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.custom-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.custom-switch-label input {
  accent-color: var(--brand-navy);
  width: 16px;
  height: 16px;
}

.form-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   9. TABELA BAZY KONT
   ========================================================================== */
.table-search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  gap: 8px;
}

.table-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text-main);
  width: 200px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: var(--brand-sky-soft);
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 18px;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 12.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: #fafcff;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.user-cell-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.user-cell-email {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.badge-role {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-role-super {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-role-staff {
  background-color: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.badge-role-client {
  background-color: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.service-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.app-mini-badge {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-tag-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-status-green {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-status-yellow {
  background-color: #fefce8;
  color: #a16207;
  border: 1px solid #fde047;
}

.btn-table-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.btn-table-action:hover {
  background-color: var(--brand-sky-soft);
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-table-danger:hover {
  background-color: var(--danger-bg);
  color: var(--danger-color);
  border-color: #fecaca;
}

.btn-table-action .material-symbols-rounded {
  font-size: 17px;
}

/* ==========================================================================
   10. DZIENNIK AUDYTU
   ========================================================================== */
.audit-list {
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.audit-item:last-child {
  border-bottom: none;
}

.audit-icon-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-navy);
  flex-shrink: 0;
}

.audit-text {
  flex: 1;
  color: var(--text-main);
}

.audit-text code {
  background-color: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-navy);
}

.audit-time {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}

/* ==========================================================================
   11. STOPKA
   ========================================================================== */
.footer-plain {
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-plain a {
  color: var(--brand-navy);
  text-decoration: underline;
}

.footer-plain a:hover {
  color: var(--brand-sky);
}

/* ==========================================================================
   12. RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 992px) {
  .stats-grid-row { grid-template-columns: 1fr; }
  .operations-grid { grid-template-columns: 1fr; }
  .navbar-container { flex-direction: column; gap: 14px; align-items: flex-start; }
  .navbar-right-group { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .navbar-nav { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .form-grid-two { grid-template-columns: 1fr; }
  .services-selector-grid { grid-template-columns: 1fr; }
  .navbar { padding: 12px 16px; }
  .login-card { padding: 30px 20px 24px; }
}