/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

/* Primary button */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #7c28cd;
    transform: translateY(-1px);
}

/* Secondary button */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e9d5ff;
    transform: translateY(-1px);
}

/* Success button */
.btn-success {
    background-color: #25D366 !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #20bd5a !important;
    transform: translateY(-1px);
}

/* Danger button */
.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

/* WhatsApp button */
.btn.whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn.whatsapp-btn:hover {
    background-color: #20bd5a !important;
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none !important;
}

/* Telegram button */
.btn.btn-info {
    background-color: #0088cc !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
}

.btn.btn-info:hover {
    background-color: #006699 !important;
    transform: translateY(-1px);
}

/* Icon buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn.edit-btn {
    color: var(--primary-color);
}

.icon-btn.edit-btn:hover {
    background-color: var(--secondary-color);
}

.icon-btn.delete-btn {
    color: var(--danger-color);
}

.icon-btn.delete-btn:hover {
    background-color: #fee2e2;
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 1.1rem;
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Full width button */
.btn-block {
    display: block;
    width: 100%;
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid;
    border-radius: 50%;
    border-color: #fff #fff #fff transparent;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1.25rem;
    }
}