/* ===================== THEME ===================== */
:root {
  --primary-green: #3f4a36;
  --primary-hover: #19a463;
  --text-dark: #404145;
  --text-gray: #62646a;
  --bg-body: #f2d3d8;
  --bg-white: #ffffff;
  --border-color: #e4e5e7;
  --radius: 8px;
  --shadow-card: 0 0.14px 2.29266px rgba(0, 0, 0, 0.032), 0 0.37px 4.42626px rgba(0, 0, 0, 0.048), 0 3px 7px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================== BASE ===================== */
body {
  font-family: "Macan", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h2, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

a { text-decoration: none; color: inherit; }

/* ===================== 1. "ЖИВИЙ" ФОН ===================== */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* М'які зелені плями на фоні */
    background: 
        radial-gradient(circle at 10% 20%, rgba(29, 191, 115, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ===================== 2. HEADER SECTION (SCROLLS AWAY) ===================== */
.greeting-header {
  padding: 30px 20px 10px;
  text-align: center;
  background: transparent; /* Щоб було видно фон */
}

.greeting-header h2 {
  font-size: 32px;
  margin-bottom: 5px;
}

.hero-subtitle {
  color: var(--text-gray);
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===================== 3. STICKY TOOLBAR (STICKS TO TOP) ===================== */
.sticky-toolbar {
    position: sticky;       /* Липне до верху */
    top: 0;
    z-index: 1000;          /* Поверх карти */
    
    padding: 15px 0;
    margin-bottom: 25px;

    /* Ефект скла */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    
    transition: all 0.3s ease;
}

.toolbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Search Bar styling inside toolbar */
.top-search-bar {
  width: 100%;
  max-width: 600px;
  display: flex;
  height: 44px; /* Трохи менше для компактності */
}

.search-input {
  flex-grow: 1;
  padding: 10px 16px;
  font-size: 15px;
  border: 1px solid #b5b6ba;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  background: white;
}
.search-input:focus { border-color: var(--text-dark); }

.search-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 0 20px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--primary-hover); }

/* Buttons styling inside toolbar */
.dashboard-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.dashboard-options :is(button, .btn, form button) {
  background: white;
  color: var(--text-gray);
  border: 1px solid #d4d5d8;
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.dashboard-options :is(button, .btn, form button):hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
  background: #fcfcfc;
}

/* Buttons specific styles */
.dashboard-options .btn-warning {
  background: var(--text-dark) !important;
  color: white !important;
  border-color: var(--text-dark) !important;
}

#location-btn {
  color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
}

/* ===================== MAIN CONTENT ===================== */
.client-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 50px 20px;
}

/* Wrapper for map to give it a card look */
.content-card {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

/* Map specific */
#nursesMap {
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ===================== SIDEBAR LISTS ===================== */
.providers-scroll-area {
    height: 480px; 
    overflow-y: auto; 
    padding-right: 5px;
}

.nurse-item, .request-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.nurse-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: #ccc;
}

.nurse-item .card-body {
  padding: 14px;
}

.badge-online { background-color: #e8f7f0 !important; color: var(--primary-green) !important; }
.badge-offline { background-color: #f5f5f5 !important; color: #b5b6ba !important; }

.btn-premium-secondary {
  background: white;
  color: var(--text-gray);
  border: 1px solid #ccc;
  width: 100%;
  padding: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 10px;
  transition: 0.2s;
}
.btn-premium-secondary:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background-color: #f0fdf4;
}

/* My Requests Style */
#myRequestsList .card {
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  background: white;
}

/* ===================== SCROLLBAR & RESPONSIVE ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

@media (max-width: 768px) {
  .sticky-toolbar { padding: 10px 0; top: 0; }
  .top-search-bar { flex-direction: row; margin-bottom: 10px;}
  .dashboard-options { overflow-x: auto; white-space: nowrap; justify-content: flex-start; padding-bottom: 5px; width: 100%; }
}


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

#password-input {
    padding-right: 40px; /* Залишаємо місце справа, щоб текст не налізав на око */
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d; /* Сірий колір іконки */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #333; /* Колір при наведенні */
}

/* Прибираємо стандартний контур кнопки при фокусі (опціонально) */
.password-toggle-btn:focus {
    outline: none;
}