@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --khamari-primary: #16a34a;
  --khamari-primary-dark: #15803d;
  --khamari-primary-light: #dcfce7;
  --khamari-secondary: #0f766e;
  --khamari-accent: #ea580c;
  --khamari-bg: #f8fafc;
  --khamari-card-bg: #ffffff;
  --khamari-text: #1e293b;
  --khamari-text-muted: #64748b;
  --khamari-border: #e2e8f0;
  --sidebar-width: 260px;
  --header-height: 68px;
  --mobile-nav-height: 64px;
}

body {
  font-family: 'Hind Siliguri', 'SolaimanLipi', 'Kalpurush', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--khamari-bg);
  color: var(--khamari-text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography & Big Elements */
h1, h2, h3, h4, h5, h6, .fw-bold {
  font-weight: 700 !important;
}

.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.75rem !important; }

/* Large Touch Buttons */
.btn {
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.15rem;
  border-radius: 12px;
}

.btn-huge {
  padding: 1.1rem 1.5rem;
  font-size: 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--khamari-primary);
  border-color: var(--khamari-primary);
  color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--khamari-primary-dark);
  border-color: var(--khamari-primary-dark);
  color: #ffffff;
}

/* Quick Action Tiles */
.quick-action-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--khamari-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
  text-decoration: none;
  color: var(--khamari-text);
  height: 100%;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.12);
  border-color: var(--khamari-primary);
  color: var(--khamari-primary-dark);
}

.quick-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

/* Stats Counter Card */
.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--khamari-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.stat-card .stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

.stat-card .stat-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Layout Setup */
#app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar for Desktop */
#sidebar {
  width: var(--sidebar-width);
  background: #0f172a;
  color: #f8fafc;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 1040;
}

#sidebar .sidebar-brand {
  padding: 18px 20px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.2);
}

#sidebar .sidebar-menu {
  list-style: none;
  padding: 12px 10px;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

#sidebar .sidebar-menu .nav-item {
  margin-bottom: 4px;
}

#sidebar .sidebar-menu .nav-link {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

#sidebar .sidebar-menu .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

#sidebar .sidebar-menu .nav-link.active {
  background: var(--khamari-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

#sidebar .sidebar-menu .nav-link i {
  width: 22px;
  text-align: center;
  font-size: 1.15rem;
}

/* Main Content Area */
#main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: calc(var(--mobile-nav-height) + 20px);
}

@media (min-width: 992px) {
  #main-content {
    padding-bottom: 24px;
  }
}

/* Top Navbar */
#topbar {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--khamari-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Mobile Bottom Navigation */
#mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: #ffffff;
  border-top: 1px solid var(--khamari-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--khamari-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  flex: 1;
  text-align: center;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.mobile-nav-item.active {
  color: var(--khamari-primary);
}

/* Responsive Hide/Show */
@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    transition: left 0.3s ease;
  }
  #sidebar.show {
    left: 0;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
  }
  .sidebar-backdrop.show {
    display: block;
  }
}

@media (min-width: 992px) {
  #mobile-bottom-nav {
    display: none !important;
  }
}

/* Form Styles */
.form-control, .form-select {
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  font-size: 1.05rem;
  border: 1px solid #cbd5e1;
}

.form-control:focus, .form-select:focus {
  border-color: var(--khamari-primary);
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.18);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #334155;
}

/* Animal Photo 1:1 Aspect Ratio Thumb & LG */
.animal-thumb {
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.animal-photo-lg {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #e2e8f0;
}

.animal-card-img-wrapper {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

.animal-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.animal-card-img:hover {
  transform: scale(1.04);
}

/* Badge Enhancements */
.badge {
  font-size: 0.85rem;
  padding: 0.4em 0.75em;
  font-weight: 600;
  border-radius: 6px;
}

/* Empty State Card */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

/* Reminder Alert Badges */
.reminder-today {
  border-left: 5px solid #ef4444 !important;
}

.reminder-tomorrow {
  border-left: 5px solid #f59e0b !important;
}

.reminder-later {
  border-left: 5px solid #10b981 !important;
}

/* Enhanced Touch-Responsive Tables */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

/* Floating WhatsApp Button Responsive Positioning */
.floating-whatsapp {
  margin-bottom: 20px;
}

@media (max-width: 991.98px) {
  .floating-whatsapp {
    margin-bottom: calc(var(--mobile-nav-height) + 16px) !important;
  }
}

