/* 
 * Elvia Group - Corporate Agro-Chemical Portal Stylesheet
 * Custom theme variables, leaf accents, glassmorphism, and print rules
 */

:root {
  --color-primary: #047857;
  --color-primary-light: #10b981;
  --color-primary-dark: #064e3b;
  --color-accent: #f59e0b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Hero Background Pattern */
.agro-mesh-pattern {
  background-color: #022c22;
  background-image: radial-gradient(#059669 0.75px, transparent 0.75px), radial-gradient(#10b981 0.75px, #022c22 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* Card Hover Elevate */
.card-hover-elevate {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.card-hover-elevate:hover {
  transform: translateY(-3px);
}

/* Range input custom styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #047857;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Line clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* PRINT STYLESHEET FOR OFFICIAL B2B RFQ QUOTATION */
@media print {
  body * {
    visibility: hidden;
  }

  #receipt-modal,
  #receipt-modal * {
    visibility: visible;
  }

  #receipt-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
  }

  #receipt-modal .print-hide {
    display: none !important;
  }

  .print-header {
    display: block !important;
    border-bottom: 2px solid #047857;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
}
