/* ===================================
   MEDIDENT - Modern Dental Clinic CSS
   =================================== */

:root {
  --primary-color: #9a856a;
  --secondary-color: #f5f5f5;
  --accent-color: #0d6efd;
  --text-color: #333;
  --light-text: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.3rem;
}

.navbar-brand img {
  max-height: 75px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Header Info Bar */
.bg-light {
  background-color: var(--secondary-color) !important;
}

/* Carousel / Hero */
#carouselHero .carousel-item {
  position: relative;
}

#carouselHero .carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 40px 30px !important;
  position: absolute !important;
  left: 50px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  right: auto !important;
  width: 380px !important;
  margin: 0 !important;
  text-align: left;
}

#carouselHero .carousel-caption h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

#carouselHero .carousel-caption .lead {
  font-size: 1rem;
}

#carouselHero .carousel-caption .h4 {
  font-size: 1.2rem;
}

/* Cards */
.card {
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

/* Tables */
.table {
  margin-bottom: 0;
  border: none;
}

.table thead,
.table tbody {
  border: none;
}

.table td {
  border-bottom: 1px solid #eee;
}

.table tr:last-child td {
  border-bottom: none !important;
}

/* Forms */
.form-label {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 500;
  padding: 10px 20px;
  transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

/* Insurance Logos */
.insurance-logo {
  transition: all 0.3s ease;
  cursor: pointer;
}

.insurance-logo:hover {
  filter: drop-shadow(0 0 8px rgba(154, 133, 106, 0.6));
  transform: scale(1.05);
}

/* Alert */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-info {
  background-color: #e7f3ff;
  color: #0c5aa0;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  margin-top: auto;
}

footer h5 {
  color: var(--primary-color);
  font-weight: 600;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
}

h2 {
  color: var(--primary-color);
  font-size: 2rem;
}

h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  #carouselHero .carousel-item {
    height: 300px !important;
  }

  #carouselHero .carousel-caption {
    padding: 15px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .d-flex {
    flex-direction: column !important;
  }

  .gap-3 {
    gap: 10px !important;
  }
}

@media (max-width: 576px) {
  #carouselHero .carousel-item {
    height: 200px !important;
  }

  h1 {
    font-size: 1.5rem;
  }

  .table-responsive table {
    font-size: 0.9rem;
  }
}

/* Print */
@media print {
  .navbar, footer, .btn {
    display: none;
  }
}

/* Accessibility */
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
