/* =========================================================
   Bootstrap 2 → Modern Buttons v2 (SaaS / BS5-like)
   Works with TbButton (Yii 1.1)
   ========================================================= */

/* ---------- Base button ---------- */
.btn {
  background-image: none !important;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;

  border-radius: 8px;
  border: 1px solid transparent;

  font-weight: 600;
  letter-spacing: .01em;

  padding: 6px 12px;
  line-height: 1.4;

  transition:
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .08s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn.active {
  transform: translateY(0);
}

/* Focus ring – като в modern frameworks */
.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59,130,246,.35);
}

/* ---------- Sizes (BS2 compatible) ---------- */
.btn-large {
  padding: 9px 16px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
}

.btn-mini {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
}

/* =========================================================
   Solid buttons (modern palette)
   ========================================================= */

/* Primary */
.btn-primary {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}
.btn-primary:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* Success */
.btn-success {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}
.btn-success:hover {
  background-color: #15803d !important;
  border-color: #15803d !important;
}

/* Info */
.btn-info {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
.btn-info:hover {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}

/* Warning */
.btn-warning {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #1f1600 !important;
}
.btn-warning:hover {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
}

/* Danger */
.btn-danger {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.btn-danger:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* Inverse */
.btn-inverse {
  background-color: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}
.btn-inverse:hover {
  background-color: #1f2937 !important;
  border-color: #1f2937 !important;
}

/* =========================================================
   Disabled
   ========================================================= */
.btn.disabled,
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}

/* =========================================================
   Optional: subtle elevation on hover (comment out if unwanted)
   ========================================================= */
.btn:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
