/* General Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  color: #262626;
  text-align: center;
}

h1 {
  
  font-size: 3rem;
  text-align: center;
  color: #00BCD5;
  margin: 20px 0;
}
/* Reset default margins and set a font */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Sidebar: Hidden by default with a sliding effect */
.sidebar {
  height: 100%;           /* Full height of the viewport */
  width: 0;              /* Hidden initially */
  position: fixed;        /* Fixed position on the left */
  top: 0;
  right: 0;
  background-color: white; /* Dark background */
  overflow-x: hidden;     /* Prevent horizontal scrolling */
  transition: 0.5s;       /* Smooth width transition */
  padding-top: 60px;      /* Space for the close button */
}

/* Sidebar links */
.sidebar a {
  padding: 15px 25px;    /* Spacing for clickable area */
  text-decoration: none;  /* Remove underline */
  font-size: 18px;
  color: black;
  display: block;         /* Stack links vertically */
  transition: 0.3s;       /* Smooth hover effect */
}

/* Hover effect for sidebar links */
.sidebar a:hover {
  background-color: white; /* Lighter gray on hover */
}

/* Close button styling */
.sidebar .closebtn {
  position: absolute;    /* Positioned at the top-right */
  top: 0;
  left: 0;
  font-size: 36px;       /* Larger size for visibility */
  margin-left: 50px;     /* Spacing adjustment */
}

/* Open button styling */
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: white; /* Green background */
  color: black;
  padding: 10px 15px;
  border: none;
  position: fixed;        /* Stays in place */
  top: 10px;
  right: 10px;
}

/* Hover effect for open button */
.openbtn:hover {
  background-color: rgba(0, 0, 0, 0.399); /* Darken on hover */
}

/* Main content: Adjusts position when sidebar opens */
#main {
  transition: margin-left 0.5s; /* Smooth margin shift */
  padding: 20px;                /* Inner spacing */
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
}

.profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid #dbdbdb;
  margin-right: 20px;
}

.profile-info h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 300;
}

.profile-info p {
  margin: 5px 0;
  color: #8e8e8e;
  font-size: 14px;
}
.verified-badge {
  color: #2e7d32;
  background-color: #e8f5e9;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  cursor: default;
}
.verified-badge i {
  color: #2e7d32;
}

/* Appointment Button */
.appointment-btn {
  background: #fff;
  color: #262626;
  border: 1px solid #dbdbdb;
  padding: 5px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  outline: none;
}

.appointment-btn:hover {
  background: #fafafa;
}

/* Profile Navigation */
.profile-nav {
  background: #fff;
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
}

.profile-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.profile-nav li {
  margin: 0 15px;
}

.profile-nav li a {
  text-decoration: none;
  color: #8e8e8e;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-nav li.active a,
.profile-nav li a:hover {
  color: #262626;
  font-weight: 500;
  border-bottom: 2px solid #262626;
  padding-bottom: 5px;
}

/* Profile Stats (if needed) */
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px auto;
  background: #fff;
  padding: 15px;
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  width: 80%;
  max-width: 600px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.profile-stats p {
  margin: 0;
  color: #8e8e8e;
  font-size: 14px;
}

/* Post Gallery */
.profile-posts {
  background: #fff;
  padding: 15px;
  border: 1px solid #dbdbdb;
  border-radius: 3px;
}

.profile-posts h3 {
  text-align: left;
  font-size: 16px;
  margin-bottom: 10px;
  color: #262626;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.post-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid #efefef;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.post-gallery img:hover {
  transform: scale(1.03);
}

/* About Section Styles */
#aboutContent {
  padding: 20px;
}

.about-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.about-item:last-child {
  border-bottom: none;
}

.profile-pic-container {
  margin-bottom: 20px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3498db;
}

.about-item h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-item ul {
  list-style: none;
  padding: 0;
}

.about-item li {
  margin-bottom: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  color: #3498db;
}

.social-links i {
  font-size: 1.2rem;
}
/* Footer */
footer {
  margin-top: 20px;
  padding: 10px;
  background: #fff;
  color: #8e8e8e;
  border-top: 1px solid #dbdbdb;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .profile-pic {
    margin: 0 auto 10px;
    width: 90px;
    height: 90px;
  }
  
  .profile-stats {
    flex-direction: row;
    gap: 15px;
  }
  
  .post-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-nav ul {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .profile-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .post-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* Content Sections */
.content-section {
  display: none;
  width: 100%;
  padding: 20px;
  background: #fff;
  /* Adjust min-height as needed to fill the screen below the nav */
  min-height: calc(100vh - 200px);
}

.content-section.active {
  display: block;
}
/* doctorProfile.css */
/* ========== Existing styles above this line ========== */

/* ---------------- Review & Rating ---------------- */
.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}
.rating-summary .avg-rating {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rating-summary .stars i {
  color: #FFC107;
  margin-right: 2px;
}
.rating-summary #totalReviews {
  color: #555;
  font-size: 1rem;
}
.rating-distribution {
  width: 80%;
  max-width: 400px;
  margin-top: 15px;
}
.rating-distribution .dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin: 4px 0;
}
.rating-distribution .dist-row span.star-label {
  width: 30px;
}
.rating-distribution .dist-row .bar {
  flex: 1;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
}
.rating-distribution .dist-row .bar-fill {
  height: 100%;
  background: #15bdd0;
  width: 0;
}

/* Reviews List */
.reviews-list {
  margin: 20px;
}
.review-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
}
.review-item .stars {
  margin-bottom: 8px;
}
.review-item .stars i {
  color: #FFC107;
}
.review-item p {
  margin: 8px 0;
}
.review-item small {
  color: #888;
}

/* Review Form */
.review-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  max-width: 500px;
  margin: 0 auto 40px;
  text-align: left;
}
.review-form h4 {
  margin-top: 0;
}
.review-form label {
  display: block;
  margin: 8px 0 4px;
}
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.review-form .submit-review {
  margin-top: 12px;
  background: #15bdd0;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.review-form .submit-review:hover {
  background: #0ea3b2;
}
/* ========== Existing styles below this line ========== */
.fee-box {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #15bdd0;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}


/* === Mobile adjustments (same file) === */
.content-section{ min-height: calc(100dvh - 200px); }
@media (max-width: 600px){
  .content-section{ min-height:auto; }
  .profile-stats{ width:100%; max-width:none; gap:12px; }
  .profile-header{ flex-wrap:wrap; }
}
