/* === Base === */
body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #333;
}
h1,h2,h3,h4 {
  font-weight: 700;
  margin-bottom: .5rem;
}
main { padding: 1rem; }

/* === Header === */
header {
  background: #ff4d4d;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

/* === Hamburger === */
.hamburger {
  width:30px;
  height:24px;
  border:none;
  background:transparent;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:0;
  z-index:1001;
}
.hamburger span {
  display:block;
  height:4px;
  width:100%;
  background:white;
  border-radius:4px;
  transition:.3s;
}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);} 
.hamburger.active span:nth-child(2){opacity:0;} 
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px);} 

/* === Nav Menu === */
#navMenu {
  position:absolute;
  top:60px;
  right:10px;
  background:white;
  border:1px solid #ddd;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  display:flex;
  flex-direction:column;
  padding:.5rem;
  min-width:180px;
}
#navMenu a {
  padding:.75rem 1rem;
  color:#333;
  text-decoration:none;
  border-radius:6px;
  font-weight:500;
}
#navMenu a:hover {
  background:#ff4d4d;
  color:white;
}

/* === Tabs === */
.tab { padding:2rem; animation:fadeIn .5s ease; }
.hidden { display:none!important; }

/* === Hero + Team === */
.hero {
  text-align:center;
  max-width:800px;
  margin:2rem auto;
}
.team-section {
  text-align:center;
  margin:3rem auto;
}
.team-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:2rem;
  max-width:1000px;
  margin:0 auto;
}
.team-member {
  background:white;
  padding:1.5rem;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  transition:.3s;
}
.team-member:hover { transform:translateY(-5px); }
.team-member img {
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:1rem;
  border:3px solid #ff4d4d;
}
.team-member .role {
  color:#ff4d4d;
  font-weight:bold;
  margin-bottom:.5rem;
}

/* === Booking === */
form {
  background:white;
  padding:2rem;
  max-width:500px;
  margin:1rem auto;
  border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
}
form input,form select,form textarea,form button {
  width:100%;
  margin-bottom:1rem;
  padding:.9rem;
  border-radius:8px;
  border:1px solid #ccc;
}
form input:focus,form select:focus,form textarea:focus {
  border-color:#ff4d4d;
  outline:none;
  box-shadow:0 0 0 3px rgba(255,77,77,.2);
}
form button {
  background:#ff4d4d;
  color:white;
  border:none;
  font-weight:600;
  cursor:pointer;
}
form button:hover {
  background:#e64444;
  transform:translateY(-2px);
}
#message {
  text-align:center;
  font-weight:600;
}

/* === Admin Panel === */
#adminPanel {
  background:white;
  padding:2rem;
  margin:2rem auto;
  border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
  max-width:800px;
}
#appointmentsList {
  list-style:none;
  padding:0;
}
#appointmentsList li {
  background:#fafafa;
  padding:1rem;
  margin-bottom:1rem;
  border-radius:8px;
  box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.markReadBtn {
  background:#4caf50;
  color:white;
  border:none;
  padding:.4rem .8rem;
  border-radius:6px;
}
.deleteBtn {
  background:#f44336;
  color:white;
  border:none;
  padding:.4rem .8rem;
  border-radius:6px;
}
.badge {
  background:red;
  color:white;
  border-radius:50%;
  padding:.3rem .6rem;
  font-size:.75rem;
  margin-left:.5rem;
}

/* === Calendar === */
#calendar {
  margin-top:1rem;
  background:white;
  padding:1rem;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.fc-event.unread { background:#ff4d4d!important; color:white!important; }
.fc-event.read { background:#777!important; color:white!important; }

/* === Admin Login & Info === */
#adminLogin {
  background:white;
  padding:2rem;
  margin:2rem auto;
  border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
  max-width:400px;
  text-align:center;
}
#adminLogin input,#adminLogin button {
  width:100%;
  margin-bottom:1rem;
  padding:.9rem;
  border-radius:8px;
  border:1px solid #ccc;
}
#adminLogin button {
  background:#ff4d4d;
  color:white;
  border:none;
  font-weight:600;
  cursor:pointer;
}
#adminLogin button:hover { background:#e64444; }
#adminInfo {
  margin:1rem auto;
  padding:.5rem 1rem;
  max-width:500px;
  background:#f0f0f0;
  border-radius:6px;
  font-weight:bold;
  text-align:center;
}
#adminInfo button {
  margin-top:0.5rem;
  background:#ff4d4d;
  color:white;
  border:none;
  padding:0.5rem 1rem;
  border-radius:6px;
  cursor:pointer;
}
#adminInfo button:hover { background:#e64444; }

/* === Community Auth === */
#userAuth {
  max-width:400px;
  margin:1rem auto;
  padding:1rem;
  background:white;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
#userAuth input {
  width:100%;
  padding:0.7rem;
  margin:0.5rem 0;
  border:1px solid #ccc;
  border-radius:6px;
}
#passwordHelp {
  display:block;
  margin:0.25rem 0 0.85rem;
  color:#555;
  line-height:1.6;
}
#passwordHelp p {
  margin:0 0 0.35rem;
  font-weight:600;
}
#passwordChecklist {
  list-style:none;
  margin:0;
  padding:0;
}
.password-rule {
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin:0.25rem 0;
  font-size:0.95rem;
  transition:color 0.2s ease;
}
.password-rule::before {
  content:"*";
  font-size:1rem;
  line-height:1;
}
.password-rule.invalid {
  color:#b42318;
}
.password-rule.valid {
  color:#027a48;
}
.password-rule.valid::before {
  content:"OK";
  font-weight:700;
}
#userAuth button {
  display:block;
  width:fit-content;
  margin:0.3rem 0 1rem;
  padding:0.6rem 1rem;
  border:none;
  border-radius:6px;
  background:#ff4d4d;
  color:white;
  cursor:pointer;
}
#userAuth button:hover { background:#e64444; }
#userMessage {
  margin-top:0.75rem;
  padding:0.85rem 1rem;
  border-radius:8px;
  border:1px solid transparent;
  font-weight:600;
  display:none;
}
#userMessage.error {
  display:block;
  color:#b42318;
  background:#fef3f2;
  border-color:#fecdca;
}
#userMessage.success {
  display:block;
  color:#027a48;
  background:#ecfdf3;
  border-color:#abefc6;
}

#userInfo {
  margin:1rem auto;
  padding:.5rem 1rem;
  max-width:500px;
  background:#f0f0f0;
  border-radius:6px;
  font-weight:bold;
  text-align:center;
}
#userInfo button {
  margin-top:0.5rem;
  background:#ff4d4d;
  color:white;
  border:none;
  padding:0.5rem 1rem;
  border-radius:6px;
  cursor:pointer;
}
#userInfo button:hover { background:#e64444; }

/* === Community Feed === */
#postForm {
  max-width:600px;
  margin:1rem auto;
  display:flex;
  flex-direction:column;
}
#postForm textarea {
  border:1px solid #ccc;
  border-radius:8px;
  padding:.75rem;
  margin-bottom:.5rem;
}
#postForm button {
  align-self:flex-end;
  background:#ff4d4d;
  color:white;
  border:none;
  padding:.6rem 1.2rem;
  border-radius:6px;
  cursor:pointer;
}
#postsFeed {
  max-width:700px;
  margin:2rem auto;
}
.post {
  background:white;
  padding:1rem;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  margin-bottom:1rem;
}
.comment {
  margin-left:1rem;
  padding:.5rem;
  border-left:2px solid #eee;
  font-size:.9rem;
}
.likeBtn {
  margin-top:.5rem;
  background:#f5f5f5;
  border:1px solid #ddd;
  border-radius:6px;
  padding:.4rem .8rem;
  cursor:pointer;
  font-size:.9rem;
}
.likeBtn:hover {
  background:#ff4d4d;
  color:white;
}

/* === Animations === */
@keyframes fadeIn { from{opacity:0} to{opacity:1} }


/* Smooth button hover */
button {
  transition: all 0.2s ease;
}
button:hover {
  transform: scale(1.05);
}

/* Slight glass effect */
form, .post, .team-member {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
}
/* === Chatbot === */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 250px;
  font-size: 14px;
  z-index: 999;
}

#chat-header {
  background: #ff4d4d;
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  text-align: center;
}

#chat-body {
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  padding: 10px;
  height: 300px;
  display: flex;
  flex-direction: column;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

#chat-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#otpSection {
  background: white;
  padding: 2rem;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  max-width: 400px;
  text-align: center;
}

#otpSection input {
  width: 100%;
  padding: 0.9rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#otpSection button {
  width: 100%;
  padding: 0.9rem;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

#otpSection button:hover {
  background: #e64444;
}