/* Custom Confirm Dialog Styles */
.confirmly-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirmly-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirmly-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.confirmly-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    max-width: 90%;
    transition: transform 0.3s ease;
}

.confirmly-modal.show .confirmly-dialog {
    transform: translate(-50%, -50%) scale(1);
}

.confirmly-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.confirmly-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.confirmly-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirmly-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirmly-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.confirmly-btn-cancel:hover {
    background: #e5e7eb;
}

.confirmly-btn-confirm {
    background: #28a745;
    color: #fff;
}

.confirmly-btn-confirm:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .confirmly-dialog {
        min-width: 90%;
    }

    .confirmly-footer {
        flex-direction: column-reverse;
    }

    .confirmly-btn {
        width: 100%;
    }
}

/* Renewal Button Styles */
.renew_expired_ad {
    color: #28a745;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
}

.renew_expired_ad:hover {
    color: #218838;
    background-color: rgba(40, 167, 69, 0.1);
    transform: scale(1.1);
}

.renew_expired_ad i {
    font-size: 18px;
}

/* Tooltip styling for renewal button */
.renew_expired_ad[data-bs-toggle="tooltip"] {
    position: relative;
}

/* Loading state */
.renew_expired_ad.loading {
    opacity: 0.6;
    pointer-events: none;
}

.renew_expired_ad.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}