/* Premium 3D Theme (Glassmorphism & Neumorphism) */

.glass-card { 
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 255, 0.9) 100%); 
  backdrop-filter: blur(12px); 
  border: 1px solid rgba(255, 255, 255, 0.8); 
  box-shadow: 0 15px 35px rgba(0, 0, 50, 0.05), inset 0 2px 5px rgba(255,255,255,1); 
  border-radius: 20px; 
}

@media (max-width: 991px) {
  .glass-card {
    border-radius: 18px !important;
  }
  .glass-card.p-6,
  .glass-card.p-8,
  .glass-card.p-6.md\:p-8,
  .glass-card.p-6.sm\:p-7,
  .glass-card.p-6.sm\:p-8 {
    padding: 15px 13px !important;
  }
  .glass-card > div.p-6,
  .glass-card > div.p-8,
  .glass-card > div.p-6.sm\:p-8,
  .glass-card > form > div.p-6,
  .glass-card > form > div.p-6.sm\:p-8 {
    padding: 15px 13px !important;
  }
}

@media (max-width: 576px) {
  .glass-card.p-6,
  .glass-card.p-8,
  .glass-card.p-6.md\:p-8,
  .glass-card.p-6.sm\:p-7,
  .glass-card.p-6.sm\:p-8 {
    padding: 12px 10px !important;
  }
  .glass-card > div.p-6,
  .glass-card > div.p-8,
  .glass-card > div.p-6.sm\:p-8,
  .glass-card > form > div.p-6,
  .glass-card > form > div.p-6.sm\:p-8 {
    padding: 12px 10px !important;
  }
}

.gradient-text { 
  background: linear-gradient(90deg, #1d4ed8, #9333ea, #ec4899); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}

.hero-bg { 
  background: linear-gradient(135deg, #e0e7ff 0%, #fdf4ff 100%); 
  border-radius: 36px; 
  position: relative; 
  overflow: hidden; 
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1), inset 0 2px 10px rgba(255,255,255,0.8);
}
.hero-bg::before { 
  content: ''; 
  position: absolute; 
  top: -50%; left: -20%; width: 60%; height: 200%; 
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%); 
  transform: rotate(30deg); 
}

.btn-3d-blue {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3), inset 0 2px 3px rgba(255,255,255,0.3), inset 0 -2px 3px rgba(0,0,0,0.1);
  border: 1px solid #1d4ed8;
}
.btn-3d-blue:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}

.btn-3d-emerald, .btn-3d-green {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3), inset 0 2px 3px rgba(255,255,255,0.3), inset 0 -2px 3px rgba(0,0,0,0.1);
  border: 1px solid #047857;
}
.btn-3d-emerald:hover, .btn-3d-green:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
}
.btn-3d-emerald:active, .btn-3d-green:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}

.btn-3d-orange {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 6px 15px rgba(234, 88, 12, 0.3), inset 0 2px 3px rgba(255,255,255,0.3), inset 0 -2px 3px rgba(0,0,0,0.1);
  border: 1px solid #c2410c;
}
.btn-3d-orange:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}

.btn-3d-white {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), inset 0 2px 3px rgba(255,255,255,1), inset 0 -2px 3px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
  color: #475569;
}
.btn-3d-white:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.05);
}

.icon-3d {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1), inset 0 2px 4px rgba(255,255,255,0.5);
}

/* Custom form inputs for 3D look */
.input-3d {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}
.input-3d:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(0,0,0,0.01);
  outline: none;
}

/* ==============================================================
   Segmented Control Pill Switcher & Report Filter Controls
   ============================================================== */
.tf-switcher-container {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 9999px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  gap: 2px !important;
}

.tf-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.tf-btn:hover:not(.active) {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.75) !important;
}

/* Category-specific Active Accent States */
.tf-btn.active,
.tf-btn-blue.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3) !important;
}

.tf-btn-emerald.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
}

.tf-btn-rose.active {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.3) !important;
}

.tf-btn-violet.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3) !important;
}

.tf-btn i {
  font-size: 0.875rem !important;
  line-height: 1 !important;
}

/* Modern Select Dropdown */
.custom-report-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 6px 30px 6px 14px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M6 8l4 4 4-4' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  outline: none !important;
  line-height: 1.2 !important;
}

.custom-report-select:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

.custom-report-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* ==============================================================
   Touch Screen Date Picker Button & Pop Up Calendar Widget Card
   ============================================================== */
.touch-date-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 5px 14px 5px 10px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  min-height: 34px !important;
}

.touch-date-btn:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px);
}

.touch-date-btn:active {
  transform: translateY(0);
  background-color: #f1f5f9 !important;
}

.touch-date-btn .touch-cal-icon {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.touch-date-btn .touch-cal-chevron {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-left: 2px;
}

.tc-tf-btn {
  border: 0 !important;
  outline: none !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.tc-tf-btn.active {
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.tc-inner-tab {
  border: 0 !important;
  outline: none !important;
  padding: 5px 12px !important;
  border-radius: 12px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tc-inner-tab.active {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.custom-scroll::-webkit-scrollbar {
  width: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Touch Calendar Modal Overlay Base */
#modalTouchCalendar {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
  touch-action: none;
}

#modalTouchCalendar.open-modal {
  display: flex !important;
}

#modalTouchCalendar .modal-card-content {
  overscroll-behavior: contain !important;
}

#modalTouchCalendar .modal-card-content .overflow-y-auto,
#modalTouchCalendar .modal-calendar-scroll-wrap {
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}

