/* ─── Custom Button Styles ─────────────────────────────────────────────────── */

@keyframes animation_slide {
    0% {
        opacity: 0;
        left: 0%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        left: 100%;
    }
}

.btn {
    position: relative;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid #747775;
    font-size: 13px;
    background: transparent;
    color: #1f1f1f;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    transition: all 0.2s ease-in;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn::before {
    content: '';
    display: block;
    width: 10px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
}

.btn:hover:not(:disabled) {
    color: #fff;
    background: #3d6aff;
    box-shadow: none;
    transition: all 0.2s ease-out;
}

.btn:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}

.btn:active:not(:disabled) {
    box-shadow: 0 0 0 0 transparent;
}

/* Override all button color variants */
.btn-primary,
.btn-success,
.btn-danger,
.btn-info,
.btn-secondary,
.btn-warning,
.btn-light,
.btn-dark {
    position: relative;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 13px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    transition: all 0.2s ease-in;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #1f1f1f;
    border: 1px solid #747775;
}

/* Primary Button */
.btn-primary {
    border: 1px solid #747775;
}

.btn-primary:hover:not(:disabled) {
    color: #fff;
    background: #0d6efd;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}

/* Success Button */
.btn-success {
    border: 1px solid #747775;
}

.btn-success:hover:not(:disabled) {
    color: #fff;
    background: #198754;
    box-shadow: none;
}

.btn-success:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}

/* Danger Button */
.btn-danger {
    border: 1px solid #747775;
}

.btn-danger:hover:not(:disabled) {
    color: #fff;
    background: #dc3545;
    box-shadow: none;
}

.btn-danger:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}

/* Info Button */
.btn-info {
    border: 1px solid #747775;
}

.btn-info:hover:not(:disabled) {
    color: #1f1f1f;
    background: #0dcaf0;
    box-shadow: none;
}

.btn-info:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}

/* Warning Button */
.btn-warning {
    border: 1px solid #747775;
}

.btn-warning:hover:not(:disabled) {
    color: #1f1f1f;
    background: #ffc107;
    box-shadow: none;
}

.btn-warning:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}

/* Secondary Button */
.btn-secondary {
    border: 1px solid #747775;
}

.btn-secondary:hover:not(:disabled) {
    color: #fff;
    background: #747775;
    box-shadow: none;
}

.btn-secondary:hover:not(:disabled)::before {
    animation: animation_slide 0.5s 0s linear;
}
