/* =========================
   Action Icon Buttons
   ========================= */

/* Base icon button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    height: 35px;
    padding: 5px 10px;

    border-radius: 6px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;

    transition: all 0.2s ease-in-out;
}

/* Small button */
.btn-sm {
    height: 35px;
    padding: 5px 10px;
    font-size: 13px;
}

/* =========================
   PRIMARY (add / edit / view)
   ========================= */

.btn-primary {
    color: #094e23;
    background-color: #ffa202;
    border-color: #ffa202;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #094e23;
    background-color: #ffb733;
    border-color: #ffb733;
}

.btn-primary:active {
    background-color: #e69400;
    border-color: #e69400;
}

/* =========================
   DANGER (delete)
   ========================= */

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

.btn-danger:active {
    background-color: #a52834;
    border-color: #a52834;
}

/* =========================
   Disabled state
   ========================= */

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================
   Icon inside button
   ========================= */

.btn-icon i {
    font-size: 14px;
    line-height: 1;
}

/* =========================
   Hover effect
   ========================= */

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* =========================
   Custom Back Button
   ========================= */

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);

    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;

    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-back.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-back i {
    font-size: 14px;
    line-height: 1;
}

/* Hover */
.btn-back:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.btn-back:focus,
.btn-back:active {
    outline: none;
    box-shadow: none;
}
