/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f4f7fb;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* ========== HEADER & NAVBAR ========== */
header {
  background: #ADD8E6;
  color: #fff;
  padding: 15px 0;
  margin-bottom: 20px;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 25px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

header nav a:hover {
  color: #ffd633;
}

/* ========== FOOTER ========== */
footer {
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: #004080;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #003060;
}

.btn-secondary {
  background: #ffd633;
  color: #000;
}

.btn-secondary:hover {
  background: #e6c200;
}

/* ========== CARDS ========== */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 10px;
  color: #004080;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  font-weight: bold;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.stat-card.completed {
  border-left: 6px solid #28a745;
}

.stat-card.pending {
  border-left: 6px solid #ffc107;
}

.stat-card.follow-up {
  border-left: 6px solid #17a2b8;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

table th, table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

table th {
  background: #004080;
  color: #fff;
}

table tr:hover {
  background: #f1f1f1;
}

/* ========== FORMS ========== */
form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: auto;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

form button {
  width: 100%;
  padding: 12px;
  background: #004080;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

form button:hover {
  background: #003060;
}

/* ========== ALERTS ========== */
.alert {
  padding: 12px 20px;
  margin: 15px 0;
  border-radius: 6px;
  font-weight: 500;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* Logo styling */
.brand img.logo {
  height: 50px;   /* adjust as needed */
  width: auto;
  display: block;
}

/* ========== HERO SECTION ========== */
.hero {
  background: url('../public/images/hero-bg.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 12px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ========== ABOUT SECTION ========== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== CARD GRID SECTIONS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card h3 {
  color: #004080;
  margin-bottom: 10px;
}

/* ========== CONTACT SECTION ========== */
.contact form {
  margin-top: 20px;
}

/* Dashboard Layout */
.dashboard-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #0077b6;
}

.logout-card {
  background: #ffefef;
}

.profile-section {
  margin-top: 2rem;
}

.profile-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.profile-card p {
  margin: 0.5rem 0;
}

.profile-card .btn {
  display: inline-block;
  margin-top: 1rem;
  background: #0077b6;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.profile-card .btn:hover {
  background: #005f86;
}

/* Alerts (flash messages) */
.alert {
  padding: 12px 18px;
  margin: 20px auto;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.alert-success {
  background: #e6f9ed;
  color: #0a7c32;
  border-left: 5px solid #0a7c32;
}
.alert-error {
  background: #fdecea;
  color: #b3261e;
  border-left: 5px solid #b3261e;
}
.alert-warning {
  background: #fff8e1;
  color: #a68b00;
  border-left: 5px solid #a68b00;
}
.alert-info {
  background: #e6f3ff;
  color: #195fa4;
  border-left: 5px solid #195fa4;
}

/* Header layout */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.brand img.logo {
  height: 50px;
}

/* Centered menu */
.main-nav {
  flex: 1;
  text-align: center;
}
.main-nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Right-side auth buttons */
.auth-links {
  display: flex;
  gap: 10px;
}
.auth-links .btn {
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}
.auth-links .btn.btn-secondary {
  background: #555;
  color: #fff;
}

/* Dashboard Layout */
.dashboard-container {
  padding: 2rem 1rem;
}

.dashboard-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.subtitle {
  margin-bottom: 2rem;
  color: #7f8c8d;
}

/* Card Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.dashboard-card.logout {
  background: #ffeaea;
  border: 1px solid #ffcccc;
}

.dashboard-card.logout:hover {
  background: #ffdddd;
}

/* Profile Section */
.profile-section {
  margin-top: 2rem;
}

.profile-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mt-4 {
  margin-top: 2rem;
}

/* Flash Messages */
.flash {
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  max-width: 800px;
  border-radius: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.flash.success {
  background: #e6ffed;
  color: #2d7a38;
  border: 1px solid #b7f5c9;
}

.flash.error {
  background: #ffeaea;
  color: #b22222;
  border: 1px solid #f5b7b7;
}

.flash.warning {
  background: #fff8e6;
  color: #946200;
  border: 1px solid #f7e1a5;
}

.flash.info {
  background: #e6f3ff;
  color: #1f4f91;
  border: 1px solid #b7d4f5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General button styling */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;  /* consistent padding */
  font-size: 0.95rem;      /* standard font size */
  font-weight: 600;        /* slightly bold */
  border-radius: 6px;      /* smooth corners */
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  min-width: 120px;        /* ensures equal button width */
}

/* Primary (blue) buttons */
.btn.primary,
.btn.book {
  background-color: #003366;   /* deep blue */
  color: #fff;
}

.btn.primary:hover,
.btn.book:hover {
  background-color: #0055aa;   /* lighter blue on hover */
}

/* Danger (red) buttons */
.btn.danger {
  background-color: #cc0000;
  color: #fff;
}

.btn.danger:hover {
  background-color: #e60000;
}

/* Disabled / Unavailable buttons */
.btn.disabled,
.btn.unavailable {
  background-color: #999;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Small buttons (like Edit/Delete in admin) */
.btn.small {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  min-width: auto;
}

