/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */

.btn {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border: none;
  transition: 0.2s ease-in-out;
  border-radius: 100px;
  height: 48px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding-left: 25px;
  padding-right: 25px;
  background-color: #4fbefe;
  color: #fff;
  fill: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0px 6px 0px 0px #1c91e4;
  font-family: 'Quicksand';
  text-decoration: none;
  margin-bottom: 10px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(28, 145, 228, 0.25);
}

/* Primary button */
.btn-primary {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0px 6px 0px 0px #1c91e4;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Accent button */
.btn-accent {
  background: #ff6f3c;
  color: #ffffff;
  box-shadow: 0px 6px 0px 0px #cc4a1f;
}

.btn-accent:active {
  transform: translateY(1px);
}

.btn-accent:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* WhatsApp button */
.btn-zap {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0px 6px 0px 0px #128C7E;
}

.btn-zap:active {
  transform: translateY(1px);
}

.btn-zap:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Secondary button */
.btn-secondary {
  background: #eef7ff;
  color: #1c91e4;
  box-shadow: 0px 6px 0px 0px #d8efff;
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* Ghost button */
.btn-ghost {
  background-color: transparent;
  color: #0ea5e9;
  border: 2px solid #0ea5e9;
  box-shadow: 0px 6px 0px 0px rgba(14, 165, 233, 0.15);
}

/* White button (for dark backgrounds) */
.btn-white {
  background: #ffffff;
  color: #1c91e4;
  box-shadow: none;
}

.btn-white:active {
  transform: translateY(1px);
}

/* Ghost button on dark backgrounds */
.btn-ghost-light {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* Danger button (red) */
.btn-danger {
  background: #dc3545;
  color: #ffffff;
  box-shadow: 0px 6px 0px 0px #a71d2a;
}

.btn-danger:active {
  transform: translateY(1px);
}

.btn-danger:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Warning button (orange) */
.btn-warning {
  background: linear-gradient(135deg, #ff6f3c, #e55a2b);
  color: #ffffff;
  box-shadow: 0px 6px 0px 0px #c44a1f;
}

.btn-warning:active {
  transform: translateY(1px);
}

.btn-warning:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   HOVER EFFECTS (only on devices that support hover)
   ------------------------------------------------------------------------- */

@media (hover: hover) {

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn-primary:hover {
    background: #0284c7;
    box-shadow: 0px 40px 29px -19px #1c91e4;
  }

  .btn-accent:hover {
    background: #e55a2b;
    box-shadow: 0px 40px 29px -19px #cc4a1f;
  }

  .btn-zap:hover {
    background: #20BD5A;
    box-shadow: 0px 40px 29px -19px #128C7E;
  }

  .btn-secondary:hover {
    background: #d8efff;
    box-shadow: 0px 40px 29px -19px #1c91e4;
  }

  .btn-ghost:hover {
    background-color: #eef7ff;
    box-shadow: 0px 40px 29px -19px rgba(14, 165, 233, 0.15);
  }

  .btn-white:hover {
    background: #eef7ff;
  }

  .btn-ghost-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .btn-danger:hover {
    background: #c82333;
    box-shadow: 0px 40px 29px -19px #a71d2a;
  }

  .btn-warning:hover {
    background: linear-gradient(135deg, #e55a2b, #cc4a1f);
    box-shadow: 0px 40px 29px -19px #c44a1f;
  }

}

/* -------------------------------------------------------------------------
   TOUCH PRESS FEEDBACK (only on touch devices)
   ------------------------------------------------------------------------- */

@media (hover: none) {

  .btn:active {
    transform: scale(0.95);
    opacity: 0.85;
  }

}


/* -------------------------------------------------------------------------
   SQUARE ICON BUTTONS (app-icon style)
   ------------------------------------------------------------------------- */

.btn-square-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn.btn-square {
    flex-direction: column;
    width: 80px;
    height: 80px;
    padding: 10px;
    border-radius: 25px;
    gap: 4px;
    margin-bottom: 0;
}

.btn.btn-square .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

    .btn.btn-square .btn-icon svg {
        width: 100%;
        height: 100%;
    }

.btn.btn-square .btn-text {
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.btn.btn-square:disabled,
.btn.btn-square.disabled {
    opacity: 0.6;
    pointer-events: none;
}
