/* assets/css/custom.css - স্মার্ট খামারি স্টাইলশিট (মোবাইল ও পিসি উভয়ের জন্য উপযোগী) */

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

:root {
  --primary-green: #16a34a;
  --primary-green-dark: #15803d;
  --primary-green-light: #dcfce7;
  --sidebar-width: 260px;
  --header-height: 64px;
}

body {
  font-family: 'Hind Siliguri', 'SolaimanLipi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

/* সাইডবার লিঙ্ক স্টাইল */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  color: #cbd5e1;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

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

.sidebar-link.active {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.sidebar-link i {
  width: 1.25rem;
  text-align: center;
  font-size: 1.1rem;
}

/* স্পর্শবান্ধব বড় অ্যাকশন কার্ড */
.action-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  height: 100%;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.action-card:active {
  transform: scale(0.97);
}

/* কুইক পিল বাটন */
.quick-pill {
  min-width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 0.85rem;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: all 0.15s ease;
  cursor: pointer;
}

.quick-pill:hover, .quick-pill:focus {
  border-color: #16a34a;
  color: #16a34a;
  background-color: #f0fdf4;
}

.quick-pill.active {
  background-color: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* বড় সংখ্যা ইনপুট ফিল্ড */
.huge-input {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 2px solid #cbd5e1;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.huge-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* সেভ বাটন */
.btn-save-huge {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3), 0 4px 6px -2px rgba(22, 163, 74, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-save-huge:active {
  transform: scale(0.98);
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}

/* মোবাইল বটম নেভিগেশন */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  min-width: 3.8rem;
}

.bottom-nav-item.active {
  color: #16a34a;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

/* স্ক্রোলবার কাস্টমাইজ */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* প্রিন্ট স্টাইল */
@media print {
  .no-print, #appSidebar, #sidebarBackdrop, .bottom-nav, #topbar {
    display: none !important;
  }
  body {
    background: #ffffff;
  }
}
