/* -------------------------------------------------------------
 * Panel Licencjonowania - ZTL.AGENCY
 * Custom CSS Style Sheet (Glassmorphism & Ciemny Motyw)
 * ------------------------------------------------------------- */

/* Zmienne CSS dla spójnego motywu */
:root {
  --bg-primary: #0b0f19;
  --bg-secondary: rgba(22, 28, 45, 0.6);
  --bg-sidebar: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(30, 41, 59, 0.45);
  --bg-modal: rgba(15, 23, 42, 0.95);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #4f46e5;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0b0f19;
  
  --color-primary: #4f46e5;
  --color-primary-hover: #6366f1;
  --color-accent: #06b6d4;
  --color-accent-hover: #22d3ee;
  --color-danger: #ef4444;
  --color-danger-hover: #f87171;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
}

/* Reset styli */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Klasy pomocnicze */
.hidden {
  display: none !important;
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

/* -------------------------------------------------------------
 * 1. EKRAN LOGOWANIA (AUTH SCREEN)
 * ------------------------------------------------------------- */
.auth-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: #080c14;
}

.auth-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease-out;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

.auth-logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.auth-form h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.auth-form .form-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  margin-top: -15px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: var(--transition-fast);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: var(--transition-fast);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--text-inverse);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-logout {
  background: transparent;
  color: #f87171;
  justify-content: flex-start;
  padding: 10px 14px;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

.error-banner {
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.85rem;
  text-align: center;
  animation: shake 0.2s ease-in-out;
}

/* -------------------------------------------------------------
 * 2. LAYOUT GŁÓWNY (MAIN LAYOUT)
 * ------------------------------------------------------------- */
.app-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  animation: fadeIn 0.3s ease-out;
}

/* Panel boczny (Sidebar) */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 35px;
  padding-left: 10px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}

.sidebar-brand h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.menu-item i {
  width: 20px;
  height: 20px;
}

.menu-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.45), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Główny obszar roboczy (Main Content) */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow-y: auto;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 35px;
}

.header-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}

.header-title p {
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.system-time {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.system-time i {
  width: 14px;
  height: 14px;
}

/* Kontenery zakładek */
.tab-container {
  flex-grow: 1;
}

.tab-content {
  animation: tabFadeIn 0.3s ease-out;
}

/* -------------------------------------------------------------
 * 3. WIDOK: PULPIT (DASHBOARD)
 * ------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  width: 24px;
  height: 24px;
}

.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.icon-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.dashboard-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

@media (max-width: 900px) {
  .dashboard-widgets {
    grid-template-columns: 1fr;
  }
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.glow-card {
  position: relative;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-glow);
}

.widget-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.widget-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.widget-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-summary {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

/* -------------------------------------------------------------
 * 4. KARTY MODUŁÓW (MODULES GRID)
 * ------------------------------------------------------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.module-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.module-card-title h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.module-card-title code {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent);
}

.module-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--color-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-card-icon i {
  width: 20px;
  height: 20px;
}

.module-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.module-card-stats {
  display: flex;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-bottom: 20px;
  gap: 20px;
}

.card-stat-item {
  display: flex;
  flex-direction: column;
}

.card-stat-val {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.module-card-actions {
  display: flex;
  gap: 8px;
}

.module-card-actions button {
  flex-grow: 1;
}

/* -------------------------------------------------------------
 * 5. TABELE I FILTRY (TABLES & FILTER BAR)
 * ------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.search-input {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-input i {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-input input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-family);
  transition: var(--transition-fast);
}

.search-input input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(15, 23, 42, 0.4);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table code {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* Wygodne przyciski w tabeli */
.btn-icon-only {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-icon-only:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon-only.btn-delete:hover {
  color: #fff;
  background-color: var(--color-danger);
  border-color: var(--color-danger);
}

/* Statusy badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
}

.badge-active {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-inactive {
  background-color: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.badge-expired {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.badge-domain-pending {
  font-style: italic;
  color: var(--color-warning);
}

/* -------------------------------------------------------------
 * 6. MODALE (MODAL WINDOWS)
 * ------------------------------------------------------------- */
.modal-wrapper {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  overflow: hidden;
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-form {
  padding: 24px;
}

.modal-form select,
.modal-form textarea,
.modal-form input[type="text"],
.modal-form input[type="date"],
.modal-form input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: var(--transition-fast);
}

.modal-form select:focus,
.modal-form textarea:focus,
.modal-form input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.modal-form textarea {
  resize: vertical;
}

.modal-form .help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.modal-form .input-readonly {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: not-allowed;
}

.checkbox-group {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* -------------------------------------------------------------
 * 7. KLUCZOWE ANIMACJE (KEYFRAMES & TRANSITIONS)
 * ------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* -------------------------------------------------------------
 * 8. WIDOK: ZGŁOSZENIA (TICKETS SUPPORT CHAT)
 * ------------------------------------------------------------- */
.ticket-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.ticket-item.active {
  background-color: rgba(79, 70, 229, 0.08);
  border-left-color: var(--color-primary-hover);
}

.ticket-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ticket-item-subject {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.ticket-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Statusy Zgłoszeń */
.badge-ticket-open {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-ticket-replied {
  background-color: rgba(79, 70, 229, 0.15);
  color: var(--color-primary-hover);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-ticket-closed {
  background-color: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Czat Bąbelki */
.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 0.9rem;
  position: relative;
  word-break: break-word;
}

.bubble-client {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.bubble-admin {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-primary), rgba(79, 70, 229, 0.8));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.bubble-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
  text-align: right;
}

.bubble-admin .bubble-meta {
  color: rgba(255, 255, 255, 0.75);
}

/* Badges typów zdarzeń logów systemowych */
.badge-log {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
}

.badge-log-unlicensed {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-log-mismatch {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-log-fail {
  background-color: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-log-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-log-info {
  background-color: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Przełącznik języków */
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}



