/* ProposalAnalytics.module.css - Inline Version */

/* Inline Container */
.inlineContainer {
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}

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

/* Cards Grid - Horizontal Layout */
.cardsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Gradient Card Style (like the image) */
.cardGradient {
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.cardGradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cardIconWhite {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.cardContentWhite {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cardLabelWhite {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.cardValueWhite {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

/* Charts Row - Two columns */
.chartsRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Chart Card */
.chartCard {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.chartHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  color: #1e293b;
}

.chartHeader h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chartContainer {
  min-height: 350px;
}

/* Custom Tooltip */
.customTooltip {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltipLabel {
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.customTooltip p {
  margin: 4px 0;
  font-size: 0.875rem;
}

/* No Data */
.noData {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #9ca3af;
  gap: 16px;
}

.noData p {
  font-size: 1rem;
  margin: 0;
}

/* Filters Section - Inline */
.filtersInline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  align-items: flex-end;
}

.filterGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.filterGroup label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dateInput,
.selectInput {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  background: white;
  color: #1e293b;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dateInput:hover,
.selectInput:hover {
  border-color: #94a3b8;
}

.dateInput:focus,
.selectInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clearBtn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: fit-content;
}

.clearBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .cardsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chartsRow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cardsGrid {
    grid-template-columns: 1fr;
  }

  .cardGradient {
    padding: 16px;
  }

  .cardValueWhite {
    font-size: 1.5rem;
  }

  .filtersInline {
    flex-direction: column;
  }

  .filterGroup {
    width: 100%;
  }
}