/* Healthcare Providers Styling */

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

body {
  font-family: 'Rubik', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Top Bar */
.top-bar {
  background: #055948;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-btn {
  background: white;
  color: #055948;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s;
  border: 2px solid white;
}

.top-btn:hover {
  background: #044738;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Navbar */
.navbar {
  background: white;
  padding: 16px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 48px;
  width: 48px;
  border-radius: 8px;
}

.site-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #055948;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #055948;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: #f0f9f7;
  color: #044738;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 28px;
  height: 3px;
  background: #055948;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: #055948;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #055948 0%, #077d63 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: 2.5em;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-header p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Search and Filter Section */
.search-filter-section {
  background: white;
  padding: 32px 20px;
  margin: -32px auto 32px auto;
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  font-family: 'Rubik', sans-serif;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  outline: none;
  border-color: #055948;
}

.search-bar button {
  padding: 14px 32px;
  background: #055948;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Rubik', sans-serif;
}

.search-bar button:hover {
  background: #044738;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,89,72,0.3);
}

.filter-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-options select {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
  background: white;
}

/* Provider Stats */
.provider-stats {
  text-align: center;
  padding: 24px;
  background: #f0f9f7;
  border-radius: 12px;
  margin-bottom: 32px;
}

.provider-stats h3 {
  color: #055948;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.provider-stats p {
  color: #666;
  font-size: 0.95em;
}

/* Providers Container */
.providers-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* Provider Card */
.provider-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.provider-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,89,72,0.15);
  border-color: #055948;
}

.provider-header {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #f0f0f0;
}

.provider-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0f9f7;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.provider-info {
  flex: 1;
}

.provider-name {
  font-size: 1.3em;
  font-weight: 700;
  color: #055948;
  margin-bottom: 4px;
}

.provider-location {
  color: #666;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  margin-top: 8px;
}

.provider-body {
  padding: 24px;
  flex: 1;
}

.provider-description {
  color: #555;
  font-size: 0.95em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.provider-services {
  margin-bottom: 20px;
}

.provider-services h4 {
  font-size: 0.95em;
  color: #055948;
  margin-bottom: 12px;
  font-weight: 600;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  background: #f0f9f7;
  color: #055948;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.85em;
  font-weight: 500;
}

.provider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.9em;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff9800;
  font-weight: 600;
}

.hours {
  color: #666;
  font-size: 0.85em;
}

.provider-footer {
  padding: 20px 24px;
  background: #f8f9fa;
  display: flex;
  gap: 12px;
}

.btn-view-details {
  flex: 1;
  padding: 12px 24px;
  background: white;
  color: #055948;
  border: 2px solid #055948;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
}

.btn-view-details:hover {
  background: #f0f9f7;
}

.btn-book {
  flex: 1;
  padding: 12px 24px;
  background: #055948;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
}

.btn-book:hover {
  background: #044738;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,89,72,0.3);
}

/* Footer */
.footer {
  margin-top: 64px;
  background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .page-header h1 {
    font-size: 2em;
  }

  .providers-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input {
    min-width: 100%;
  }

  .provider-footer {
    flex-direction: column;
  }
}

/* Login Dialog Styles */
.app-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.app-dialog-box {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

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

.app-dialog-box h3 {
  color: #055948;
  margin-bottom: 12px;
  font-size: 1.5em;
}

.app-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.app-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background: #055948;
  color: white;
}

.app-btn:hover {
  background: #044738;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 89, 72, 0.3);
}

.web-btn {
  background: #f0f0f0;
  color: #333;
}

.web-btn:hover {
  background: #e0e0e0;
}
