/* === Header Context (§9.6) === */
.page-context { font-size: 16px; font-weight: 600; color: #666; margin-bottom: 5px; text-transform: uppercase; }

/* === Layout: nav + main fixes === */
.navigation__content { display: flex; flex-direction: column; height: calc(100% - 60px); }
.menu { flex-grow: 1; overflow-y: auto; }
.padding-15 { padding: 15px; }
.select { width: 100%; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
.menu__toggle.disabled { cursor: not-allowed; }
.navigation__cms-v { margin-top: auto; padding: 15px; border-top: 1px solid #333; display: block; font-size: 11px; color: #666; }

/* === User dropdown === */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid #ddd; z-index: 1000; min-width: 160px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 10px 15px; text-decoration: none; color: #333; font-size: 13px; }
.dropdown-item:hover { background: #f5f5f5; }

/* === Block (Gienkowy wzór dla kafli/sekcji) === */
.block { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 20px; overflow: hidden; }
.block__header { padding: 14px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.block__title { margin: 0; font-size: 16px; color: #2c3e50; font-weight: 600; }
.block__content { padding: 20px; }

/* === Stat cards (dashboard) === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-left: 4px solid #3498db; }
.stat-card.linkedin { border-left-color: #0077b5; }
.stat-card.gbp { border-left-color: #4285f4; }
.stat-card.warning { border-left-color: #f39c12; }
.stat-card.success { border-left-color: #27ae60; }
.stat-card h3 { margin: 0 0 8px; font-size: 12px; color: #7f8c8d; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #2c3e50; line-height: 1; margin: 0; }
.stat-card .stat-meta { font-size: 12px; color: #7f8c8d; margin-top: 6px; }
.stat-card .trend { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-top: 6px; }
.trend.up { background: #e8f5e9; color: #2e7d32; }
.trend.down { background: #ffebee; color: #c62828; }
.dashboard-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .dashboard-row { grid-template-columns: 1fr; } }

/* === Tabs drilldown === */
.tabs-container { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px; }
.tabs-nav { display: flex; flex-direction: row; gap: 0; border-bottom: 1px solid #e0e0e0; background: #f9f9f9; padding: 0 10px; }
.tab-link { padding: 12px 20px; color: #555; text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent; transition: all 0.15s; }
.tab-link:hover { color: #3498db; background: #fff; }
.tab-link.active { color: #2c3e50; border-bottom-color: #3498db; background: #fff; font-weight: 600; }
.tab-content { padding: 20px; }
.tab-content > .block { box-shadow: none; }

/* === Buttons UNIFIED (BEM + Bootstrap) === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 4px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; cursor: pointer; border: 1px solid transparent; background: #3498db; color: #fff; vertical-align: middle; box-sizing: border-box; transition: all 0.15s; }
.btn:hover { background: #2980b9; color: #fff; }
.btn--primary, .btn-primary, .btn--fill { background: #3498db; color: #fff; border-color: #3498db; }
.btn--primary:hover, .btn-primary:hover, .btn--fill:hover { background: #2980b9; color: #fff; }
.btn--secondary, .btn-secondary { background: #fff; color: #3498db; border-color: #3498db; }
.btn--secondary:hover, .btn-secondary:hover { background: #ecf0f1; color: #2980b9; }
.btn-info { background: #3498db; color: #fff; border-color: #3498db; }
.btn-success { background: #27ae60; color: #fff; border-color: #27ae60; }
.btn-success:hover { background: #229954; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; border-color: #f39c12; }
.btn--small, .btn-sm { padding: 4px 10px; font-size: 11px; }
.btn--large, .btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-group { display: inline-flex; gap: 5px; }
.btn-pill { display: inline-block; border-radius: 50px; padding: 4px 12px; font-size: 11px; text-transform: uppercase; font-weight: 600; }
.btn-success-light { background: #e6fffa; color: #00897b; border: 1px solid #b2dfdb; }
.btn-warning-light { background: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }
.btn-danger-light { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.btn-info-light { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* === Tabela listy === */
.table-list { width: 100%; border-collapse: collapse; }
.table-list th, .table-list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; vertical-align: middle; }
.table-list th { color: #7f8c8d; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.table-list a { color: #3498db; text-decoration: none; }

/* Override Bootstrap 4 default `.table td { vertical-align: top }` — w V2 chcemy wyśrodkowanie pionowe (zgodne z Bootstrap 5 default). Dotyczy list postów, kont, userów, configów itd.
   !important bo Bootstrap definiuje rownie specyficzne reguly per modyfikator (.table-bordered td) ktore mialy kolizje. */
.table th, .table td,
.table-bordered th, .table-bordered td,
.table-striped th, .table-striped td { vertical-align: middle !important; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-scheduled { background: #fff8e1; color: #f57f17; }
.badge-published { background: #e8f5e9; color: #2e7d32; }
.badge-failed { background: #ffebee; color: #c62828; }

/* === Alerty BEM (komunikaty walidacji, info, success, error) === */
.alert--success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert--info    { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }
.alert--warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
.alert--error,
.alert--danger  { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }

/* === Alerty dashboard === */
.alert-item { padding: 12px; margin-bottom: 10px; border-radius: 6px; background: #fff8e1; border-left: 4px solid #f39c12; font-size: 13px; }
.alert-item.danger { background: #ffebee; border-left-color: #e74c3c; }
.history-filter-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; position: static; width: 100%; margin: 0 0 20px; padding: 12px 15px; border-radius: 6px; border-left: 4px solid #3498db; background: #e3f2fd; color: #2c3e50; font-size: 13px; cursor: default; }
.history-filter-banner .btn { flex-shrink: 0; }

/* === Quick actions === */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-actions a { background: #3498db; color: #fff; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500; }
.quick-actions a:hover { background: #2980b9; }
.quick-actions a.secondary { background: #95a5a6; }
.quick-actions a.secondary:hover { background: #7f8c8d; }

/* === Auth widoki (01-logowanie, 02-reset, 03-wybor-firmy) === */
.auth-page { background: #f0f2f5; min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; max-width: 420px; }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo h1 { margin: 0; color: #2c3e50; font-size: 28px; font-weight: 600; }
.login-logo p { margin: 5px 0 0; color: #7f8c8d; font-size: 13px; }
.btn-login { width: 100%; padding: 12px; background: #3498db; color: #fff; border: 0; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.btn-login:hover { background: #2980b9; }

/* === Wybór firmy === */
.top-bar { background: #fff; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.companies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.company-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); text-decoration: none; color: inherit; transition: all 0.2s; text-align: center; display: block; }
.company-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.company-card .icon { font-size: 48px; margin-bottom: 15px; }
.company-card h3 { margin: 0 0 8px; color: #2c3e50; }
.company-card p { margin: 0; color: #7f8c8d; font-size: 13px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-top: 10px; }
.status-active { background: #e8f5e9; color: #2e7d32; }

/* === Image upload zone === */
.image-upload-zone { border: 2px dashed #ccc; padding: 20px; text-align: center; border-radius: 8px; background: #f9f9f9; }

/* === Auth form helpers === */
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 5px; color: #555; font-size: 14px; }
.field input[type="email"], .field input[type="password"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.field-checkbox { display: flex; align-items: center; gap: 8px; }
.field-checkbox label { margin: 0; font-size: 13px; cursor: pointer; }
.forgot { text-align: center; margin-top: 20px; }
.forgot a { color: #3498db; text-decoration: none; font-size: 13px; }
.lang-flags { position: absolute; top: 20px; right: 20px; }
.lang-flags img { width: 24px; height: 16px; margin-left: 5px; cursor: pointer; }
