/* Make entire button area clickable */
.btn,
button,
.edu-btn,
.edu-btn-white,
.edu-btn-medium,
.edu-btn-large {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    width: auto;
}

.btn a,
button a,
.edu-btn a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Loading indicator styles */
.btn.loading,
button.loading,
.edu-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading:before,
button.loading:before,
.edu-btn.loading:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    margin-right: 8px;
    animation: btn-spinner 0.6s linear infinite;
    margin-left: -24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes btn-spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Disable pointer events on loading */
.btn.loading *,
button.loading *,
.edu-btn.loading * {
    visibility: hidden;
}
