/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --border-radius: 5px;
  --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.hero {
  background: linear-gradient(rgba(0,123,255,0.1), rgba(0,123,255,0.05)), url('https://via.placeholder.com/1200x400') center/cover;
  padding: 100px 0;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-success {
  background-color: var(--success-color);
  color: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

footer {
  background: var(--dark-color);
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

/* Sidebar and Admin Layout */
.admin-wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: 100vh;
}

#sidebar {
  min-width: 250px;
  max-width: 250px;
  background: #1e1b4b; /* Deep Indigo */
  color: #fff;
  transition: all 0.3s;
  z-index: 1000;
}

#sidebar.active {
  margin-left: -250px;
}

#sidebar .sidebar-header {
  padding: 20px;
  background: #16143a; /* Slightly darker indigo */
}

#sidebar ul.components {
  padding: 20px 0;
}

/* Fix for horizontal links conflict */
#sidebar ul {
  display: block !important;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar ul li {
  margin-left: 0 !important;
  display: block;
}

#sidebar ul li a {
  padding: 12px 20px;
  font-size: 1.1em;
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: 0.3s;
}

#sidebar ul li a:hover {
  color: #fff;
  background: #312e81; /* Indigo primary */
}

#sidebar ul li.active > a {
  color: #fff;
  background: #4338ca; /* Indigo light */
}

#content {
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s;
  background: #f8f9fa;
  flex: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
    position: fixed;
    height: 100%;
  }
  #sidebar.active {
    margin-left: 0;
  }
  #sidebarCollapse span {
    display: none;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  width: 60px;
  height: 60px;
  line-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Clinic Locations (mc-services-grid) */
.mc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.mc-service-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid var(--indigo-deep);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mc-service-card:hover {
  transform: translateY(-5px);
}
.mc-service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--indigo-deep);
}
.mc-service-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--indigo-deep);
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.mc-card-hours {
  background: rgba(49, 46, 129, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.mc-card-hours-label {
  display: block;
  font-weight: 600;
  color: var(--indigo-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.mc-card-hours-line, .mc-card-address span {
  display: block;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}
.mc-card-address {
  margin-bottom: 1.5rem;
}
.mc-card-tagline {
  color: var(--indigo-light);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  flex-grow: 1;
}
.mc-btn-primary {
  background-color: var(--indigo-deep);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
  width: 100%;
}
.mc-btn-primary:hover {
  background-color: var(--indigo-primary);
  color: white;
}
