@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/eot/IRANSansWeb.eot') format('eot'), /* IE6–8 */
    url('../fonts/ttf/IRANSansWeb.ttf') format('truetype');
    /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
}

body{
    font-family: 'IRANSansWeb';
}

td,th{
    font-family: 'IRANSansWeb';
}
form label{
    width: 130px;
}
ul{
    padding-inline-start: 0px;
}
.analytics-section{
    margin-top: 20px !important;
}

.avatar {
 
    margin-left: 10px;
}
.info-card .icon {
 margin-left: 10px;
}

.btn i{
  margin-left: 5px;
}
.card-body p{
  color: #9e3d04;
}
.vertical-pipeline-wrapper {
  padding: 3rem 0;
  direction: rtl;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8eaf6 100%);
  min-height: calc(100vh - 200px);
  position: relative;
  overflow: hidden;
}

.vertical-pipeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(45deg, rgba(200, 200, 200, 0.05) 25%, transparent 25%),
                    linear-gradient(-45deg, rgba(200, 200, 200, 0.05) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgba(200, 200, 200, 0.05) 75%),
                    linear-gradient(-45deg, transparent 75%, rgba(200, 200, 200, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
}

.pipeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  z-index: 1;
}

/* Enhanced Timeline vertical line with gradient */
.pipeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 40px;
  width: 6px;
  background: linear-gradient(to bottom,
    rgba(102, 126, 234, 0.8) 0%,
    rgba(118, 75, 162, 0.8) 25%,
    rgba(168, 85, 247, 0.8) 50%,
    rgba(236, 72, 153, 0.8) 75%,
    rgba(255, 107, 107, 0.8) 100%);
  border-radius: 6px;
  z-index: 0;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

/* Timeline dots for each stage */
.pipeline-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 37px;
  width: 12px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 100px,
    rgba(102, 126, 234, 0.6) 100px,
    rgba(102, 126, 234, 0.6) 120px
  );
  z-index: 1;
}

.pipeline-stage-card {
  position: relative;
  z-index: 2;
  margin-right: 80px;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.pipeline-stage-card:nth-child(1) { animation-delay: 0.1s; }
.pipeline-stage-card:nth-child(2) { animation-delay: 0.2s; }
.pipeline-stage-card:nth-child(3) { animation-delay: 0.3s; }
.pipeline-stage-card:nth-child(4) { animation-delay: 0.4s; }
.pipeline-stage-card:nth-child(5) { animation-delay: 0.5s; }
.pipeline-stage-card:nth-child(6) { animation-delay: 0.6s; }
.pipeline-stage-card:nth-child(7) { animation-delay: 0.7s; }
.pipeline-stage-card:nth-child(8) { animation-delay: 0.8s; }
.pipeline-stage-card:nth-child(9) { animation-delay: 0.9s; }
.pipeline-stage-card:nth-child(10) { animation-delay: 1.0s; }

.stage-box {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.stage-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pipeline-stage-card:hover .stage-box {
  transform: translateY(-6px) translateX(-4px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
  border-color: #667eea;
}

.pipeline-stage-card:hover .stage-box::before {
  opacity: 1;
}

/* Distinct styling for each stage with enhanced gradients */
.stage-prospect .stage-box {
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.12) 0%,
    rgba(118, 75, 162, 0.12) 100%);
  border-left: 8px solid #667eea;
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
  position: relative;
}

.stage-prospect .stage-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stage-prospect .stage-icon-wrapper {
  background: linear-gradient(135deg,
    #667eea 0%,
    #764ba2 50%,
    #a084ca 100%);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
  animation: prospectGlow 3s ease-in-out infinite alternate;
}

@keyframes prospectGlow {
  0% {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
  }
  100% {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
  }
}

.stage-qualified .stage-box {
  background: linear-gradient(135deg,
    rgba(75, 192, 192, 0.12) 0%,
    rgba(54, 162, 235, 0.12) 100%);
  border-left: 8px solid #4bc0c0;
  box-shadow: 0 15px 50px rgba(75, 192, 192, 0.25);
  position: relative;
}

.stage-qualified .stage-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stage-qualified .stage-icon-wrapper {
  background: linear-gradient(135deg,
    #4bc0c0 0%,
    #53c1c1 50%,
    #36a2eb 100%);
  box-shadow: 0 15px 35px rgba(75, 192, 192, 0.5);
}

.stage-proposal .stage-box {
  background: linear-gradient(135deg,
    rgba(255, 206, 86, 0.12) 0%,
    rgba(75, 192, 192, 0.12) 100%);
  border-left: 8px solid #ffce56;
  box-shadow: 0 15px 50px rgba(255, 206, 86, 0.25);
  position: relative;
}

.stage-proposal .stage-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stage-proposal .stage-icon-wrapper {
  background: linear-gradient(135deg,
    #ffce56 0%,
    #ffd77a 50%,
    #4bc0c0 100%);
  box-shadow: 0 15px 35px rgba(255, 206, 86, 0.5);
}

.stage-negotiation .stage-box {
  background: linear-gradient(135deg,
    rgba(255, 159, 64, 0.12) 0%,
    rgba(255, 206, 86, 0.12) 100%);
  border-left: 8px solid #ff9f40;
  box-shadow: 0 15px 50px rgba(255, 159, 64, 0.25);
  position: relative;
}

.stage-negotiation .stage-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stage-negotiation .stage-icon-wrapper {
  background: linear-gradient(135deg,
    #ff9f40 0%,
    #ffb066 50%,
    #ffce56 100%);
  box-shadow: 0 15px 35px rgba(255, 159, 64, 0.5);
}

.stage-closed_won .stage-box {
  background: linear-gradient(135deg,
    rgba(40, 167, 69, 0.12) 0%,
    rgba(34, 197, 94, 0.12) 100%);
  border-left: 8px solid #28a745;
  box-shadow: 0 15px 50px rgba(40, 167, 69, 0.25);
  position: relative;
}

.stage-closed_won .stage-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stage-closed_won .stage-icon-wrapper {
  background: linear-gradient(135deg,
    #28a745 0%,
    #34ce57 50%,
    #20c997 100%);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.5);
}

.stage-closed_lost .stage-box {
  background: linear-gradient(135deg,
    rgba(220, 53, 69, 0.12) 0%,
    rgba(255, 107, 107, 0.12) 100%);
  border-left: 8px solid #dc3545;
  box-shadow: 0 15px 50px rgba(220, 53, 69, 0.25);
  position: relative;
}

.stage-closed_lost .stage-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.stage-closed_lost .stage-icon-wrapper {
  background: linear-gradient(135deg,
    #dc3545 0%,
    #e55362 50%,
    #ff6b6b 100%);
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.5);
}

/* Stage Header Box Styles - Enhanced */
.stage-header-box {
  padding: 2rem 2.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  background: linear-gradient(135deg,
    #ffffff 0%,
    #f8f9fa 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}

.stage-header-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.3) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pipeline-stage-card:hover .stage-header-box {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e2e8f0 100%);
}

.pipeline-stage-card:hover .stage-header-box::before {
  opacity: 1;
}

.stage-header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stage-icon-section {
  flex-shrink: 0;
  position: relative;
}

.stage-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg,
    #667eea 0%,
    #764ba2 100%);
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.stage-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: all 0.4s ease;
  transform: rotate(45deg);
}

.pipeline-stage-card:hover .stage-icon-wrapper::before {
  opacity: 1;
  transform: rotate(90deg);
}

.pipeline-stage-card:hover .stage-icon-wrapper {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

.stage-info-section {
  flex: 1;
}

.stage-title {
  margin: 0 0 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3748;
  position: relative;
  display: inline-block;
}

.stage-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.pipeline-stage-card:hover .stage-title::after {
  width: 60px;
}

.stage-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 0.8rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  font-family: 'Vazir', sans-serif;
}

.stat-label {
  font-size: 0.95rem;
  color: #718096;
  font-weight: 600;
}

.stage-progress {
  width: 140px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stage-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 50%,
    #f093fb 100%);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.stage-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 100%);
  transform: skewX(-15deg);
}

.stage-toggle-section {
  flex-shrink: 0;
}

.toggle-icon {
  color: #a0aec0;
  font-size: 1.6rem;
  transition: all 0.4s ease;
  transform: rotate(0deg);
}

.pipeline-stage-card.active .toggle-icon {
  transform: rotate(180deg);
  color: #667eea;
}

/* Stage Content Box Styles - Enhanced */
.stage-content-box {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 20px 20px;
  opacity: 0;
  transform: translateY(-15px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.05);
}

.pipeline-stage-card.active .stage-content-box {
  max-height: 3000px;
  opacity: 1;
  transform: translateY(0);
}

.leads-container {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%);
}

/* Lead Card Item Styles - Enhanced */
.lead-card-item {
  background: linear-gradient(135deg,
    #ffffff 0%,
    #f8f9fa 100%);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}

.lead-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lead-card-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
    #667eea 0%,
    #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lead-card-item:hover::before,
.lead-card-item:hover::after {
  opacity: 1;
}

.lead-card-item:hover {
  transform: translateX(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
  border-left-color: #764ba2;
}

.lead-card-item.dragging {
  opacity: 0.8;
  transform: rotate(3deg) scale(0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  cursor: grabbing;
}

.lead-card-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lead-avatar-section {
  flex-shrink: 0;
}

.lead-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
    #667eea 0%,
    #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.lead-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lead-card-item:hover .lead-avatar {
  transform: scale(1.15);
}

.lead-card-item:hover .lead-avatar::before {
  opacity: 1;
}

.lead-info-section {
  flex: 1;
}

.lead-name {
  margin: 0 0 0.7rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  position: relative;
  display: inline-block;
}

.lead-name::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lead-card-item:hover .lead-name::after {
  opacity: 1;
}

.lead-name a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lead-name a:hover {
  color: #667eea;
}

.lead-company {
  margin: 0 0 0.8rem 0;
  color: #718096;
  font-size: 0.95rem;
  font-weight: 500;
}

.lead-value {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.value-amount {
  font-weight: 700;
  color: #38a169;
  font-size: 1.1rem;
  font-family: 'Vazir', sans-serif;
}

.value-currency {
  font-size: 0.85rem;
  color: #718096;
}

.lead-actions-section {
  flex-shrink: 0;
}

.lead-menu-btn {
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.7rem;
  border-radius: 8px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.lead-menu-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle,
    rgba(102, 126, 234, 0.2) 0%,
    transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  border-radius: 50%;
}

.lead-menu-btn:hover::before {
  width: 200%;
  height: 200%;
}

.lead-menu-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: rotate(5deg);
}

.lead-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #718096;
}

.lead-assigned, .lead-date {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lead-assigned i, .lead-date i {
  font-size: 1rem;
  color: #a0aec0;
}

/* Empty Stage Styles - Enhanced */
.empty-stage {
  padding: 4rem 3rem;
  text-align: center;
  color: #a0aec0;
  background: linear-gradient(135deg,
    #f7fafc 0%,
    #edf2f7 100%);
  border-radius: 16px;
  border: 2px dashed #cbd5e0;
  transition: all 0.3s ease;
}

.empty-stage:hover {
  background: linear-gradient(135deg,
    #edf2f7 0%,
    #e2e8f0 100%);
  border-color: #a0aec0;
}

.empty-icon {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.empty-icon i {
  font-size: 3.5rem;
  color: #cbd5e0;
  transition: all 0.3s ease;
}

.empty-stage:hover .empty-icon i {
  color: #a0aec0;
  transform: scale(1.1);
}

.empty-text {
  margin: 0 0 0.7rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #718096;
}

.empty-hint {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
  font-style: italic;
}

/* Enhanced Lead Menu Overlay */
.lead-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.menu-content {
  position: relative;
  background: linear-gradient(135deg,
    #ffffff 0%,
    #f8f9fa 100%);
  border-radius: 24px;
  width: 380px;
  padding: 2.5rem;
  z-index: 1051;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-content h6 {
  color: #2d3748;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.menu-content h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 100%);
  border-radius: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.8rem;
  color: #4a5568;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  border: none;
  background: transparent;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    #667eea 0%,
    #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.menu-item:hover::before {
  opacity: 0.15;
}

.menu-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(-8px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.menu-item:active {
  transform: translateX(-6px) scale(0.98);
}

.menu-item.text-danger:hover {
  color: #e53e3e;
  background: rgba(220, 53, 69, 0.1);
}

.menu-item i {
  margin-left: 14px;
  width: 22px;
  text-align: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.menu-item:hover i {
  transform: translateX(4px);
}

.menu-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #e2e8f0 50%,
    transparent 100%);
  margin: 1.5rem 0;
  border: none;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .vertical-pipeline-wrapper {
    padding: 2rem 0;
  }

  .pipeline-container {
    gap: 2rem;
  }

  .pipeline-container::before {
    right: 30px;
    width: 5px;
  }

  .pipeline-stage-card {
    margin-right: 60px;
  }

  .stage-header-box {
    padding: 1.5rem 2rem;
  }

  .stage-icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .stage-title {
    font-size: 1.4rem;
  }

  .stage-stats {
    gap: 1.5rem;
  }

  .leads-container {
    padding: 2rem;
  }

  .lead-card-item {
    padding: 1.5rem;
  }

  .lead-avatar {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .menu-content {
    width: 90%;
    margin: 0 1rem;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .vertical-pipeline-wrapper {
    padding: 1.5rem 0;
  }

  .pipeline-container {
    gap: 1.5rem;
  }

  .pipeline-container::before {
    right: 25px;
    width: 4px;
  }

  .pipeline-stage-card {
    margin-right: 50px;
  }

  .stage-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .stage-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .stage-title {
    font-size: 1.2rem;
  }

  .stage-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .lead-card-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .lead-card-footer {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .menu-content {
    width: 95%;
    padding: 1.5rem;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Success Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-animation {
  animation: bounceIn 0.7s ease;
}

/* Hover effects for better interactivity */
.lead-card-item:hover .lead-value {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.stage-progress:hover .stage-progress-bar {
  transform: scaleX(1.05);
  transition: transform 0.3s ease;
}

/* Enhanced scrollbar for content areas */
.leads-container::-webkit-scrollbar {
  width: 8px;
}

.leads-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.leads-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    #667eea 0%,
    #764ba2 100%);
  border-radius: 10px;
}

.leads-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
    #764ba2 0%,
    #667eea 100%);
}

/* Modern Statistics Cards */
.modern-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.modern-stat-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.modern-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modern-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.6) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-stat-card:hover::before {
  opacity: 1;
}

.stat-bg-pattern {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.total-leads .stat-bg-pattern {
  background: radial-gradient(circle, #667eea 0%, transparent 70%);
}

.active-leads .stat-bg-pattern {
  background: radial-gradient(circle, #36a2eb 0%, transparent 70%);
}

.won-leads .stat-bg-pattern {
  background: radial-gradient(circle, #28a745 0%, transparent 70%);
}

.total-value .stat-bg-pattern {
  background: radial-gradient(circle, #ffc107 0%, transparent 70%);
}

.stat-icon {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.total-leads .stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.active-leads .stat-icon {
  background: linear-gradient(135deg, #36a2eb 0%, #53c1c1 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(54, 162, 235, 0.3);
}

.won-leads .stat-icon {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.total-value .stat-icon {
  background: linear-gradient(135deg, #ffc107 0%, #ffd77a 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.modern-stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-content {
  position: relative;
  z-index: 2;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-family: 'IRANSansWeb', sans-serif;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: #718096;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-unit {
  font-size: 0.9rem;
  color: #a0aec0;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #68d391;
  font-weight: 600;
}

.stat-trend i {
  font-size: 0.8rem;
}

.total-leads .stat-trend {
  color: #667eea;
}

.active-leads .stat-trend {
  color: #36a2eb;
}

.won-leads .stat-trend {
  color: #28a745;
}

.total-value .stat-trend {
  color: #ffc107;
}

/* Enhanced hover effects */
.modern-stat-card:hover .stat-value {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.modern-stat-card:hover .stat-label {
  color: #4a5568;
  transition: color 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modern-stats-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0 0.25rem;
  }

  .modern-stat-card {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .modern-stats-container {
    grid-template-columns: 1fr;
  }

  .modern-stat-card {
    padding: 1.25rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }
}

/* Animation for stats cards */
@keyframes statCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-stat-card:nth-child(1) {
  animation: statCardSlideIn 0.6s ease forwards;
}

.modern-stat-card:nth-child(2) {
  animation: statCardSlideIn 0.6s 0.1s ease forwards;
  opacity: 0;
}

.modern-stat-card:nth-child(3) {
  animation: statCardSlideIn 0.6s 0.2s ease forwards;
  opacity: 0;
}

.modern-stat-card:nth-child(4) {
  animation: statCardSlideIn 0.6s 0.3s ease forwards;
  opacity: 0;
}

/* Invoice Pages Styling */
.invoice-page .card-header {
  background: linear-gradient(135deg, #fca311 0%, #ff8c00 100%);
  color: white;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
}

.invoice-page .card-header h5 {
  color: white;
  font-weight: 600;
}

.invoice-page .card {
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.invoice-page .card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.invoice-page .btn-primary {
  background: linear-gradient(135deg, #023047 0%, #0a4a5c 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.invoice-page .btn-primary:hover {
  background: linear-gradient(135deg, #0a4a5c 0%, #023047 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(2, 48, 71, 0.3);
}

.invoice-page .btn-secondary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #023047;
  transition: all 0.3s ease;
}

.invoice-page .btn-secondary:hover {
  background: #023047;
  color: white;
  transform: translateY(-2px);
}

.invoice-page .btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  transition: all 0.3s ease;
}

.invoice-page .btn-info:hover {
  background: linear-gradient(135deg, #138496 0%, #17a2b8 100%);
  transform: translateY(-2px);
}

.invoice-page .btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  border: none;
  color: #023047;
  transition: all 0.3s ease;
}

.invoice-page .btn-warning:hover {
  background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
  transform: translateY(-2px);
}

.invoice-page .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  transition: all 0.3s ease;
}

.invoice-page .btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
  transform: translateY(-2px);
}

.invoice-page .table {
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.invoice-page .table thead th {
  background: linear-gradient(135deg, #023047 0%, #0a4a5c 100%);
  color: white;
  border: none;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

.invoice-page .table tbody tr {
  transition: background-color 0.3s ease;
}

.invoice-page .table tbody tr:hover {
  background-color: #f8f9fa;
}

.invoice-page .table tbody td {
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
}

.invoice-page .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
}

.invoice-page .form-control {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.invoice-page .form-control:focus {
  border-color: #fca311;
  box-shadow: 0 0 0 0.2rem rgba(252, 163, 17, 0.25);
}

.invoice-page .form-select {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.invoice-page .form-select:focus {
  border-color: #fca311;
  box-shadow: 0 0 0 0.2rem rgba(252, 163, 17, 0.25);
}

.invoice-page .card-body {
  background: #ffffff;
  border-radius: 0 0 0.375rem 0.375rem;
}

/* Invoice create/edit form styling */
.invoice-page .form-section {
  background: #f8f9fa;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
}

.invoice-page .form-section h6 {
  color: #023047;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid #fca311;
  padding-bottom: 0.5rem;
}

.invoice-page .summary-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.invoice-page .summary-card .card-body {
  padding: 1.5rem;
}

.invoice-page .summary-card .fw-bold {
  color: #023047;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .invoice-page .card-header {
    padding: 1rem;
  }

  .invoice-page .card-header h5 {
    font-size: 1.1rem;
  }

  .invoice-page .table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .invoice-page .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .invoice-page .btn-group .btn {
    border-radius: 0.25rem !important;
  }
}

/* Animation for invoice cards */
.invoice-page .card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-group a{
  border-radius: 5px !important;
  margin-right: 5px !important;
}

.head-section-title{
    background-color: #fca311 !important;
    color: white !important;
    border-radius: 5px !important;
}