/* ===== Hospital ERP System - Main Stylesheet ===== */

/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles - basic font and background */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f6f9;
}

/* ===== HEADER ===== */
header {
  background-color: #0a6ebd;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

header p {
  font-size: 14px;
}

/* ===== NAVIGATION ===== */
nav {
  background-color: #084f8a;
  padding: 12px;
  text-align: center;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #0a6ebd;
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main h2 {
  color: #0a6ebd;
  margin-bottom: 15px;
  border-bottom: 2px solid #0a6ebd;
  padding-bottom: 5px;
}

main h3 {
  color: #084f8a;
  margin-top: 20px;
  margin-bottom: 10px;
}

main p {
  margin-bottom: 12px;
}

/* ===== HOME PAGE WELCOME SECTION ===== */
.welcome {
  text-align: center;
  padding: 30px;
  background-color: #e8f1fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.welcome h2 {
  border: none;
  font-size: 26px;
}

/* ===== CARDS (used in services / departments) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  width: 30%;
  min-width: 250px;
  text-align: center;
}

.card h3 {
  color: #0a6ebd;
  margin-bottom: 10px;
}

/* ===== TABLE STYLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #0a6ebd;
  color: white;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* ===== FORM STYLES ===== */
form {
  max-width: 500px;
  margin: 0 auto;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  height: 100px;
  resize: vertical;
}

button {
  background-color: #0a6ebd;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}

button:hover {
  background-color: #084f8a;
}

/* ===== ALERT / MESSAGE BOX ===== */
.message {
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== FAQ (used on About page) ===== */
.faq-item {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 12px;
  cursor: pointer;
}

.faq-question {
  font-weight: bold;
  color: #0a6ebd;
}

.faq-answer {
  display: none;
  margin-top: 8px;
  color: #555;
}

/* ===== GALLERY ===== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ddd;
}

/* ===== CALCULATOR (BMI tool on Services page) ===== */
.calculator {
  background-color: #e8f1fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

#bmiResult {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #0a6ebd;
}

/* ===== FOOTER ===== */
footer {
  background-color: #084f8a;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

footer p {
  font-size: 14px;
}

/* ===== RESPONSIVE (for small screens) ===== */
@media (max-width: 700px) {
  .card {
    width: 100%;
  }
  nav ul li {
    display: block;
    margin: 5px 0;
  }
}
