/* ================================================================
   BASE.CSS — wspólne style dla wszystkich stron pacjenta
   dbamosiebie
   ================================================================ */

/* ── CSS VARIABLES ── */
:root {
  --teal:       #0a8f8f;
  --teal-dark:  #076b6b;
  --teal-mid:   #0d9e9e;
  --teal-light: #e6f7f7;
  --bg:         #f7f8f6;
  --bg2:        #ffffff;
  --border:     #e4e7ec;
  --text:       #111827;
  --text2:      #6b7280;
  --text3:      #9ca3af;
  --green:      #16a34a;
  --green-bg:   #dcfce7;
  --green-light:#f0fdf4;
  --amber:      #d97706;
  --amber-bg:   #fef3c7;
  --amber-light:#fffbeb;
  --red:        #dc2626;
  --red-bg:     #fee2e2;
  --blue:       #2563eb;
  --blue-bg:    #eff6ff;
  --shadow:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.11);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse-dot {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── NAV ── */
.nav {
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.3px;
  margin-right: 40px;
  text-decoration: none;
}
.logo span { opacity: 0.65; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nl {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.nl:hover  { background: rgba(255,255,255,0.1);  color: #fff; }
.nl.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; }

.nl-doctor {
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  margin-left: 8px;
  white-space: nowrap;
}
.nl-doctor:hover { background: rgba(0,0,0,0.4); color: #fff; }

.nbadge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  text-align: center;
  line-height: 15px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all .15s;
}
.btn-ow { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-w  { background: #fff; color: var(--teal-dark); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

/* ── UTILITY CLASSES ── */
.fu { animation: fadeUp .4s ease both; }

.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  margin: 3px 3px 0 0;
}
.tag-s { background: #e6f7f7; color: var(--teal-dark); border: 1px solid #b2e0e0; }
.tag-d { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
