* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.navbar {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-logo .sub-brand {
  font-size: 0.9rem;
  opacity: 0.9;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-img-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0284c7;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  width: 100%;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover { color: #2563eb; background-color: #f1f5f9; }
.tab-btn.active { color: #2563eb; border-bottom-color: #2563eb; background-color: #ffffff; }

.tab-content { width: 100%; }

.card {
  background: white;
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 992px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.input-group { margin-bottom: 1.2rem; }
.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
}

.input-group input, 
.input-group textarea, 
.input-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
}

.input-group input:focus, 
.input-group textarea:focus, 
.input-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; width: auto; }
.btn-primary { background-color: #2563eb; color: white; }
.btn-primary:hover { background-color: #1d4ed8; }
.btn-secondary { background-color: #f1f5f9; color: #334155; }
.btn-secondary:hover { background-color: #e2e8f0; }

.btn-fav {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-fav.active {
  background-color: #f59e0b;
  color: #ffffff;
}

.active-filter {
  background-color: #2563eb !important;
  color: white !important;
}

/* WIZYTÓWKA CYFROWA */
.business-card-view {
  max-width: 650px;
  margin: 0 auto;
  border: 2px solid #0284c7;
  border-radius: 16px;
  padding: 2.5rem;
  background: #ffffff;
}

.business-card-header { display: flex; justify-content: space-between; align-items: center; }
.business-card-text h2 { font-size: 1.5rem; color: #1e3a8a; }
.business-card-text h3 { font-size: 1.2rem; color: #3b82f6; font-weight: 500; }
.divider { margin: 1.5rem 0; border: 0; border-top: 1px dashed #cbd5e1; }
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; }
.contact-item .icon { font-size: 1.4rem; width: 32px; text-align: center; }
.contact-item .label { display: block; font-size: 0.8rem; color: #64748b; font-weight: 600; }
.copyable-text { color: #1e3a8a; font-weight: 600; text-decoration: none; user-select: all; }

.notes-box {
  background-color: #f1f5f9;
  border-left: 4px solid #2563eb;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin-top: 0.5rem;
  white-space: pre-line;
}

.pending-box {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.hidden { display: none !important; }
.message.error { color: #ef4444; margin-top: 1rem; font-weight: 600; }
.message.success { color: #10b981; margin-top: 1rem; font-weight: 600; }

.cards-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.exercise-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 1.25rem; border-radius: 8px; }

.app-footer {
  background-color: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}
.app-footer a { color: #38bdf8; text-decoration: none; }