/* From Uiverse.io by vinodjangid07 */
.Btn {
  width: 130px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(15, 15, 15);
  border: none;
  color: white;
  font-weight: 600;
  gap: 8px;
  cursor: pointer;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
  position: relative;
  overflow: hidden;
  transition-duration: .3s;
}

.svgIcon {
  width: 16px;
}

.svgIcon path {
  fill: white;
}

.Btn::before {
  width: 130px;
  height: 130px;
  position: absolute;
  content: "";
  background-color: white;
  border-radius: 50%;
  left: -100%;
  top: 0;
  transition-duration: .3s;
  mix-blend-mode: difference;
}

.Btn:hover::before {
  transition-duration: .3s;
  transform: translate(100%,-50%);
  border-radius: 0;
}

.Btn:active {
  transform: translate(5px,5px);
  transition-duration: .3s;
}

/* Button base class using new design */
.btn {
  min-width: 130px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(15, 15, 15);
  border: none;
  color: white;
  font-weight: 600;
  gap: 8px;
  cursor: pointer;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
  position: relative;
  overflow: hidden;
  transition-duration: .3s;
  text-decoration: none;
  padding: 0 1.5em;
  border-radius: 0.375rem;
}

.btn::before {
  width: 130px;
  height: 130px;
  position: absolute;
  content: "";
  background-color: white;
  border-radius: 50%;
  left: -100%;
  top: 0;
  transition-duration: .3s;
  mix-blend-mode: difference;
}

.btn:hover::before {
  transition-duration: .3s;
  transform: translate(100%,-50%);
  border-radius: 0;
}

.btn:active {
  transform: translate(5px,5px);
  transition-duration: .3s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:hover::before {
  transform: none;
}

.btn:disabled:active {
  transform: none;
}

/* Button Variants */
.btn-primary {
  background-color: #EF4444;
}

.btn-primary::before {
  background-color: #F87171;
}

.btn-secondary {
  background-color: #6B7280;
}

.btn-secondary::before {
  background-color: #9CA3AF;
}

.btn-success {
  background-color: #EF4444;
}

.btn-success::before {
  background-color: #F87171;
}

.btn-danger {
  background-color: #EF4444;
}

.btn-danger::before {
  background-color: #F87171;
}

/* Small Button */
.btn-sm {
  min-width: 100px;
  height: 32px;
  font-size: 0.875rem;
  padding: 0 1em;
}

.btn-sm::before {
  width: 100px;
  height: 100px;
}

/* Large Button */
.btn-lg {
  min-width: 160px;
  height: 48px;
  font-size: 1.1rem;
  padding: 0 2em;
}

.btn-lg::before {
  width: 160px;
  height: 160px;
}

/* Icon Button */
.btn-icon {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-icon::before {
  width: 40px;
  height: 40px;
}

/* Period Selector Styles */
.period-selector {
  display: inline-flex;
  gap: 8px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 0.5rem;
}

.period-btn {
  padding: 0.5em 1.5em;
  height: 36px;
  border-radius: 0.375rem;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition-duration: .3s;
  font-weight: 600;
  color: #6b7280;
  position: relative;
  overflow: hidden;
}

.period-btn::before {
  width: 100px;
  height: 100px;
  position: absolute;
  content: "";
  background-color: #EF4444;
  border-radius: 50%;
  left: -100%;
  top: 0;
  transition-duration: .3s;
  opacity: 0;
}

.period-btn:hover {
  color: #1f2937;
}

.period-btn:hover::before {
  opacity: 0.1;
  transform: translate(100%,-50%);
  border-radius: 0;
}

.period-btn.active {
  background-color: rgb(15, 15, 15);
  color: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.103);
}

.period-btn.active::before {
  background-color: white;
  opacity: 1;
}

.period-btn.active:hover::before {
  transform: translate(100%,-50%);
  border-radius: 0;
}

/* SVG Icon */
.svgIcon {
  width: 16px;
  height: 16px;
}

.svgIcon path {
  fill: white;
}

/* Metric Bar (for performance display) */
.metric-bar {
  height: 8px;
  background: linear-gradient(90deg, #EF4444, #F87171);
  border-radius: 4px;
  transition: width 0.5s ease;
}
